Commit 5a44b4e3 by Febby Simanjuntak

reset

parents 8642a1ed 2d671302
......@@ -513,12 +513,22 @@
},
{
"cell_type": "code",
<<<<<<< HEAD
"execution_count": 23,
=======
"execution_count": 19,
>>>>>>> 2d671302635a972c35f91aa10b40f9c627584cfc
"metadata": {},
"outputs": [],
"source": [
"#Random Population\n",
"def setinput(data):\n",
" for i in range(len(data)):\n",
" data[i]\n",
" \n",
"\n",
"def populationnfitnes (data):\n",
<<<<<<< HEAD
" calculate = []\n",
" c = initial.solution(data)\n",
" calculate.append(c)\n",
......@@ -539,12 +549,45 @@
"#def crossover():\n",
" \n",
"#def mutatuion()\n",
=======
" intcriteria = initial.solution(data)\n",
" return intcriteria\n",
"\n",
"def tercriteria(data):\n",
" listcriteria = []\n",
" listcriteria *= 0\n",
" for i in range(150):\n",
" cri = populationnfitnes(data);\n",
" if len(cri[0][1]) > 2:\n",
" listcriteria.append(cri)\n",
" return listcriteria\n",
" \n",
"def parentselect(data):\n",
" parent = choice(data)\n",
" return parent\n",
" \n",
"def crossover(data, listdata):#Single point crossover\n",
" offspring = []\n",
" offspring *= 0\n",
" cros = np.array_split(data[0][1], len(data[0][1]) / 2)\n",
" for i in range (len (listdata)):\n",
" over = np.array_split(listdata[i][0][1], len(listdata[i][0][1]) / 2)\n",
" #offsp = np.append(cros[0], over[1])\n",
" tes = np.append(over[0], cros[1])\n",
" offspring.append(tes)\n",
" return offspring\n",
" \n",
" \n",
" \n",
"#def utatuion()\n",
>>>>>>> 2d671302635a972c35f91aa10b40f9c627584cfc
" \n",
" "
]
},
{
"cell_type": "code",
<<<<<<< HEAD
"execution_count": 26,
"metadata": {},
"outputs": [
......@@ -1520,11 +1563,22 @@
{
"cell_type": "code",
"execution_count": 28,
=======
"execution_count": 12,
>>>>>>> 2d671302635a972c35f91aa10b40f9c627584cfc
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"129\n"
]
},
{
"data": {
"text/plain": [
<<<<<<< HEAD
"[[([(49647, 827, 111036826, 4.0)],\n",
" ['Objek Wisata Togindrawa Gua',\n",
" 'Pantai Tiram Tapakis',\n",
......@@ -1537,13 +1591,1433 @@
]
},
"execution_count": 28,
=======
"[[([(47943, 799, 107258391, 4.0)],\n",
" ['Chinatown Medan',\n",
" 'Luppatan Tali - Tali',\n",
" 'Masjid Raya',\n",
" 'Great Mosque',\n",
" 'Pesanggrahan Bung Karno',\n",
" 'Taman Danau Wisata Bunga Tujuh',\n",
" 'Bersama Travel',\n",
" 'Tangkahan'])],\n",
" [([(33569, 559, 75385609, 4.0)],\n",
" ['Batu Lobang Sibaganding',\n",
" 'Fortress Seven Layer',\n",
" 'Vania Travel',\n",
" 'Kualuh Hulu',\n",
" 'Air Terjun Cirocai Sungai Pandahan'])],\n",
" [([(48818, 814, 109198609, 3.7)],\n",
" ['Pantai Buih',\n",
" 'Musala Waterfall',\n",
" 'Masjid Raya Nur Addin',\n",
" 'Tugu Jeruk Berastagi',\n",
" 'Mora Indah',\n",
" 'State Museum Of North Sumatra',\n",
" 'Taman Sungai Padang'])],\n",
" [([(51978, 866, 116205565, 3.7)],\n",
" ['Pulau Pigago',\n",
" 'Puncak Saragodung',\n",
" 'Pantai Batu Rusa',\n",
" 'Disparbud Dairi',\n",
" 'Menara Tirtanadi',\n",
" 'Travel Panyabungan Padang',\n",
" 'Rudang Mayang'])],\n",
" [([(21577, 360, 48794652, 3.0)],\n",
" ['Wisata Alam \"Panatapan Parupuk Julu\"',\n",
" 'Tapian Siri-Siri Syariah',\n",
" 'Bukik Posuak Maek',\n",
" 'Replika Pagoda Shwedagon'])],\n",
" [([(39623, 660, 88809696, 4.0)],\n",
" ['Masjid Agung Sibolga',\n",
" 'Vania Travel',\n",
" 'Wisata Bah Kulistik',\n",
" 'Monumen Equator',\n",
" 'Bukit Lawang Orangutan Trekking',\n",
" 'Sabah Simelir',\n",
" 'Kupu-Kupu Garden Guest House & Cafe'])],\n",
" [([(29805, 497, 67039348, 3.6)],\n",
" ['Cis Tour & Travel',\n",
" 'Sopo Partungkoan',\n",
" 'Pt. Npm Perwakilan On Bus',\n",
" 'Museum Zoologi',\n",
" 'Pemandian Alam Bolang',\n",
" 'Pantai Indah Sipinggan',\n",
" 'Taman Aek Kota Batu Labura'])],\n",
" [([(11437, 191, 26310304, 3.7)],\n",
" ['Pantai Pelawan', 'Cis Tour & Travel', 'Batak Museum'])],\n",
" [([(21336, 356, 48260261, 4.2)],\n",
" ['Pantai Simallo', 'Pantai Kenangan', 'Bus Wisata', 'Handreva Tour'])],\n",
" [([(18401, 307, 41752217, 4.0)],\n",
" ['Pantai Pasir Putih', 'Pantai Sikabau', 'Alun Alun Kota Kisaran'])],\n",
" [([(32573, 543, 73177087, 4.0)],\n",
" ['Air Terjun Pongkar',\n",
" 'Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan )',\n",
" 'Bus Wisata Medan',\n",
" 'Pasar Buah Berastagi',\n",
" 'Air Terjun Lumban Rang',\n",
" 'Wisata Alam Aek Sordang'])],\n",
" [([(42807, 713, 95869870, 3.7)],\n",
" ['Sampuren Tutuen Sige',\n",
" 'Aek Kanopan',\n",
" 'Chinatown Medan',\n",
" 'Bintang Johor Swimming Pool',\n",
" 'Water Park Tambunan',\n",
" 'Stasiun Binjai',\n",
" 'Batu Marhosa',\n",
" 'Dinas Kebudayaan & Pariwisata',\n",
" 'Taman Wisata Simatahari Indah'])],\n",
" [([(37886, 631, 84958087, 3.3)],\n",
" ['Loket Bus Bintang Utara',\n",
" 'Bendungan Batang Tongar',\n",
" 'Jembatan Poriaha',\n",
" 'Tts (Toru Tor Simarsayang) Cafe',\n",
" 'Pantai Arta Indah',\n",
" 'Pondok Wisata Lagundi Samosir'])],\n",
" [([(11180, 186, 25740435, 4.0)],\n",
" ['Pantai Indah Sipinggan',\n",
" 'Bendungan Lau Si Meimei',\n",
" 'Bukit Lawang Planet Hijau',\n",
" 'Air Terjun Betala'])],\n",
" [([(18422, 307, 41798783, 4.0)],\n",
" ['Halo Angso Duo Pratama Bro. Pt',\n",
" 'Putri Cahaya Travel',\n",
" 'Makam Ompung Parmata Sapihak',\n",
" 'Gereja Katolik St. Dionysius, Sumbul'])],\n",
" [([(35788, 596, 80306000, 3.5)],\n",
" ['Kolam Pancing Asri',\n",
" 'Kupu-Kupu Garden Guest House & Cafe',\n",
" 'Wisata Alam \"Panatapan Parupuk Julu\"',\n",
" 'Museum Simalungun',\n",
" 'Kolam Renang Air Panas Mardinding Tiga Rasa',\n",
" 'Bendungan Batang Tongar',\n",
" 'Tumori Traditional Village',\n",
" 'Tugu Sitio'])],\n",
" [([(29882, 498, 67210087, 4.0)],\n",
" ['Bekas Istana Kesultanan Asahan',\n",
" 'Simpang Bantoon',\n",
" 'Pantai Arta Indah',\n",
" 'Taman Cadika Pramuka'])],\n",
" [([(37283, 621, 83621000, 3.5)],\n",
" ['Pasir Putih Janggawari',\n",
" 'Pemandian Alam Agape',\n",
" 'Pertunjukan Tari Sigale Gale',\n",
" 'Dinas Kebudayaan & Pariwisata',\n",
" 'R.M Wisata Indah',\n",
" 'Pesona Alam Panorama Indah. Pt'])],\n",
" [([(17502, 292, 39758783, 4.0)],\n",
" ['Sri Supramaniyam Temple', 'Pantai Malaya', 'Sri Deli Park'])],\n",
" [([(10267, 171, 23715957, 3.8)],\n",
" ['Gedung Bks Pps',\n",
" 'Cafe Goa Kaca',\n",
" 'T.Garden',\n",
" 'Royal Palace Nafis Jackson',\n",
" 'Pusat Posko \"Teroh-Teroh.'])],\n",
" [([(33253, 554, 74684913, 4.0)],\n",
" ['Cafe Goa Kaca',\n",
" 'Pesanggrahan Bung Karno',\n",
" 'Asahan Regency',\n",
" 'Pt, Yy Traveling Tour And Travel',\n",
" 'Alaman Bolak Padang Nadimpu',\n",
" 'Sialang Batu'])],\n",
" [([(22791, 380, 51486565, 3.7)],\n",
" ['Danau Sipogas', 'Kota Padang Sidempuan', 'Agen Bus Karina'])],\n",
" [([(31702, 528, 71245739, 4.0)],\n",
" ['Armaya Wisata Alam',\n",
" 'Danau Linting',\n",
" 'Toba Lake Sibolahotang Beautiful Beach',\n",
" 'Tugu Becak Bsa Siantar',\n",
" 'Viewpoint Of Tuktuk Peninsula',\n",
" 'Pantai Ketam',\n",
" 'Tugu Air Mancur Majestik'])],\n",
" [([(13133, 219, 30071000, 3.7)],\n",
" ['Sabah Simelir',\n",
" 'Konservasi Sungai Kukam',\n",
" 'Air Terjun Linggahara-Rantau Prapat'])],\n",
" [([(57554, 959, 128569739, 4.0)],\n",
" ['Jembatan Tano Ponggol',\n",
" 'Pasir Putih Janggawari',\n",
" 'Pondok Pisang',\n",
" 'Biro Jasa',\n",
" 'Pasar Buah Berastagi',\n",
" 'Monumen Halilintar',\n",
" 'Wisata Alam Experience Survive Champing',\n",
" 'Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan',\n",
" 'Darul Umroh'])],\n",
" [([(72154, 1203, 160943652, 3.6)],\n",
" ['Tumori Traditional Village',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™',\n",
" 'Merci Waterboom',\n",
" 'Wisata Pancing Sungai Bedera',\n",
" 'Taman Danau Wisata Bunga Tujuh',\n",
" 'Wisata Sawah Koto',\n",
" 'Danau Sipogas',\n",
" 'Bagan Percut'])],\n",
" [([(27285, 455, 61451522, 3.4)],\n",
" ['Bukit Lawang Planet Hijau',\n",
" 'Mora Indah',\n",
" 'West Kisaran',\n",
" 'Hadabuan Naisogop Waterfalls',\n",
" 'Taman Lope Lope Bulu Cina'])],\n",
" [([(31497, 525, 70791174, 3.8)],\n",
" ['Elsasya Utama',\n",
" 'Mester Bukit Lawang (Tour Guide)',\n",
" 'Sbv',\n",
" 'Taman Air Percut',\n",
" 'Delta',\n",
" 'Vania Travel',\n",
" 'Muara Beach Beautiful',\n",
" 'Air Terjun Ponot',\n",
" 'Monumen Halilintar'])],\n",
" [([(34231, 571, 76853522, 3.4)],\n",
" ['Air Terjun Linggahara-Rantau Prapat',\n",
" 'Aek Kanopan',\n",
" 'Danau Tao Batang Onang',\n",
" 'Leo Tour & Travel (Leo Wisata Medan)',\n",
" 'Danau Marambe',\n",
" 'Konservasi Sungai Kukam',\n",
" 'Batang Gadis National Park',\n",
" 'Pt Pelangi Wisata'])],\n",
" [([(21390, 356, 48380000, 4.0)],\n",
" ['Alun Alun Kota Kisaran',\n",
" 'Lorong Indah',\n",
" 'Pondok Pisang',\n",
" 'Siregar Aek Nalas'])],\n",
" [([(15594, 260, 35528000, 4.3)],\n",
" ['Air Terjun Situak Lotik Iii',\n",
" 'Air Terjun Pongkar',\n",
" 'Agrowisata Hidro Aa'])],\n",
" [([(18479, 308, 41925174, 3.8)],\n",
" ['Puncak Tonang',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Pongkar',\n",
" 'Gundaling',\n",
" \"Penginapan King's Ambarita\"])],\n",
" [([(59956, 999, 133895913, 3.9)],\n",
" ['Alun Alun Kota Kisaran',\n",
" 'Pasar Kaget Kota Binjai',\n",
" 'Pool Bus Intra',\n",
" 'Vihara Avalokitesvara',\n",
" 'Air Terjun Tarunggang',\n",
" 'Pt, Yy Traveling Tour And Travel',\n",
" 'Tts (Toru Tor Simarsayang) Cafe',\n",
" 'Poldung',\n",
" 'Tugu Air Mancur Sinar Indonesia Baru Petisah'])],\n",
" [([(15090, 252, 34410435, 3.4)],\n",
" ['Pantai Teluk Kerang',\n",
" 'Delta',\n",
" 'Masjid Raya Stabat',\n",
" 'Museum Lubuk Pakam',\n",
" 'Sp.Lau Petundal'])],\n",
" [([(27961, 466, 62950478, 4.0)],\n",
" ['Taman Cadika Pramuka',\n",
" 'Pantai Batu Rusa',\n",
" 'Batang Bahal',\n",
" 'Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan )',\n",
" 'Kisaran Kota'])],\n",
" [([(19408, 323, 43985130, 4.0)],\n",
" ['Wisata Pancing Sungai Bedera',\n",
" 'Sembilantujuh Tour&Travel',\n",
" 'Air Terjun Lumban Rang',\n",
" 'Klenteng Gunung Timur',\n",
" 'Pasar Buah Berastagi',\n",
" 'Tugu Pramuka'])],\n",
" [([(51036, 851, 114116783, 3.5)],\n",
" ['Little India Medan',\n",
" 'Panatapan Sileme-Leme',\n",
" 'Sumatra Orangutan Tours & Holidays',\n",
" 'Taman Bunga',\n",
" 'Lau Perkoh',\n",
" 'Pulau Beswesen Tanjungbalai',\n",
" 'Bukit Suligi',\n",
" 'Air Terjun Tarunggang'])],\n",
" [([(33540, 559, 75321304, 3.7)],\n",
" ['Welterbeminimini',\n",
" 'Garunggang',\n",
" 'Letter Z',\n",
" 'Sp.Lau Petundal',\n",
" 'Pantai Barat',\n",
" 'Rudang Mayang'])],\n",
" [([(22016, 367, 49768087, 4.3)],\n",
" ['Danau Laut Tinggal',\n",
" 'Bukit Lawang Orangutan Trekking',\n",
" 'Pantai Pasir Putih'])],\n",
" [([(49092, 818, 109806174, 4.0)],\n",
" ['Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Wisata Pancing Sungai Bedera',\n",
" 'Bukitlawang Trek',\n",
" 'Air Terjun Betala',\n",
" 'Paranggiran Raja Silahisabungan',\n",
" 'Niagara Tanjung Raja',\n",
" 'Leo Tour & Travel (Leo Wisata Medan)',\n",
" 'Darul Umroh',\n",
" 'Air Terjun Sempugen'])],\n",
" [([(43736, 729, 97929826, 4.1)],\n",
" ['Danau Sipogas',\n",
" 'Handreva Tour',\n",
" 'Batu Lobang Sibaganding',\n",
" 'Puncak Anai',\n",
" 'Tugu D.I Panjaitan',\n",
" 'Bukit Kininduma Simantas',\n",
" 'Perkebunan Londut',\n",
" 'Batak Museum'])],\n",
" [([(13659, 228, 31237348, 3.8)],\n",
" ['Air Terjun Tarunggang',\n",
" 'Bukitlawang Trek',\n",
" 'Disparbud Dairi',\n",
" 'Gereja Katolik St. Dionysius, Sumbul',\n",
" 'Pesona Alam Panorama Indah. Pt',\n",
" 'Pas Pam Wisata'])],\n",
" [([(59425, 990, 132718478, 4.3)],\n",
" ['Masjid Al Istiqomah',\n",
" 'Perkebunan Londut',\n",
" 'Taman Edukasi Binjai',\n",
" 'Pemandian Alam Bolang',\n",
" 'Binjai',\n",
" 'Air Terjun Baburai',\n",
" 'Air Terjun Pongkar'])],\n",
" [([(12287, 205, 28195087, 4.0)],\n",
" ['Pusat Informasi Geopark Kaldera Toba Sigulatti',\n",
" 'Wisata Sawah Koto',\n",
" 'Bukit Travel Gibeon'])],\n",
" [([(15213, 254, 34683174, 4.0)],\n",
" ['Air Terjun Lumban Rang',\n",
" 'Air Soda Kabupaten Karo',\n",
" 'Royal Palace Nafis Jackson',\n",
" 'Paranggiran Raja Silahisabungan'])],\n",
" [([(50633, 844, 113223174, 3.7)],\n",
" ['Masjid Agung Kota Binjai',\n",
" 'Sabah Simelir',\n",
" 'Kuamang Ujung Gading',\n",
" 'Kolam Pancing Asri',\n",
" 'Wisata Sipinsur',\n",
" 'Air Terjun Tarunggang'])],\n",
" [([(40380, 673, 90488261, 3.6)],\n",
" ['Bayu Lagoon Resto & Taman Rekreasi',\n",
" 'Pemandian Alam Bolang',\n",
" 'Armaya Wisata Alam',\n",
" 'Air Terjun Sipagogo',\n",
" 'Perhadtian Air Panas Taman Wisata Sibayak',\n",
" 'Air Terjun Aek Nabontar',\n",
" 'Taman Aek Kota Batu Labura'])],\n",
" [([(54652, 911, 122134870, 4.2)],\n",
" ['Bendungan Batang Tongar',\n",
" 'Puncak Santai',\n",
" 'Objek Wisata Maggrove Sisarahili Ts',\n",
" 'Pemandian Sidamanik',\n",
" 'Aman Wisata Citra Int. Pt',\n",
" 'Dunia Outbound Camp'])],\n",
" [([(58880, 981, 131510000, 4.1)],\n",
" ['Makam Ompung Parmata Sapihak',\n",
" 'Hendreva Tour',\n",
" 'Objek Wisata Budaya Batu Kursi Raja Siallagan',\n",
" 'Masjid Al Istiqomah',\n",
" 'Bukit Kininduma Simantas',\n",
" 'Tugu Pramuka',\n",
" 'Museum Negeri Sumatera Utara',\n",
" 'Pusat Kuliner Kota Sibolga',\n",
" 'Desa S.Kalangan Ii'])],\n",
" [([(18693, 312, 42399696, 4.2)],\n",
" ['Museum Kota Tebing Tinggi',\n",
" 'Wisata Alam Experience Survive Champing',\n",
" 'Kupu-Kupu Garden Guest House & Cafe',\n",
" 'Puncak Bukit Galau',\n",
" 'Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Stabat'])],\n",
" [([(15926, 265, 36264174, 4.2)],\n",
" ['Pantai Pulau Putri',\n",
" 'Gapura Wisata Alam Lae Mbilulu',\n",
" 'Salib Kasih',\n",
" 'Bair Falls',\n",
" 'Objek Wisata Budaya Batu Kursi Raja Siallagan'])],\n",
" [([(12904, 215, 29563217, 4.0)],\n",
" ['Rm Batunadua Indah', 'Pasar Kaget Kota Binjai', 'Wisata Alam Siringo'])],\n",
" [([(49595, 827, 110921522, 4.4)],\n",
" ['Pemandian Sidamanik',\n",
" 'Little India Medan',\n",
" 'Agrowisata Hidro Aa',\n",
" 'Market Wisata (Tour Bangkok, Tour Phuket, Tour Medan)',\n",
" 'Letter Z',\n",
" 'Perkebunan Londut',\n",
" 'Lubuk Batang Waterfall'])],\n",
" [([(12003, 200, 27565348, 3.3)],\n",
" ['Lau Teba Langkat', 'Stasiun Binjai', 'Agen Bus Karina'])],\n",
" [([(54561, 909, 121933087, 3.8)],\n",
" ['North Padang Lawas Regency',\n",
" 'Hotel Pesona Wisata',\n",
" 'Masjid Agung Sibolga',\n",
" 'Gunung Pandan River Tourism Area',\n",
" 'Air Terjun Cirocai Sungai Pandahan',\n",
" 'Pakpak Culture Association (Cgc)',\n",
" 'R.M Wisata Indah',\n",
" 'Perumahaan Azalea Asri',\n",
" 'Pantai Cermin Theme Park & Resort Hotel'])],\n",
" [([(18741, 312, 42506130, 3.7)],\n",
" ['Beranda Madina', 'Taman Bunga', 'Bukit Lawang Trip'])],\n",
" [([(21849, 364, 49397783, 3.6)],\n",
" ['Wisata Pemandian Water Hill',\n",
" 'Kolam Pancing Asri',\n",
" 'Bukit Lawang Wisata Alam',\n",
" 'Bukit Gibeon (Yapim Taruna)',\n",
" 'Sampuren Tutuen Sige'])],\n",
" [([(36255, 604, 81341522, 3.7)],\n",
" ['Wisata Alam',\n",
" 'Pantai Bul Bul',\n",
" 'Batu Marhosa',\n",
" 'Bandar Pulau',\n",
" 'Tor Simago-Mago',\n",
" 'Tugu Pramuka'])],\n",
" [([(25561, 426, 57628739, 3.8)],\n",
" ['Danau Linting',\n",
" 'Bagan Percut',\n",
" 'Air Terjun Simonang Monang',\n",
" 'Titi Gantung Bridge',\n",
" 'Air Travel Parsariran'])],\n",
" [([(33987, 566, 76312478, 4.0)],\n",
" ['Sibio-Bio Advanture Park',\n",
" 'Tahura (Taman Hutan Raya)',\n",
" 'Taman Rekreasi Kong Mah',\n",
" 'Tugu Pahlawan Revolusi',\n",
" 'Anugerah Soambaton Beach',\n",
" 'Parhallow Viewpoint And Coffee Shop',\n",
" 'Bukit Kubu'])],\n",
" [([(8777, 146, 20412043, 4.0)],\n",
" ['The Le Hu Garden',\n",
" 'Pusat Informasi Geopark Kaldera Toba Sigulatti',\n",
" 'Tour Accomodation',\n",
" 'Pantai Buih'])],\n",
" [([(59332, 989, 132512261, 3.8)],\n",
" ['Counters Kupj Simpang Sei Kopas',\n",
" 'Vihara Pekong Lima',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Puncak Jb',\n",
" 'Air Terjun Lembah Sipogas',\n",
" 'Tapian Puti',\n",
" 'Tour Guide,Tarna Sagala.German &Dutch Speaking',\n",
" 'Simpang Pantai Monyet'])],\n",
" [([(11428, 190, 26290348, 3.6)],\n",
" ['Taman Alamta Jaya',\n",
" 'Taman Sri Deli',\n",
" 'Wisata Alam Experience Survive Champing',\n",
" 'Sitinjo',\n",
" 'Bakarang Simalem'])],\n",
" [([(38326, 639, 85933739, 4.0)],\n",
" ['Wisata Taman Merci',\n",
" 'The Heritage',\n",
" 'Great Mosque',\n",
" 'Pt. Hikmah',\n",
" 'Taman Mutiara Selat Malaka',\n",
" 'Taman Sungai Padang',\n",
" 'Taman Balita Kota Binjai',\n",
" 'Parhallow Viewpoint And Coffee Shop'])],\n",
" [([(26251, 438, 59158739, 3.9)],\n",
" ['Pantai Pelawan',\n",
" 'Museum Simalungun',\n",
" 'Putri Cahaya Travel',\n",
" 'Penangkaran Rusa Universitas Sumatera Utara',\n",
" 'Tugu Becak Bsa Siantar',\n",
" 'Waterpark Ria',\n",
" 'Masjid Raya Stabat'])],\n",
" [([(14806, 247, 33780696, 4.0)],\n",
" ['Danau Sipogas',\n",
" 'Tinggi Raja',\n",
" 'Explore Bahorok Adventure Trip',\n",
" 'Objek Wisata Budaya Batu Kursi Raja Siallagan'])],\n",
" [([(60674, 1011, 135488000, 3.7)],\n",
" ['Air Terjun Simpang Kanan',\n",
" 'Bekas Istana Kesultanan Asahan',\n",
" 'Bukit Lawang Guide',\n",
" 'Air Terjun Pantai Salak',\n",
" 'Bukik Posuak Maek',\n",
" 'Toba Lake Sibolahotang Beautiful Beach',\n",
" 'Sembilantujuh Tour&Travel'])],\n",
" [([(31523, 525, 70848826, 4.0)],\n",
" ['Puncak Paranginan,Aek Nabirong',\n",
" 'Rumah Makan Irian',\n",
" 'Tao Lake Rod Onang',\n",
" 'Siba Island Resort'])],\n",
" [([(25273, 421, 56990130, 4.0)],\n",
" ['Disparbud Dairi',\n",
" 'Monkey Forest Umar Manik Sibaganding',\n",
" 'Air Terjun Kemuning'])],\n",
" [([(11662, 194, 26809217, 4.7)],\n",
" ['Tugu D.I Panjaitan', 'Tugu Simpang Empat', 'Setia Wisata'])],\n",
" [([(28620, 477, 64411739, 4.0)],\n",
" ['Umbul Ejuk',\n",
" 'Air Terjun Sempugen',\n",
" 'Taman Wisata Simatahari Indah',\n",
" 'Ksu Antara Travel'])],\n",
" [([(40482, 675, 90714435, 3.4)],\n",
" ['Balai Datuk Setia Maharaja Negeri Serdang',\n",
" 'Lau Perkoh',\n",
" 'Lumban Binanga Beach Laguboti',\n",
" 'Agrowisata Hidro Aa',\n",
" 'Cis Tour & Travel'])],\n",
" [([(53275, 888, 119081522, 3.4)],\n",
" ['Pt. Hikmah',\n",
" 'Kuta Sukareme',\n",
" 'Darul Umroh',\n",
" 'Embae Tour & Travel',\n",
" 'Bintang Johor Swimming Pool',\n",
" 'North Padang Lawas Regency',\n",
" 'Air Terjun Sarasah Kajai'])],\n",
" [([(49130, 819, 109890435, 3.9)],\n",
" ['Taman Sungai Padang',\n",
" 'Darul Umroh',\n",
" 'Air Terjun Pelangi Indah',\n",
" 'Puncak Jb',\n",
" 'Pulau Pigago',\n",
" 'Muara Beach Beautiful',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Dunia Outbound Camp'])],\n",
" [([(47751, 796, 106832652, 4.3)],\n",
" ['Taman Megawati',\n",
" 'Pantai Pulau Putri',\n",
" 'Taman Pesona Asri',\n",
" 'Puncak Santai',\n",
" 'Revolution Heroes Monument',\n",
" 'Pt. Dairi Transport',\n",
" 'Air Terjun Bertala'])],\n",
" [([(44669, 744, 99998652, 4.0)],\n",
" ['One Heart Hill',\n",
" 'Sumur Tua',\n",
" 'Bakarang Simalem',\n",
" 'Barusjahe',\n",
" 'Pantai Pongkar',\n",
" 'Namu Sira-Sira',\n",
" 'Uruk Ndaholi'])],\n",
" [([(20104, 335, 45528435, 3.6)],\n",
" ['Cis Tour & Travel',\n",
" 'Batang Bahal',\n",
" 'Biro Jasa',\n",
" 'Pemandian Alam Bolang',\n",
" 'Lau Teba Langkat'])],\n",
" [([(37302, 622, 83663130, 3.9)],\n",
" ['Taman Benteng Lions Club',\n",
" 'Letter Z',\n",
" 'Musala Waterfall',\n",
" 'Sp.Lau Petundal',\n",
" 'Tinggi Raja',\n",
" 'Pakpak Culture Association (Cgc)',\n",
" 'Kantor Balai Taman Nasional Batang Gadis'])],\n",
" [([(17757, 296, 40324217, 3.3)],\n",
" ['Monumen Equator',\n",
" 'Puncak Hoza',\n",
" 'Sumatra Tours Holiday & Jungle Trekking'])],\n",
" [([(28274, 471, 63644522, 4.1)],\n",
" ['Silalahi I',\n",
" 'Wisata Alam Siringo',\n",
" 'Simanimbo Waterfall',\n",
" 'Gedung Nasional Djauli Manik',\n",
" 'Sopo Tinjak',\n",
" 'Vihara Pubbarama Buddhist',\n",
" 'Masjid Agung Kota Binjai'])],\n",
" [([(30793, 513, 69230130, 3.8)],\n",
" ['Aek Kanopan',\n",
" 'Perumahaan Azalea Asri',\n",
" 'Kolam Pancing Asri',\n",
" 'Perhadtian Air Panas Taman Wisata Sibayak',\n",
" 'Museum Simalungun',\n",
" 'Wisata Merci',\n",
" 'Desa Adat Ragi Hotang Meat'])],\n",
" [([(21595, 360, 48834565, 3.8)],\n",
" ['Masjid Agung Kota Binjai',\n",
" 'Thermal Baths U.S.K Hineni',\n",
" 'Lapangan Pasir Tanjung Balai',\n",
" 'Pemandian Alam Bendungan Ginbers',\n",
" 'Simonis',\n",
" 'Samto Aek Rangat'])],\n",
" [([(72726, 1212, 162212000, 3.8)],\n",
" ['North Namu Ukur',\n",
" 'Pasar Kaget Kota Binjai',\n",
" 'Puncak Jb',\n",
" 'Tor Simago-Mago',\n",
" 'Wisata Bah Kulistik',\n",
" 'Pantai Barat Natal',\n",
" 'Zam Zam Prima Persada. Pt',\n",
" 'Sampuren Tutuen Sige'])],\n",
" [([(20460, 341, 46317826, 4.2)],\n",
" ['Namo Cengkeh',\n",
" 'Pt Wisata Habibah Berkah',\n",
" 'Bersama Travel',\n",
" 'Pantai Barat Natal'])],\n",
" [([(45598, 760, 102058609, 3.7)],\n",
" ['Alam Wisata Danau Laut Tador',\n",
" 'Kualuh Hulu',\n",
" 'Tirtanadi Tower',\n",
" 'Batu Gantung',\n",
" 'Vihara Avalokitesvara',\n",
" 'Cafe Goa Kaca',\n",
" 'Rumah Makan Irian',\n",
" 'Pantai Barat Natal',\n",
" 'Dairi Regency'])],\n",
" [([(40958, 683, 91769913, 3.9)],\n",
" ['Desa Adat Ragi Hotang Meat',\n",
" 'Loket Satu Nusa',\n",
" 'Stasiun Binjai',\n",
" 'Lyza Outbount',\n",
" 'Sumatra Jungle Trek',\n",
" 'Gapura Wisata Alam Lae Mbilulu',\n",
" 'Kolam Pancing Asri',\n",
" 'Air Terjun Aek Nabontar'])],\n",
" [([(31842, 531, 71556174, 4.0)],\n",
" ['Pt Wisata Habibah Berkah',\n",
" 'Twins Travel',\n",
" 'Elsasya Utama',\n",
" 'Air Terjun Lenggo Geni',\n",
" 'Batu Lobang Sibaganding'])],\n",
" [([(30903, 515, 69474043, 3.3)],\n",
" ['Museum Zoologi',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Masjid Mustaqim, Sikopi-Kopi, Pulo Dogom, Kualuh Hulu, Labuhanbatu Utara, Sumatera Utara.',\n",
" 'Stasiun Binjai',\n",
" 'Lyza Outbount',\n",
" 'Air Terjun Simonang Monang'])],\n",
" [([(36275, 605, 81385870, 4.1)],\n",
" ['Aek Sipaulak Hosa Loja',\n",
" 'Elsasya Utama',\n",
" 'Taman Selfie',\n",
" 'Bus Wisata',\n",
" 'Objek Wisata Pantai Ujung Sibolga',\n",
" 'Air Terjun Sigura Gura',\n",
" 'Pemandian Air Panas Tirto Kencono'])],\n",
" [([(41147, 686, 92189000, 4.1)],\n",
" ['Bakarang Simalem',\n",
" 'Ikan Larangan Lubuak Landua',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Pantai Arta Indah',\n",
" 'Taman Remaja Binjai',\n",
" 'Sopo Tinjak',\n",
" 'Pantai Pasir Putih Parbaba'])],\n",
" [([(8964, 149, 20826696, 3.7)],\n",
" ['Oyo 1752 Hotel Wisata', 'Dokter Travel', 'Pasar Kaget Kota Binjai'])],\n",
" [([(31259, 521, 70263435, 4.2)],\n",
" ['Wisata Sawah Koto',\n",
" 'Air Travel Parsariran',\n",
" 'Rosyid Orangutan Tours',\n",
" 'Danau Sipogas',\n",
" 'Masjid Agung Sumatera Utara',\n",
" 'Puncak Santai'])],\n",
" [([(18454, 308, 41869739, 4.0)],\n",
" ['Pusat Kuliner Kota Sibolga',\n",
" 'Simpang Pantai Monyet',\n",
" 'A8 Village',\n",
" 'Lae Simbellen'])],\n",
" [([(19476, 325, 44135913, 4.2)],\n",
" ['Telagah',\n",
" 'Masjid Lama Kabanjahe',\n",
" 'Embae Tour & Travel',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )'])],\n",
" [([(28025, 467, 63092391, 3.9)],\n",
" ['Pondok Wisata Lagundi Samosir',\n",
" 'Gundaling',\n",
" 'Pt. Npm Perwakilan On Bus',\n",
" 'Pulau Beswesen Tanjungbalai',\n",
" 'Masjid Raya Al Osmani',\n",
" 'Bukit Lawang Ecotourism & Ecoproject',\n",
" 'Tugu Silahi Sabungan'])],\n",
" [([(16893, 282, 38408391, 4.2)],\n",
" ['Rosyid Orangutan Tours',\n",
" 'Wisata Alam Experience Survive Champing',\n",
" 'Landak River',\n",
" 'Monumen Equator'])],\n",
" [([(66351, 1106, 148076130, 3.8)],\n",
" ['Masjid Raya Kisaran Kota',\n",
" 'Jembatan Sidikalang Wisata',\n",
" 'Alam Wisata Danau Laut Tador',\n",
" 'Waterpark Bima Utomo International',\n",
" 'Pemandian Pulau Batu (Pulbat)',\n",
" 'Danau Laut Tinggal',\n",
" 'Pantai Barat',\n",
" 'Air Terjun Sipagogo'])],\n",
" [([(30445, 507, 68458478, 3.9)],\n",
" ['Letter Z',\n",
" 'Luppatan Tali - Tali',\n",
" 'Air Terjun Binanga Bolon',\n",
" 'Air Terjun Lumban Rang',\n",
" \"Penginapan King's Ambarita\",\n",
" 'Pt. Dairi Transport',\n",
" 'Pt. Jsa Tour & Travel',\n",
" 'Perumahaan Azalea Asri'])],\n",
" [([(29736, 496, 66886348, 3.8)],\n",
" ['Bukit Tara Bunga',\n",
" 'Plta Sipansihaporas',\n",
" 'Lumban Binanga Beach Laguboti',\n",
" 'Bukit Teletubies',\n",
" 'Loket Satu Nusa'])],\n",
" [([(33248, 554, 74673826, 4.1)],\n",
" ['Pasir Putih Porsea',\n",
" 'Warung Info Wisata',\n",
" 'Pemandian Air Panas Sibayak Mardinding Julu',\n",
" 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)',\n",
" 'De Hole Laguna',\n",
" 'Museum Simalungun'])],\n",
" [([(19947, 332, 45180304, 4.0)],\n",
" ['Danau Teratai', 'Bandar Pulau', 'Sopo Tinjak', 'Bukit Lawang Explore'])],\n",
" [([(53954, 899, 120587130, 4.0)],\n",
" ['Air Terjun Malakkut',\n",
" 'Pantai Bukit Malintang Buburan',\n",
" 'Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan )',\n",
" 'Silalahi I',\n",
" 'Rm Batunadua Indah',\n",
" 'Pt. Dairi Transport',\n",
" 'Mangrove Tour Lubuk Kertang',\n",
" 'Panatapan Sileme-Leme',\n",
" 'Lapangan Tengku Amir Hamzah Stabat'])],\n",
" [([(37327, 622, 83718565, 4.2)],\n",
" ['Wisata Bah Kulistik',\n",
" 'Medan City Tour',\n",
" 'Gundaling',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Penatapen Doulu',\n",
" 'Tao Lake Rod Onang'])],\n",
" [([(31490, 525, 70775652, 4.1)],\n",
" ['Saba Napa',\n",
" 'Gedung Bks Pps',\n",
" 'Setia Wisata',\n",
" 'Efrata Waterfall',\n",
" 'Merci Waterboom',\n",
" 'Pt Farnaz Utama',\n",
" 'North Namu Ukur',\n",
" 'Paranggiran Raja Silahisabungan'])],\n",
" [([(54370, 906, 121509565, 3.9)],\n",
" ['Jembatan Sidikalang Wisata',\n",
" 'Lau Bengkelade Kuta',\n",
" 'Abadas Jaya',\n",
" 'Uruk Ndaholi',\n",
" 'Tobasa',\n",
" 'Taman Selfie',\n",
" 'Konservasi Sungai Kukam',\n",
" 'Budaya Resto'])],\n",
" [([(42573, 710, 95351000, 3.9)],\n",
" ['Tugu Pahlawan Revolusi',\n",
" 'Tinggi Raja',\n",
" 'Medan City Tour',\n",
" 'Ikan Larangan Lubuak Landua',\n",
" 'Sitinjo',\n",
" 'Simpang Bantoon',\n",
" 'Pool Bus Intra',\n",
" 'Pemandian Air Panas Tirto Kencono',\n",
" 'Gang Bengkok Old Mosque'])],\n",
" [([(34489, 575, 77425609, 4.4)],\n",
" ['Desa S.Kalangan Ii',\n",
" 'Bair Falls',\n",
" 'Waterpark Bima Utomo International',\n",
" 'Azizi Mosque',\n",
" 'Pemandu Bukit Lawang'])],\n",
" [([(18497, 308, 41965087, 4.0)],\n",
" ['Taman Benteng Lions Club',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Masjid Agung Sibolga'])],\n",
" [([(24376, 406, 55001130, 4.2)],\n",
" ['Beach Island Karang',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Tour Accomodation',\n",
" 'Pasar Kaget Kota Binjai',\n",
" 'Bukit Burung',\n",
" 'Gang Bengkok Old Mosque'])],\n",
" [([(41272, 688, 92466174, 4.0)],\n",
" ['Batang Gadis National Park',\n",
" 'Awaliyah Tour And Travel',\n",
" 'Lapangan Pasir',\n",
" 'Botanical Samosir',\n",
" 'Aek Milas Paringgonan Sibuhuan',\n",
" 'Delta'])],\n",
" [([(34314, 572, 77037565, 4.0)],\n",
" ['Ekowisata Mangrove',\n",
" 'Warisan Dunia Minimini',\n",
" 'Tapian Puti',\n",
" 'Danau Cipogas Rohul',\n",
" 'Tinggi Raja'])],\n",
" [([(24665, 411, 55641957, 4.2)],\n",
" ['Twa Lau Debuk-Debuk',\n",
" 'Millenium Wisata Indah Pt',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Sumatra Jungle Trek',\n",
" 'Wisata Air Parsariran'])],\n",
" [([(45339, 756, 101484304, 4.2)],\n",
" ['Azizi Mosque',\n",
" 'Padang Lawas Regency',\n",
" 'Puncak Jb',\n",
" 'Tugu Sitio',\n",
" 'Sopo Tinjak',\n",
" 'Sidebuk Debuk Thermal Baths Berastagi',\n",
" 'Pt. Hikmah',\n",
" 'Market Wisata (Tour Bangkok, Tour Phuket, Tour Medan)'])],\n",
" [([(59204, 987, 132228435, 3.8)],\n",
" ['Bendungan Lau Si Meimei',\n",
" 'Pondok Pisang',\n",
" 'Explore Bahorok Adventure Trip',\n",
" 'Pulau Samosir',\n",
" 'Pantai Ketam',\n",
" 'Wisata Pulau Spantiang'])],\n",
" [([(15399, 257, 35095609, 3.8)],\n",
" ['Yayasan Perguruan Sisingamangaraja',\n",
" 'Masjid Lama Gang Bengkok',\n",
" 'Bagan Percut',\n",
" 'Sp.Lau Petundal'])],\n",
" [([(72255, 1204, 161167609, 3.6)],\n",
" ['Taman Kebun Bunga èŒ  榀¢ 圀™',\n",
" 'Umbul Ejuk',\n",
" 'Air Terjun Kemuning',\n",
" 'Pasir Putih Porsea',\n",
" 'Pt Pelangi Wisata',\n",
" 'Air Terjun Saringgana',\n",
" 'Taman Rekreasi Kong Mah',\n",
" 'Saba Napa',\n",
" 'Pantai Malaya'])],\n",
" [([(29727, 495, 66866391, 3.7)],\n",
" ['Dairi Regency',\n",
" 'Sabah Simelir',\n",
" 'Pelangi Nusantara',\n",
" 'Bendungan Batang Tongar',\n",
" 'Taman Gajah Mada',\n",
" 'Lyza Outbount',\n",
" 'Air Panas Simolap'])],\n",
" [([(55643, 927, 124332304, 4.0)],\n",
" ['Baneara, Partungko Naginjang',\n",
" 'Welterbeminimini',\n",
" 'Taman Sungai Padang',\n",
" 'Pulau Poncan',\n",
" 'Panatapan Parhalow',\n",
" 'Samto Aek Rangat',\n",
" 'Air Terjun Pongkar',\n",
" 'Pool Bus Intra',\n",
" 'Air Terjun Linggahara-Rantau Prapat'])],\n",
" [([(5823, 97, 13861870, 4.0)],\n",
" ['Bukit Lawang Wisata Alam',\n",
" 'Pt. Jsa Tour & Travel',\n",
" 'Penatapan Pamah Simelir'])],\n",
" [([(33895, 565, 76108478, 3.8)],\n",
" ['Bukit Lawang Trip',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )',\n",
" 'Puncak Bukit Manalise Aek Buro',\n",
" 'Taman Sri Deli',\n",
" 'Taman Bunga',\n",
" 'Pantai Sikabau'])],\n",
" [([(38047, 634, 85315087, 4.0)],\n",
" ['Abadas Jaya',\n",
" 'Museum Huta Bolon Simanindo',\n",
" 'Taman Remaja Binjai',\n",
" 'Air Terjun Tarunggang',\n",
" 'Darul Umroh',\n",
" 'Dunia Outbound Camp',\n",
" 'Royal Palace Nafis Jackson'])],\n",
" [([(37057, 618, 83119870, 4.0)],\n",
" ['Bukit Lawang Explore',\n",
" 'Kolam Renang Pesona Wisata',\n",
" 'Wisata Pulau Spantiang',\n",
" 'Revolution Heroes Monument',\n",
" 'Titi Gantung Bridge',\n",
" 'Parhallow Viewpoint And Coffee Shop'])],\n",
" [([(50909, 848, 113835174, 4.0)],\n",
" ['Ambar Onan Runggu',\n",
" 'Bukit Lawang Explore',\n",
" 'Sabah Simelir',\n",
" 'Taman Sungai Padang',\n",
" 'Taman Cadika Pramuka',\n",
" 'Pasar Tomok',\n",
" 'Malay Street Medan'])],\n",
" [([(32705, 545, 73469783, 4.0)],\n",
" ['Pantai Cermin Theme Park & Resort Hotel', 'Muaraopu', 'Kebun Madu Efi'])],\n",
" [([(30910, 515, 69489565, 4.0)],\n",
" ['Bat Cave, Bukit Lawang',\n",
" 'Vihara Avalokitesvara',\n",
" 'Pemandian Pulau Batu (Pulbat)',\n",
" 'Kantor Balai Taman Nasional Batang Gadis',\n",
" 'Air Terjun Taman Eden 100, Tobasa',\n",
" 'Toba Lake Sibolahotang Beautiful Beach',\n",
" 'Wisata Alam Datuk'])],\n",
" [([(37856, 631, 84891565, 4.0)],\n",
" ['Counters Kupj Simpang Sei Kopas',\n",
" 'Namo Cengkeh',\n",
" 'Air Terjun Betala',\n",
" 'Simpang Bantoon',\n",
" 'Hotel Wisata Indah',\n",
" 'Sumatra Tours Holiday & Jungle Trekking'])],\n",
" [([(38211, 637, 85678739, 3.6)],\n",
" ['Twins Travel',\n",
" 'Langkat Regency',\n",
" 'Objek Wisata Maggrove Sisarahili Ts',\n",
" 'Botanical Samosir',\n",
" 'Pantai Barat',\n",
" 'Desa Adat Ragi Hotang Meat',\n",
" 'Bagan Percut'])],\n",
" [([(59020, 984, 131820435, 4.3)],\n",
" ['Taman Gajah Mada',\n",
" 'Wisata Pulau Spantiang',\n",
" 'Pantai Sikabau',\n",
" 'Jembatan Dalik Lubuk Sikaping',\n",
" 'Market Wisata (Tour Bangkok, Tour Phuket, Tour Medan)',\n",
" 'Masjid Raya Nur Addin',\n",
" 'Pusat Kuliner Kota Sibolga'])],\n",
" [([(33981, 566, 76299174, 4.0)],\n",
" ['Puncak Anai',\n",
" 'Dokter Travel',\n",
" 'Putri Cahaya Travel',\n",
" 'Tao Lake Rod Onang'])]]"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data = df[\"Tempat Wisata\"]\n",
"criteria = tercriteria(data)\n",
"print(len(criteria))\n",
"#criteria"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[([(33248, 554, 74673826, 4.1)],\n",
" ['Pasir Putih Porsea',\n",
" 'Warung Info Wisata',\n",
" 'Pemandian Air Panas Sibayak Mardinding Julu',\n",
" 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)',\n",
" 'De Hole Laguna',\n",
" 'Museum Simalungun'])]"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pr = parentselect(criteria)\n",
"pr"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[array(['Chinatown Medan', 'Luppatan Tali - Tali', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Batu Lobang Sibaganding', 'Fortress Seven Layer', 'Vania Travel',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pantai Buih', 'Musala Waterfall', 'Masjid Raya Nur Addin',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pulau Pigago', 'Puncak Saragodung', 'Pantai Batu Rusa',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Wisata Alam \"Panatapan Parupuk Julu\"', 'Tapian Siri-Siri Syariah',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Masjid Agung Sibolga', 'Vania Travel', 'Wisata Bah Kulistik',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Cis Tour & Travel', 'Sopo Partungkoan',\n",
" 'Pt. Npm Perwakilan On Bus', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pantai Pelawan', 'Cis Tour & Travel', 'Batak Museum',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pantai Simallo', 'Pantai Kenangan', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pantai Pasir Putih', 'Pantai Sikabau', 'Alun Alun Kota Kisaran',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Air Terjun Pongkar',\n",
" 'Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan )',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U59'),\n",
" array(['Sampuren Tutuen Sige', 'Aek Kanopan', 'Chinatown Medan',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Loket Bus Bintang Utara', 'Bendungan Batang Tongar',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pantai Indah Sipinggan', 'Bendungan Lau Si Meimei',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Halo Angso Duo Pratama Bro. Pt', 'Putri Cahaya Travel',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Kolam Pancing Asri', 'Kupu-Kupu Garden Guest House & Cafe',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Bekas Istana Kesultanan Asahan', 'Simpang Bantoon',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pasir Putih Janggawari', 'Pemandian Alam Agape',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Sri Supramaniyam Temple', 'Pantai Malaya', 'Sri Deli Park',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Gedung Bks Pps', 'Cafe Goa Kaca', 'T.Garden',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Cafe Goa Kaca', 'Pesanggrahan Bung Karno', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Danau Sipogas', 'Kota Padang Sidempuan', 'Agen Bus Karina',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Armaya Wisata Alam', 'Danau Linting',\n",
" 'Toba Lake Sibolahotang Beautiful Beach', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Sabah Simelir', 'Konservasi Sungai Kukam',\n",
" 'Air Terjun Linggahara-Rantau Prapat', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Jembatan Tano Ponggol', 'Pasir Putih Janggawari', 'Pondok Pisang',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U63'),\n",
" array(['Tumori Traditional Village',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bukit Lawang Planet Hijau', 'Mora Indah', 'West Kisaran',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Elsasya Utama', 'Mester Bukit Lawang (Tour Guide)', 'Sbv',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Air Terjun Linggahara-Rantau Prapat', 'Aek Kanopan',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Alun Alun Kota Kisaran', 'Lorong Indah', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Air Terjun Situak Lotik Iii', 'Air Terjun Pongkar',\n",
" 'Agrowisata Hidro Aa', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Puncak Tonang', 'Azizi Mosque', 'Air Terjun Pongkar',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Alun Alun Kota Kisaran', 'Pasar Kaget Kota Binjai',\n",
" 'Pool Bus Intra', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U44'),\n",
" array(['Pantai Teluk Kerang', 'Delta', 'Masjid Raya Stabat',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Taman Cadika Pramuka', 'Pantai Batu Rusa', 'Batang Bahal',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U59'),\n",
" array(['Wisata Pancing Sungai Bedera', 'Sembilantujuh Tour&Travel',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Little India Medan', 'Panatapan Sileme-Leme',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Welterbeminimini', 'Garunggang', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Danau Laut Tinggal', 'Bukit Lawang Orangutan Trekking',\n",
" 'Pantai Pasir Putih', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Wisata Pancing Sungai Bedera', 'Bukitlawang Trek',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Danau Sipogas', 'Handreva Tour', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Air Terjun Tarunggang', 'Bukitlawang Trek', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Masjid Al Istiqomah', 'Perkebunan Londut', 'Taman Edukasi Binjai',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pusat Informasi Geopark Kaldera Toba Sigulatti',\n",
" 'Wisata Sawah Koto', 'Bukit Travel Gibeon', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U46'),\n",
" array(['Air Terjun Lumban Rang', 'Air Soda Kabupaten Karo',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Masjid Agung Kota Binjai', 'Sabah Simelir', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bayu Lagoon Resto & Taman Rekreasi', 'Pemandian Alam Bolang',\n",
" 'Armaya Wisata Alam', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bendungan Batang Tongar', 'Puncak Santai', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Makam Ompung Parmata Sapihak', 'Hendreva Tour',\n",
" 'Objek Wisata Budaya Batu Kursi Raja Siallagan',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U45'),\n",
" array(['Museum Kota Tebing Tinggi',\n",
" 'Wisata Alam Experience Survive Champing', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pantai Pulau Putri', 'Gapura Wisata Alam Lae Mbilulu',\n",
" 'Salib Kasih', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U45'),\n",
" array(['Rm Batunadua Indah', 'Pasar Kaget Kota Binjai',\n",
" 'Wisata Alam Siringo', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pemandian Sidamanik', 'Little India Medan', 'Agrowisata Hidro Aa',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U53'),\n",
" array(['Lau Teba Langkat', 'Stasiun Binjai', 'Agen Bus Karina',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['North Padang Lawas Regency', 'Hotel Pesona Wisata',\n",
" 'Masjid Agung Sibolga', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Beranda Madina', 'Taman Bunga', 'Bukit Lawang Trip',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Wisata Pemandian Water Hill', 'Kolam Pancing Asri',\n",
" 'Bukit Lawang Wisata Alam', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Wisata Alam', 'Pantai Bul Bul', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Danau Linting', 'Bagan Percut', 'Air Terjun Simonang Monang',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Sibio-Bio Advanture Park', 'Tahura (Taman Hutan Raya)',\n",
" 'Taman Rekreasi Kong Mah', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['The Le Hu Garden',\n",
" 'Pusat Informasi Geopark Kaldera Toba Sigulatti',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U46'),\n",
" array(['Counters Kupj Simpang Sei Kopas', 'Vihara Pekong Lima',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U46'),\n",
" array(['Taman Alamta Jaya', 'Taman Sri Deli',\n",
" 'Wisata Alam Experience Survive Champing', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Wisata Taman Merci', 'The Heritage', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pantai Pelawan', 'Museum Simalungun', 'Putri Cahaya Travel',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Danau Sipogas', 'Tinggi Raja', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U45'),\n",
" array(['Air Terjun Simpang Kanan', 'Bekas Istana Kesultanan Asahan',\n",
" 'Bukit Lawang Guide', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Puncak Paranginan,Aek Nabirong', 'Rumah Makan Irian',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Disparbud Dairi', 'Monkey Forest Umar Manik Sibaganding',\n",
" 'Air Terjun Kemuning', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Tugu D.I Panjaitan', 'Tugu Simpang Empat', 'Setia Wisata',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Umbul Ejuk', 'Air Terjun Sempugen', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Balai Datuk Setia Maharaja Negeri Serdang', 'Lau Perkoh',\n",
" 'Lumban Binanga Beach Laguboti', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pt. Hikmah', 'Kuta Sukareme', 'Darul Umroh',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Taman Sungai Padang', 'Darul Umroh', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Taman Megawati', 'Pantai Pulau Putri', 'Taman Pesona Asri',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['One Heart Hill', 'Sumur Tua', 'Bakarang Simalem',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Cis Tour & Travel', 'Batang Bahal', 'Biro Jasa',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Taman Benteng Lions Club', 'Letter Z', 'Musala Waterfall',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Monumen Equator', 'Puncak Hoza',\n",
" 'Sumatra Tours Holiday & Jungle Trekking', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Silalahi I', 'Wisata Alam Siringo', 'Simanimbo Waterfall',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Aek Kanopan', 'Perumahaan Azalea Asri', 'Kolam Pancing Asri',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Masjid Agung Kota Binjai', 'Thermal Baths U.S.K Hineni',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['North Namu Ukur', 'Pasar Kaget Kota Binjai',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Namo Cengkeh', 'Pt Wisata Habibah Berkah', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Alam Wisata Danau Laut Tador', 'Kualuh Hulu', 'Tirtanadi Tower',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Desa Adat Ragi Hotang Meat', 'Loket Satu Nusa',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pt Wisata Habibah Berkah', 'Twins Travel', 'Elsasya Utama',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Museum Zoologi', 'Pantai Pasir Putih Parparean',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U89'),\n",
" array(['Aek Sipaulak Hosa Loja', 'Elsasya Utama', 'Taman Selfie',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Bakarang Simalem', 'Ikan Larangan Lubuak Landua',\n",
" 'Penatapan Pamah Simelir', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Oyo 1752 Hotel Wisata', 'Dokter Travel',\n",
" 'Pasar Kaget Kota Binjai', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Wisata Sawah Koto', 'Air Travel Parsariran',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pusat Kuliner Kota Sibolga', 'Simpang Pantai Monyet',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Telagah', 'Masjid Lama Kabanjahe', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pondok Wisata Lagundi Samosir', 'Gundaling',\n",
" 'Pt. Npm Perwakilan On Bus', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Rosyid Orangutan Tours',\n",
" 'Wisata Alam Experience Survive Champing', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Masjid Raya Kisaran Kota', 'Jembatan Sidikalang Wisata',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Letter Z', 'Luppatan Tali - Tali', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bukit Tara Bunga', 'Plta Sipansihaporas',\n",
" 'Lumban Binanga Beach Laguboti', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Pasir Putih Porsea', 'Warung Info Wisata',\n",
" 'Pemandian Air Panas Sibayak Mardinding Julu',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Danau Teratai', 'Bandar Pulau', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Air Terjun Malakkut', 'Pantai Bukit Malintang Buburan',\n",
" 'Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan )',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U59'),\n",
" array(['Wisata Bah Kulistik', 'Medan City Tour', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Saba Napa', 'Gedung Bks Pps', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Jembatan Sidikalang Wisata', 'Lau Bengkelade Kuta',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Tugu Pahlawan Revolusi', 'Tinggi Raja', 'Medan City Tour',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Desa S.Kalangan Ii', 'Bair Falls',\n",
" 'Waterpark Bima Utomo International', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Taman Benteng Lions Club', 'Berakit-Rakit Ke Hulu',\n",
" 'Masjid Agung Sibolga', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Beach Island Karang', 'Pantai Pasir Putih Parparean',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Batang Gadis National Park', 'Awaliyah Tour And Travel',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Ekowisata Mangrove', 'Warisan Dunia Minimini', 'Tapian Puti',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Twa Lau Debuk-Debuk', 'Millenium Wisata Indah Pt',\n",
" 'Penatapan Pamah Simelir', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Azizi Mosque', 'Padang Lawas Regency', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U53'),\n",
" array(['Bendungan Lau Si Meimei', 'Pondok Pisang', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Yayasan Perguruan Sisingamangaraja', 'Masjid Lama Gang Bengkok',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Taman Kebun Bunga èŒ  榀¢ 圀™', 'Umbul Ejuk',\n",
" 'Air Terjun Kemuning', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Dairi Regency', 'Sabah Simelir', 'Pelangi Nusantara',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Baneara, Partungko Naginjang', 'Welterbeminimini',\n",
" 'Taman Sungai Padang', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bukit Lawang Wisata Alam', 'Pt. Jsa Tour & Travel',\n",
" 'Penatapan Pamah Simelir', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bukit Lawang Trip', 'Pemandian Air Panas - Batu Bara ( 50 )',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Abadas Jaya', 'Museum Huta Bolon Simanindo',\n",
" 'Taman Remaja Binjai', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bukit Lawang Explore', 'Kolam Renang Pesona Wisata',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Ambar Onan Runggu', 'Bukit Lawang Explore', 'Sabah Simelir',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Pantai Cermin Theme Park & Resort Hotel', 'Muaraopu',\n",
" 'Kebun Madu Efi', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Bat Cave, Bukit Lawang', 'Vihara Avalokitesvara',\n",
" 'Pemandian Pulau Batu (Pulbat)', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Counters Kupj Simpang Sei Kopas', 'Namo Cengkeh',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U43'),\n",
" array(['Twins Travel', 'Langkat Regency',\n",
" 'Objek Wisata Maggrove Sisarahili Ts', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43'),\n",
" array(['Taman Gajah Mada', 'Wisata Pulau Spantiang', 'Pantai Sikabau',\n",
" 'Kolam Pancing Sapat', 'Pemandian Pulau Batu (Pulbat)'],\n",
" dtype='<U53'),\n",
" array(['Puncak Anai', 'Dokter Travel', 'Kolam Pancing Sapat',\n",
" 'Pemandian Pulau Batu (Pulbat)'], dtype='<U43')]"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cs = crossover(pr, criteria)\n",
"cs"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"129"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(cs)"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0 Ksu Antara Travel\n",
"1 A8 Village\n",
"2 Air Terjun Sigarattung ( Sampuran Na Pitu)\n",
"3 Air Terjun Taman Eden 100, Tobasa\n",
"4 Abadas Jaya\n",
"5 Aek Kanopan\n",
"6 Aek Malapari\n",
"7 Aek Milas\n",
"8 Aek Milas Paringgonan Sibuhuan\n",
"9 Aek Sipaulak Hosa Loja\n",
"10 Aek Saroha\n",
"11 Agen Bus Karina\n",
"12 Agrowisata Hidro Aa\n",
"13 Air Panas Simolap\n",
"14 Air Soda Kabupaten Karo\n",
"15 Air Terjun Aek Matua\n",
"16 Air Terjun Aek Godang\n",
"17 Air Terjun Aek Nabontar\n",
"18 Air Terjun Binanga Bolon\n",
"19 Air Terjun Bah Salak\n",
"20 Air Terjun Betala\n",
"21 Air Terjun Cirocai Sungai Pandahan\n",
"22 Air Terjun Efrata\n",
"23 Air Terjun Gorbus\n",
"24 Air Terjun Kemuning\n",
"25 Air Terjun Lembah Sipogas\n",
"26 Air Terjun Lenggo Geni\n",
"27 Air Terjun Linggahara-Rantau Prapat\n",
"28 Air Terjun Lumban Rang\n",
"29 Air Terjun Malakkut\n",
" ... \n",
"576 Wisata Madu Aek Nauli\n",
"577 Wisata Makam Papan Tinggi Barus\n",
"578 Wisata Pancing Sungai Bedera\n",
"579 Wisata Pulau Spantiang\n",
"580 Wisata Rekreasi Danau Buatan\n",
"581 Wisata Sawah Koto\n",
"582 Wisata Sipinsur\n",
"583 Wisata Taman Merci\n",
"584 Wisata Alam\n",
"585 Wisata Hutan Mangrove Perpat\n",
"586 Wisata Pemandian Water Hill\n",
"587 Yayasan Perguruan Sisingamangaraja\n",
"588 Zam Zam Prima Persada. Pt\n",
"589 Air Terjun Baburai\n",
"590 Air Terjun Bertala\n",
"591 Air Terjun Kemuning\n",
"592 Air Terjun Sampuran Widuri\n",
"593 Air Terjun Sempugen\n",
"594 Air Terjun Situak Lotik Iii\n",
"595 Embae Tour & Travel\n",
"596 Konservasi Sungai Kukam\n",
"597 Museum Deli Serdang\n",
"598 Old City Hall\n",
"599 Pantai Pasir Putih\n",
"600 Pasir Putih Porsea\n",
"601 Pelangi Nusantara\n",
"602 Pemandian Air Panas Tirto Kencono\n",
"603 Travel Panyabungan Padang\n",
"604 Welterbeminimini\n",
"605 Wisata Merci\n",
"Name: Tempat Wisata, Length: 606, dtype: object"
]
},
"execution_count": 27,
>>>>>>> 2d671302635a972c35f91aa10b40f9c627584cfc
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
<<<<<<< HEAD
"crite = parentselect(criteria)\n",
"crite"
=======
"data = df[\"Tempat Wisata\"]\n",
"data"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "float division by zero",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m<ipython-input-26-a1a90b13e780>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0minputan\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcs\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m0\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[1;32m<ipython-input-6-f7e2581f299d>\u001b[0m in \u001b[0;36minputan\u001b[1;34m(param)\u001b[0m\n\u001b[0;32m 13\u001b[0m \u001b[0mwaktu\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mestimasiWaktu\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mjarak\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 14\u001b[0m \u001b[0mbiaya\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mestimasiBiaya\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mjarak\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 15\u001b[1;33m \u001b[0mrate\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0maverageRating\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpreproses_Rating\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 16\u001b[0m \u001b[0minputt\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mjarak\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mwaktu\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mbiaya\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mrate\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 17\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0minputt\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;32m<ipython-input-5-6ffdabd77bb7>\u001b[0m in \u001b[0;36maverageRating\u001b[1;34m(preproses_Rating)\u001b[0m\n\u001b[0;32m 61\u001b[0m \u001b[1;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpreproses_Rating\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 62\u001b[0m \u001b[0mav\u001b[0m \u001b[1;33m+=\u001b[0m \u001b[0mfloat\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpreproses_Rating\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 63\u001b[1;33m \u001b[0maverage\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mround\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfloat\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mav\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m/\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mpreproses_Rating\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 64\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0maverage\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;31mZeroDivisionError\u001b[0m: float division by zero"
]
}
],
"source": [
"inputan(cs[0])"
>>>>>>> 2d671302635a972c35f91aa10b40f9c627584cfc
]
},
{
......
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Library"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"# import sys\n",
"# reload(sys)\n",
"# sys.setdefaultencoding('utf-8')\n",
"import re\n",
"import csv\n",
"import nltk\n",
"import math\n",
"import string\n",
"import random\n",
"import haversine\n",
"import pandas as pd\n",
"import numpy as np\n",
"from random import *\n",
"from math import *\n",
"from string import digits\n",
"from collections import Counter\n",
"import matplotlib as mpl\n",
"from haversine import haversine, Unit\n",
"import matplotlib.pyplot as plt\n",
"from subprocess import check_output\n",
"from sklearn import metrics"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Loading the Data"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Banyak data = 606\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Tempat Wisata</th>\n",
" <th>Rating</th>\n",
" <th>Latitude</th>\n",
" <th>Longitude</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Ksu Antara Travel</td>\n",
" <td>4.6</td>\n",
" <td>2.9860</td>\n",
" <td>99.6204</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>A8 Village</td>\n",
" <td>4.0</td>\n",
" <td>2.0137</td>\n",
" <td>99.0037</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Air Terjun Sigarattung ( Sampuran Na Pitu)</td>\n",
" <td>4.5</td>\n",
" <td>2.4042</td>\n",
" <td>99.0474</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Air Terjun Taman Eden 100, Tobasa</td>\n",
" <td>4.4</td>\n",
" <td>2.6951</td>\n",
" <td>98.6897</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Abadas Jaya</td>\n",
" <td>4.3</td>\n",
" <td>3.7704</td>\n",
" <td>98.6321</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>Aek Kanopan</td>\n",
" <td>4.8</td>\n",
" <td>2.5633</td>\n",
" <td>99.5229</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Aek Malapari</td>\n",
" <td>5.0</td>\n",
" <td>2.2680</td>\n",
" <td>99.7627</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>Aek Milas</td>\n",
" <td>3.9</td>\n",
" <td>1.5227</td>\n",
" <td>99.2204</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>Aek Milas Paringgonan Sibuhuan</td>\n",
" <td>4.0</td>\n",
" <td>2.0399</td>\n",
" <td>99.8223</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>Aek Sipaulak Hosa Loja</td>\n",
" <td>4.5</td>\n",
" <td>2.8446</td>\n",
" <td>98.5291</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Tempat Wisata Rating Latitude Longitude\n",
"0 Ksu Antara Travel 4.6 2.9860 99.6204\n",
"1 A8 Village 4.0 2.0137 99.0037\n",
"2 Air Terjun Sigarattung ( Sampuran Na Pitu) 4.5 2.4042 99.0474\n",
"3 Air Terjun Taman Eden 100, Tobasa 4.4 2.6951 98.6897\n",
"4 Abadas Jaya 4.3 3.7704 98.6321\n",
"5 Aek Kanopan 4.8 2.5633 99.5229\n",
"6 Aek Malapari 5.0 2.2680 99.7627\n",
"7 Aek Milas 3.9 1.5227 99.2204\n",
"8 Aek Milas Paringgonan Sibuhuan 4.0 2.0399 99.8223\n",
"9 Aek Sipaulak Hosa Loja 4.5 2.8446 98.5291"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = pd.read_csv('C:/Users/lenovo/TA13/Pre_TA_13.csv', engine='python')\n",
"print ('Banyak data =', len(df))\n",
"df.head(10)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Generate Tempat Wisata"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"temp = []\n",
"tempat = []\n",
"inputan = []\n",
"TempatWisata_1 = []\n",
"rate = []\n",
"\n",
"# function generateTempatWisata to get \"Tempat Wisata\" from Data set\n",
"def generateTempatWisata(tempdata):\n",
" TempatWisata = []\n",
" TempatWisata.clear()\n",
" for i in range(randrange(2, 10)):\n",
" x = choice(tempdata)\n",
" if x not in TempatWisata:\n",
" TempatWisata.append(x)\n",
" return TempatWisata\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Encoding"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"# function Encoding Itinerary to make value itinerary 0 or 1\n",
"def encodingItinerary(Itinerary, tempatwisata): \n",
" arr2 = []\n",
" arr2.clear()\n",
" for x in range(len(tempatwisata)):\n",
" cek = False\n",
" for i in range(len(Itinerary)):\n",
" if tempatwisata[x] is Itinerary[i]:\n",
" arr2.append(1)\n",
" cek = True\n",
" break\n",
" if(cek == False):\n",
" arr2.append(0)\n",
" return arr2\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Fitness Function"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"# Class Prepare Itinerary\n",
"class preItinerary:\n",
" \n",
" # function get Longitude and Latitude from Data\n",
" def getLongLat(param):\n",
" test = []\n",
" test.clear()\n",
" for i in range(len(param)):\n",
" if param[i] == 1:\n",
" test.append((df.iloc[i][2], df.iloc[i][3]))\n",
" return test \n",
" \n",
" # function get Rating from Data\n",
" def getRating(param):\n",
" rate = []\n",
" rate.clear()\n",
" for i in range(len(param)):\n",
" if param[i] == 1:\n",
" rate.append((df.iloc[i][1]))\n",
" return rate\n",
"\n",
"# Class Fitness Function\n",
"class fitnessFunction:\n",
" \n",
" # 1. function Estimasi Jarak using Haversine Formula to calculating distance\n",
" def haversineFormula(param):\n",
" r = 6373.0 # default \n",
" sum_ = 0\n",
" for x in range(len(param) - 1):\n",
" dlat = abs(float(param[x+1][0]) - float(param[x][0]))\n",
" dlon = abs(float(param[x+1][1]) - float(param[x][1]))\n",
" a = math.sin(dlat / 2)**2 + math.cos(param[x+1][0]) * math.cos(param[x][0]) * math.sin(dlon / 2)**2\n",
" c = 2 * math.atan2(math.sqrt(a), math.sqrt(1 - a))\n",
" dis = r * c\n",
" sum_ += dis\n",
"\n",
" dist = round(sum_)\n",
" return dist\n",
" \n",
" # 2. function Estimasi Waktu to calculating total time of each itinerary\n",
" def estimasiWaktu(jarak):\n",
" v = 60 # default average velocity\n",
" waktu = jarak / v\n",
" time_hours = round(waktu)\n",
" time_days = round(time_hours/12)\n",
" return time_hours\n",
" \n",
" # 3. function Estimasi Biaya to calculating total cost of each itinerary\n",
" def estimasiBiaya(jarak):\n",
" BBM = 7650 # Biaya BBM 1 Liter = Rp.7650\n",
" S_BBM =3.45 # Jarak tempuh untuk 1 Liter BBM = 3.45 KM\n",
" Biaya_R = 950000 # Biaya sewa/rental bus = Rp.950000\n",
" Biaya_BBM = round((jarak / S_BBM) * BBM) \n",
" Total_Cost = Biaya_BBM + Biaya_R\n",
" return Total_Cost\n",
" \n",
" # 4. function Average Rating to calculating average rating of each itinerary\n",
" def averageRating(preproses_Rating):\n",
" av = 0\n",
" average = 0\n",
" for i in range(len(preproses_Rating)):\n",
" av += float(int(preproses_Rating[i]))\n",
" average = round(float(av)/(len(preproses_Rating)), 1)\n",
" return average"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
"# function Inputan \n",
"tempdata = df[\"Tempat Wisata\"]\n",
"itinerary = generateTempatWisata(tempdata)\n",
"def inputan(param):\n",
" inputt = []\n",
" inputt.clear()\n",
" p = preItinerary\n",
" encode = encodingItinerary(param, tempdata)\n",
" preproses_Itinerary = p.getLongLat(encode)\n",
" preproses_Rating = p.getRating(encode)\n",
" f = fitnessFunction\n",
" jarak = f.haversineFormula(preproses_Itinerary)\n",
" waktu = f.estimasiWaktu(jarak)\n",
" biaya = f.estimasiBiaya(jarak)\n",
" rate = f.averageRating(preproses_Rating)\n",
" inputt.append((jarak, waktu, biaya, rate))\n",
" return inputt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Implementasi Algoritma"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1. Simulated Annealing"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"# Class Simulated Annealing\n",
"class simeal:\n",
" \n",
" # function test to get parameter \n",
" def test (data):\n",
" tempatbaru = []\n",
" da = generateTempatWisata(data)\n",
" inn = inputan(da)\n",
" tempatbaru.append((inn, da))\n",
" return tempatbaru\n",
" \n",
" # function calculate to chose best solution from 2 parameter (x1) and (x2)\n",
" def calculate(x1, x2):\n",
" if (x1[0][0] < x2[0][0] and x1[0][3] < x2[0][3]) or (x1[0][0] < x2[0][0] and x1[0][3] == x2[0][3]):\n",
" return x1\n",
" else:\n",
" return x2\n",
" \n",
" # function solution to save all solution \n",
" def solution():\n",
" temp_Case = []\n",
" data = df[\"Tempat Wisata\"]\n",
" T_akhir = 500 # default\n",
" T_awal = 0.0001 # default\n",
" CoolingRate = 0.9 # default\n",
" while T_awal < T_akhir: # condition statement\n",
" x1 = simeal.test(data)\n",
" x2 = simeal.test(data)\n",
" x11 = x1[0][0]\n",
" x22 = x2[0][0]\n",
" Newstate = simeal.calculate(x11, x22)\n",
" if Newstate is x11:\n",
" temp_Case.append(x1)\n",
" else:\n",
" temp_Case.append(x2)\n",
" \n",
" T_akhir = T_akhir * CoolingRate\n",
" \n",
" return temp_Case\n",
" \n",
"# Class printt \n",
"class printt:\n",
" \n",
" # function result to print all solution\n",
" def result():\n",
" result_ = simeal.solution()\n",
" print(len(result_), \"\\n\")\n",
" for i in range(len(result_)):\n",
" print(\"Itinerary \", i+1, \" = \",result_[i], \"\\n\")"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"#printt.result()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 2. Iterated Local Search"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"#Initial Solution\n",
"\n",
"class initial:\n",
" def solution (data):\n",
" tempatbaru = []\n",
" tempatbaru *= 0\n",
" da = generateTempatWisata(data)\n",
" inn = inputan(da)\n",
" tempatbaru.append((inn, da))\n",
" return tempatbaru\n",
" \n",
" def listsolution(data):\n",
" list_ = []\n",
" listiteration = 150\n",
" for i in range(listiteration):\n",
" c = initial.solution(data)\n",
" list_.append(c)\n",
" return list_\n",
"\n",
"class iteratedlocalsearch: \n",
" def calculate(data):\n",
" final_solution = []\n",
" sol_iteration = 150\n",
" for it in range(sol_iteration):\n",
" x1 = initial.solution(data)\n",
" x2 = initial.listsolution(data)\n",
" x2.sort(reverse = False)\n",
" tes = False;\n",
" x11 = x1[0][0][0][0]\n",
" x12 = x1[0][0][0][3]\n",
" for i in range(len(x2)):\n",
" \n",
" x21 = x2[i][0][0][0][0]\n",
" x22 = x2[i][0][0][0][3]\n",
" if (x11 < x21 and x12 < x22) or (x11 < x21 and x12 == x22):\n",
" tes = True;\n",
" break;\n",
" if(tes):\n",
" final_solution.append(x1);\n",
" return final_solution\n",
"\n",
"# Class printt \n",
"class printils:\n",
" \n",
" def resultils():\n",
" data = df[\"Tempat Wisata\"]\n",
" result_ = iteratedlocalsearch.calculate(data)\n",
" print(len(result_), \"\\n\")\n",
" for i in range(len(result_)):\n",
" print(\"Itinerary \", i+1, \" = \", result_[i], \"\\n\")\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"#printils.resultils()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 3.Evalutionary Algorithm"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
"#Random Population\n",
"\n",
"def swappositions(list, pos1, pos2):\n",
" list[pos1], list[pos2] = list[pos2], list[pos1]\n",
" return list\n",
"\n",
"def setinput(data):\n",
" collect = []\n",
" dft = df[\"Tempat Wisata\"]\n",
" for i in range(len(data)):\n",
" tt = data[i]\n",
" tess = []\n",
" tess *= 0\n",
" for c in range (len(tt)):\n",
" tess.append(tt[c])\n",
" collect.append(tess)\n",
" return collect\n",
"\n",
"class evalutionary():\n",
" def listcrossover(data):\n",
" basic = []\n",
" for x in range(len(data)):\n",
" cc = inputan(data[x])\n",
" basic.append(cc)\n",
" return basic\n",
"\n",
" def populationnfitnes (data):\n",
" intcriteria = initial.solution(data)\n",
" return intcriteria\n",
"\n",
" def tercriteria(data):\n",
" listcriteria = []\n",
" listcriteria *= 0\n",
" for i in range(150):\n",
" cri = generateTempatWisata(data);\n",
" if len(cri) > 2:\n",
" listcriteria.append(cri)\n",
" return listcriteria\n",
"\n",
" def parentselect(data):\n",
" parent = choice(data)\n",
" return parent\n",
"\n",
" def crossover(data, listdata):#Single point crossover\n",
" offspring = []\n",
" offspring *= 0\n",
" cros = np.array_split(data, 2)\n",
" for i in range (len (listdata)):\n",
" over = np.array_split(listdata[i], 2)\n",
" #offsp = np.append(cros[0], over[1])\n",
" tes = np.append(cros[0], over[1] )\n",
" offspring.append(tes)\n",
" return offspring\n",
"\n",
" def mutatuion(data):\n",
" rescross = []\n",
" for i in range(len(data)):\n",
" ck = data[i]\n",
" if len(ck) > 3:\n",
" swappositions(ck, 1, len(ck)-2)\n",
" rescross.append(ck)\n",
" return rescross\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"122\n"
]
}
],
"source": [
"data = df[\"Tempat Wisata\"]\n",
"criteria = evalutionary.tercriteria(data)\n",
"print(len(criteria))"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[['Wisata Alam \"Panatapan Parupuk Julu\"',\n",
" 'Laterzhya Zimhuli',\n",
" 'Danau Pagaran Padang',\n",
" 'Taman Wisata Simatahari Indah',\n",
" 'Sembilantujuh Tour&Travel',\n",
" 'Warung Info Wisata',\n",
" 'Pusat Posko \"Teroh-Teroh.',\n",
" 'Sampuren Tutuen Sige'],\n",
" ['Simonis', 'Tugu Air Mancur Majestik', 'Tugu Jeruk Berastagi'],\n",
" ['Little India Medan',\n",
" 'Masjid Raya Nur Addin',\n",
" 'Wisata Merci',\n",
" 'Connectingjungle'],\n",
" ['Bekancan River',\n",
" 'Sp.Lau Petundal',\n",
" 'Pemandian Air Panas Goa Ergendang',\n",
" 'Gedung Bks Pps',\n",
" 'Masjid Al Osmani',\n",
" 'Bukit Senyum',\n",
" 'Mobil Wisata Medan'],\n",
" ['Air Terjun Simpang Kanan',\n",
" 'Rumah Makan Irian',\n",
" 'Bukit Lawang Planet Hijau',\n",
" 'Bukit Tara Bunga',\n",
" 'Simpang Pantai Monyet',\n",
" 'Siba Island Resort',\n",
" 'Mmtc Walking Street',\n",
" 'Amarjun Wisata',\n",
" 'Laterzhya Zimhuli'],\n",
" ['Bukit Senyum',\n",
" 'Objek Wisata Pantai Ujung Sibolga',\n",
" 'Connectingjungle',\n",
" 'Vihara Pekong Lima',\n",
" 'Padang Lawas Regency',\n",
" 'Pemandian Air Panas Goa Ergendang'],\n",
" ['Elsasya Utama',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )',\n",
" 'Pemandian Pulau Batu (Pulbat)',\n",
" 'Pantai Pongkar',\n",
" 'Beranda Madina',\n",
" 'Revolution Heroes Monument',\n",
" 'Ekowisata Mangrove'],\n",
" ['Desa S.Kalangan Ii',\n",
" 'Air Terjun Sibabo',\n",
" 'Puncak Paranginan,Aek Nabirong',\n",
" 'Masjid Agung Islamic Centre Pasir Pengaraian Rohul',\n",
" 'Sansan Travel'],\n",
" ['Pantai Bukit Malintang Buburan',\n",
" 'West Kisaran',\n",
" 'Museum Huta Bolon Simanindo',\n",
" 'Pemandu Bukit Lawang',\n",
" 'Bukit Lawang Explore',\n",
" 'Tugu Becak Bsa Siantar',\n",
" 'Armaya Wisata Alam'],\n",
" ['Pemandian Air Panas Tirto Kencono',\n",
" 'Connectingjungle',\n",
" 'Tanjung Pura',\n",
" 'Agrowisata Hidro Aa',\n",
" 'Saf Travel Indo'],\n",
" ['Luppatan Tali - Tali',\n",
" 'Monumen Loko Uap Du Croo & Braun',\n",
" 'Air Terjun Nyarai',\n",
" 'Pinang City',\n",
" 'Taman Rekreasi Kong Mah',\n",
" 'Danau Tao Batang Onang'],\n",
" ['Danau Cipogas Rohul', 'Vihara Pekong Lima', 'Bakarang Simalem'],\n",
" ['Pasar Kaget Kota Binjai',\n",
" 'Bukit Travel Gibeon',\n",
" 'Sumatra Jungle Trek',\n",
" 'Tirtanadi Tower'],\n",
" ['Saba Napa',\n",
" 'Taman Alamta Jaya',\n",
" 'Tugu Silahi Sabungan',\n",
" 'Tugu Simpang Empat',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Air Terjun Ponot',\n",
" 'Mora Indah',\n",
" 'Objek Wisata Luak Gadang, Guguak Rang Pisang'],\n",
" ['Penatapen Doulu',\n",
" 'Salak Monument Pakkat',\n",
" 'Menara Pandang Simanindo',\n",
" 'Vania Travel'],\n",
" ['Bintang Johor Swimming Pool',\n",
" 'Puncak Bukit Manalise Aek Buro',\n",
" 'Barusjahe',\n",
" 'Wisata Air Parsariran',\n",
" 'Pt. Hikmah',\n",
" 'Lapangan Pasir',\n",
" 'Pantai Barat Natal'],\n",
" ['Paranggiran Raja Silahisabungan',\n",
" 'Danau Marambe',\n",
" 'Pondok Pisang',\n",
" 'Pemandian Air Panas Goa Ergendang',\n",
" 'Peceren Karo Village',\n",
" 'Dokter Travel',\n",
" 'Pantai Barat'],\n",
" ['Tangkahan',\n",
" 'Bair Falls',\n",
" 'Taman Sungai Padang',\n",
" 'Wisata Bendunga Sei Palis',\n",
" 'Pt. Npm Perwakilan On Bus',\n",
" 'Wisata Madu Aek Nauli'],\n",
" ['Lingga Cultural Village',\n",
" 'Kuta Sukareme',\n",
" 'Mangrove Tour Lubuk Kertang',\n",
" 'Pantai Kenangan',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Museum Pusaka Karo - Berastagi'],\n",
" ['Pemandian Pulau Batu (Pulbat)',\n",
" 'Muara Beach Beautiful',\n",
" 'Air Terjun Taga Hambing'],\n",
" ['Dokter Travel',\n",
" 'Dermaga Silalahi',\n",
" 'Handreva Tour',\n",
" 'Taman Kebun Bunga èŒ ã¦Â¦Â€¢Ã¥Å“€™',\n",
" 'Museum Karo Lingga',\n",
" 'Air Terjun Efrata'],\n",
" ['Batu Marhosa', 'Tor Simago-Mago', 'Amarjun Wisata'],\n",
" ['Pantai Pelawan', 'Sp.Lau Petundal', 'Tugu Kol'],\n",
" ['Simanimbo Waterfall',\n",
" 'Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan',\n",
" 'Taman Sri Deli',\n",
" 'Taman Megawati',\n",
" 'Travel Panyabungan Padang',\n",
" 'Benteng Jepang',\n",
" 'Wisata Merci'],\n",
" ['Rm Batunadua Indah',\n",
" 'Pt. Sky Ocean Travel',\n",
" 'Air Terjun Bertala',\n",
" 'Namo Cengkeh',\n",
" 'Pantai Arta Indah',\n",
" 'Air Terjun Sigura-Gura',\n",
" 'R.M Wisata Indah',\n",
" 'Masjid Raya Stabat'],\n",
" ['Tanjung Apek Beach',\n",
" 'Pool Bus Intra',\n",
" 'Air Terjun Cirocai Sungai Pandahan',\n",
" 'Pantai Indah Sipinggan',\n",
" 'Air Terjun Sipagogo',\n",
" 'Masjid Mustaqim, Sikopi-Kopi, Pulo Dogom, Kualuh Hulu, Labuhanbatu Utara, Sumatera Utara.',\n",
" 'Jembatan Poriaha',\n",
" 'Lokasi Wisata Pemandian Air Panas Sipoholon',\n",
" 'Berastagi'],\n",
" ['Wisata Alam \"Panatapan Parupuk Julu\"', 'Danau Marambe', 'Tor Simago-Mago'],\n",
" ['Air Terjun Sitiotio',\n",
" 'Romance Padi Perbaungan',\n",
" 'Wisata Alam Datuk',\n",
" 'Konservasi Sungai Kukam'],\n",
" ['Wisata Alam \"Panatapan Parupuk Julu\"',\n",
" 'Lumban Binanga Beach Laguboti',\n",
" 'T.Garden',\n",
" 'Saf Travel Indo',\n",
" 'Masjid Raya'],\n",
" ['Delta',\n",
" 'Wisata Bendunga Sei Palis',\n",
" 'Anugerah Soambaton Beach',\n",
" 'Pantai Ketam',\n",
" 'Explore Bahorok Adventure Trip',\n",
" 'Go Adventure Tour & Travel Indonesia',\n",
" 'Sampuren Tutuen Sige'],\n",
" ['Taman Danau Wisata Bunga Tujuh',\n",
" 'Museum Perkebunan Indonesia',\n",
" 'Kolam Pancing Asri',\n",
" 'Taman Bunga',\n",
" 'Salib Kasih',\n",
" 'Pantai Teluk Kerang'],\n",
" ['Gunung Pandan River Tourism Area',\n",
" 'Air Terjun Aek Godang',\n",
" 'Magic Eye 3d Art Museum'],\n",
" ['Objek Wisata Patamuan',\n",
" 'Vihara Budha Taman Iman',\n",
" 'Bus Wisata Medan',\n",
" 'Air Terjun Betala',\n",
" 'Wisata Merci'],\n",
" ['Air Terjun Tarunggang',\n",
" 'Twa Lau Debuk-Debuk',\n",
" 'Setia Wisata',\n",
" 'Museum Lubuk Pakam',\n",
" 'Medan City Tour'],\n",
" ['Masjid Raya',\n",
" 'Langkat Regency',\n",
" 'Luppatan Tali - Tali',\n",
" 'Travel Panyabungan Padang',\n",
" 'Armaya Wisata Alam'],\n",
" ['Toddler Garden Binjai',\n",
" 'Market Wisata (Tour Bangkok, Tour Phuket, Tour Medan)',\n",
" 'Tugu Air Mancur Majestik',\n",
" \"Penginapan King's Ambarita\",\n",
" 'Pantai Buih',\n",
" 'Pasir Putih Porsea',\n",
" 'Museum Pusaka Karo - Berastagi'],\n",
" ['Jembatan Dalik Lubuk Sikaping',\n",
" 'Kantor Balai Taman Nasional Batang Gadis',\n",
" 'Pakpak Culture Association (Cgc)',\n",
" 'Bukit Lawang Day Trek',\n",
" 'Masjid Lama Gang Bengkok',\n",
" 'Sialang Batu',\n",
" 'Menara Pandang Simanindo',\n",
" 'Air Terjun Kemuning',\n",
" 'Museum Kota Tebing Tinggi'],\n",
" ['Vihara Pubbarama Buddhist',\n",
" 'Sri Supramaniyam Temple',\n",
" 'Letter Z',\n",
" 'Salib Kasih Tarutung',\n",
" 'Danau Marambe',\n",
" 'Kota Padang Sidempuan',\n",
" 'Baneara, Partungko Naginjang',\n",
" 'Agrowisata Hidro Aa'],\n",
" ['Masjid Raya Nur Addin',\n",
" 'Masjid Raya Kisaran Kota',\n",
" 'Ikan Larangan Lubuak Landua',\n",
" 'Sp.Lau Petundal',\n",
" 'Danau Linting',\n",
" 'Pusat Kuliner Kota Sibolga'],\n",
" ['Vihara Budha Taman Iman',\n",
" 'Gunung Pandan River Tourism Area',\n",
" 'Jembatan Poriaha',\n",
" 'Air Terjun Sipagogo',\n",
" 'Monumen Halilintar',\n",
" 'Pt. Pmn Travel Bus',\n",
" 'Air Terjun Pantai Salak'],\n",
" ['Huta Bolon', 'Pulau Pigago', 'Namo Cengkeh'],\n",
" ['Museum Deli Serdang',\n",
" 'Silalahi I',\n",
" 'Pulau Malau',\n",
" 'Masjid Raya Al Osmani',\n",
" 'Mesjid Raya Al-Abror',\n",
" 'Masjid Raya Kisaran Kota',\n",
" 'Twins Travel',\n",
" 'Pakkodian Toba'],\n",
" ['Batu Lobang Sibaganding',\n",
" 'Taman Rekreasi Kong Mah',\n",
" 'Parhallow Viewpoint And Coffee Shop',\n",
" 'Garunggang',\n",
" 'Tourism Kuala Paret',\n",
" 'Air Terjun Nai Sogop',\n",
" 'Lyza Outbount',\n",
" 'Baneara, Partungko Naginjang'],\n",
" ['Taman Sungai Padang',\n",
" 'Ranika Surf',\n",
" 'Dolok Bunga Sirandorung',\n",
" 'Anugerah Soambaton Beach',\n",
" 'Pulau Pigago',\n",
" 'Lau Bingai',\n",
" 'Deleng Bencirus',\n",
" 'Air Terjun Pantai Salak'],\n",
" ['Pinang City',\n",
" 'Danau Teratai',\n",
" 'Stabat',\n",
" 'Masjid Raya Kisaran Kota',\n",
" 'Sumatra Orangutan Tours & Holidays',\n",
" 'Bukit Lawang Travel',\n",
" 'Kualuh Hulu'],\n",
" ['Pool Bus Intra',\n",
" 'Pinang City',\n",
" 'Dunia Outbound Camp',\n",
" 'Pakkodian Toba',\n",
" 'Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Museum Negeri Sumatera Utara',\n",
" 'Tugu Air Mancur Majestik',\n",
" 'Parhonasan (Kebun Nenas) Sidumpe Anturi'],\n",
" ['Kolam Pancing Sapat',\n",
" 'Aman Wisata Citra Int. Pt',\n",
" 'Pusat Informasi Geopark Kaldera Toba Sigulatti',\n",
" 'Taman Alamta Jaya',\n",
" 'Mja Travel',\n",
" 'Wisata Sipinsur',\n",
" 'Pantai Pulau Putri',\n",
" 'Pt. Raya Utama Travel',\n",
" 'Lau Bengkelade Kuta'],\n",
" ['Revolution Heroes Monument', 'Tugu Sitio', 'Taman Benteng Lions Club'],\n",
" ['Museum Huta Bolon Simanindo',\n",
" 'Makam Ompung Parmata Sapihak',\n",
" 'Toba Lake Sibolahotang Beautiful Beach',\n",
" 'Air Terjun Sipagogo',\n",
" 'Bersama Travel',\n",
" 'Saf Travel Indo',\n",
" 'Danau Pagaran Padang',\n",
" 'Air Terjun Linggahara-Rantau Prapat',\n",
" 'Air Soda Kabupaten Karo'],\n",
" ['Bukit Lawang Tour Trekking',\n",
" 'Objek Wisata Luak Gadang, Guguak Rang Pisang',\n",
" 'Masjid Al Osmani',\n",
" 'Sini Suka Natural Bath Sibiru-Biru',\n",
" 'Air Travel Parsariran',\n",
" 'Medan City Tour',\n",
" 'Taman Edukasi Binjai',\n",
" 'The Kaldera'],\n",
" ['Garunggang', 'Dunia Outbound Camp', 'Rumah Wisata Sunggal'],\n",
" ['Lau Teba Langkat',\n",
" 'Air Terjun Bertala',\n",
" 'Na Ix-X',\n",
" 'Pemandian Alam Tirta Sayum Sabah',\n",
" 'Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan',\n",
" 'Monumen Equator',\n",
" 'Indah Sipinggan Beach',\n",
" 'Kuta Sukareme'],\n",
" ['Bukik Posuak Maek', 'Sembilantujuh Tour&Travel', 'Salak Monument Pakkat'],\n",
" ['Merci Waterboom',\n",
" 'Sabah Simelir',\n",
" 'Masjid Agung Sibolga',\n",
" 'Batang Gadis National Park',\n",
" 'Aek Milas',\n",
" 'Pemandian Air Panas Rianiate'],\n",
" ['Pasir Putih Porsea',\n",
" 'Pantai La Terzhia Zhimehuli',\n",
" 'Bukit Suligi',\n",
" 'Bukit Lawang Day Trek',\n",
" 'Kualuh Hulu'],\n",
" ['Armaya Wisata Alam', 'Pt. Hikmah', 'Wisata Hutan Mangrove Perpat'],\n",
" ['Hotel Wisata Indah', 'Pulau Poncan', 'Lau Bengkelade'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Langkat Regency',\n",
" 'Bandar Pulau'],\n",
" ['Wisata Bendunga Sei Palis',\n",
" 'Pantai Tiram Tapakis',\n",
" 'The Kaldera',\n",
" 'The Le Hu Garden',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )',\n",
" 'Wisata Dakwah Okura',\n",
" 'Jln Dusun Lauseridi',\n",
" 'Welterbeminimini'],\n",
" ['Pt, Yy Traveling Tour And Travel',\n",
" 'Lake Toba Viewpoint',\n",
" 'Loket Satu Nusa',\n",
" 'Air Terjun Lembah Sipogas',\n",
" 'Sibio-Bio Advanture Park',\n",
" 'Umbul Ejuk'],\n",
" ['Tugu D.I Panjaitan', 'Monumen Halilintar', 'Taman Selfie'],\n",
" ['Tirtanadi Tower',\n",
" 'Danau Marambe',\n",
" 'Rm Batunadua Indah',\n",
" 'Warnawarni Stabat',\n",
" 'Air Terjun Kemuning',\n",
" 'Masjid Agung Sibolga',\n",
" 'Danau Sipogas'],\n",
" ['Taman Megawati',\n",
" 'Masjid Agung Sumatera Utara',\n",
" 'Lau Bengkelade',\n",
" 'Romance Padi Perbaungan',\n",
" 'Niagara Tanjung Raja',\n",
" 'Rumah Wisata Sunggal',\n",
" 'Masjid Al Osmani'],\n",
" ['Biro Jasa',\n",
" 'Kebun Binatang Simalingkar Medan',\n",
" 'Tugu Pramuka',\n",
" 'Pt Wisata Habibah Berkah',\n",
" 'Tugu Sejarah Perjuangan Asahan',\n",
" 'Sbv',\n",
" 'Pisang Pelangi',\n",
" 'Lake Toba Viewpoint',\n",
" 'Tapian Puti'],\n",
" ['Wisata Makam Papan Tinggi Barus',\n",
" 'Sansan Travel',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™',\n",
" 'Agrowisata Hidro Aa'],\n",
" ['Perumahaan Azalea Asri', 'Wisata Alam Datuk', 'Pasar Buah Berastagi'],\n",
" ['Taman Kebun Bunga èŒ ã¦Â¦Â€¢Ã¥Å“€™',\n",
" 'Bukit Lawang Tour Trekking',\n",
" 'T.Garden',\n",
" 'Pantai Simallo',\n",
" 'Rudang Mayang',\n",
" 'Pakpak Culture Association (Cgc)',\n",
" 'Desa S.Kalangan Ii',\n",
" 'Wisata Alam Pohon Damai Simempar',\n",
" 'Tugu Sitio'],\n",
" ['Museum Huta Bolon Simanindo',\n",
" 'Lau Teba Langkat',\n",
" 'Sri Deli Park',\n",
" 'Gang Bengkok Old Mosque',\n",
" 'Dunia Outbound Camp',\n",
" 'Vania Travel',\n",
" 'Taman Balita Kota Binjai'],\n",
" ['Rumah Makan Irian', 'Hotel Wisata Indah', 'Namu Sira-Sira'],\n",
" ['Sibio-Bio Adventure Park',\n",
" 'Tobasa',\n",
" 'Wisata Alam',\n",
" 'A8 Village',\n",
" 'Uruk Ndaholi',\n",
" 'Warung Info Wisata',\n",
" 'Taman Sungai Padang'],\n",
" ['Sembilantujuh Tour&Travel',\n",
" 'Wisata Pemandian Water Hill',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Vihara Pekong Lima',\n",
" 'Pantai Pasir Putih Parbaba',\n",
" 'Balai Datuk Setia Maharaja Negeri Serdang'],\n",
" ['Bukit Burung', 'Namu Sira-Sira', 'Warnawarni Stabat'],\n",
" ['Lapangan Pasir Tanjung Balai',\n",
" 'Pantai Cermin Theme Park & Resort Hotel',\n",
" 'Pemandian Air Panas Tirto Kencono',\n",
" 'Simanimbo Waterfall',\n",
" 'Taman Mejuah-Juah',\n",
" 'Air Terjun Gorbus'],\n",
" ['Danau Pagaran Padang',\n",
" 'Perwakilan Mandiri',\n",
" 'Vania Travel',\n",
" 'Objek Wisata Budaya Batu Kursi Raja Siallagan',\n",
" 'Bintang Johor Swimming Pool',\n",
" 'Kota Padang Sidempuan',\n",
" 'Pulau Samosir',\n",
" 'Kolam Renang Air Panas Mardinding Tiga Rasa'],\n",
" ['Bukit Lawang Ecotourism & Ecoproject',\n",
" 'Pelangi Nusantara',\n",
" 'Menara Tirtanadi',\n",
" 'Bakarang Simalem',\n",
" 'Puncak Paranginan,Aek Nabirong'],\n",
" ['Pisang Pelangi',\n",
" 'Delta',\n",
" 'Pulau Poncan',\n",
" 'Bukit Lawang Guide',\n",
" 'Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Taga Hambing',\n",
" 'Botanical Samosir',\n",
" 'West Kisaran',\n",
" 'Parks West Coast'],\n",
" ['Taman Wisata Simatahari Indah',\n",
" 'Masjid Al Osmani',\n",
" 'Bukit Lawang Trip',\n",
" 'Frog Rock Tour',\n",
" 'Kolam Pancing Asri',\n",
" 'Air Terjun Nai Sogop',\n",
" 'Rudang Mayang',\n",
" 'Toddler Garden Binjai',\n",
" 'Waterpark Ria'],\n",
" ['Jembatan Tano Ponggol', 'Wisata Alam', 'Thermal Baths U.S.K Hineni'],\n",
" ['Tourism Kuala Paret',\n",
" 'Dokter Travel',\n",
" 'Wisata Air Parsariran',\n",
" 'Pantai Pelawan',\n",
" 'Pulau Beswesen Tanjungbalai',\n",
" 'Bukit Lawang Guide',\n",
" 'Umbul Ejuk',\n",
" 'Bair Falls'],\n",
" ['Anugerah Soambaton Beach', 'Pasir Putih Janggawari', 'Hendreva Tour'],\n",
" ['Alam Wisata Danau Laut Tador',\n",
" 'Nice Trans Kisaran',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™'],\n",
" ['Tangkahan',\n",
" 'Masjid Raya Kisaran Kota',\n",
" 'Tts (Toru Tor Simarsayang) Cafe',\n",
" 'Replika Istana Serdang',\n",
" 'Vihara Tri Ratna',\n",
" 'Dolok Bunga Sirandorung',\n",
" 'Pondok Wisata Lagundi Samosir',\n",
" 'Pulau Samosir'],\n",
" ['Pantai Paris',\n",
" 'Bukit Gibeon (Yapim Taruna)',\n",
" 'Kantor Balai Taman Nasional Batang Gadis',\n",
" 'Tapian Siri-Siri Syariah',\n",
" 'Padang Lawas Regency',\n",
" 'Budaya Resto'],\n",
" ['Taman Bukit Gelanggang',\n",
" 'Jln Dusun Lauseridi',\n",
" 'Bukit Teletubies',\n",
" 'Bukit Lawang Wisata Alam',\n",
" 'Air Terjun Aek Godang',\n",
" 'Millenium Wisata Indah Pt'],\n",
" ['Musala Waterfall', 'Salib Kasih', 'Pantai Pulau Karang', 'Langkat Regency'],\n",
" ['Wisata Indonesia Itu Indah',\n",
" 'Lyza Outbount',\n",
" 'Masjid Agung Sibolga',\n",
" 'Danau Marambe'],\n",
" ['Barusjahe',\n",
" 'Kolam Pancing Sapat',\n",
" 'Air Terjun Sampuran Widuri',\n",
" 'Old City Hall',\n",
" 'Disparbud Dairi'],\n",
" ['Pasar Tomok',\n",
" 'Alaman Bolak Padang Nadimpu',\n",
" 'Air Terjun Betala',\n",
" 'Pemandian Alam Bolang',\n",
" 'Monkey Forest Umar Manik Sibaganding'],\n",
" ['Puncak Bukit Manalise Aek Buro',\n",
" 'Sialang Batu',\n",
" 'Pantai Sikilang',\n",
" 'Ksu Antara Travel',\n",
" 'Pawan Hot Water',\n",
" 'Dokter Travel',\n",
" 'Indah Sipinggan Beach',\n",
" 'Sri Deli Park',\n",
" 'Taman Gajah Mada'],\n",
" ['Abadas Jaya',\n",
" 'Wisata Air Parsariran',\n",
" 'Hotel Pesona Wisata',\n",
" 'Bukit Burung',\n",
" 'Botanical Samosir'],\n",
" ['Tirtanadi Tower',\n",
" 'Taman Benteng Lions Club',\n",
" 'Wisata Pulau Spantiang',\n",
" 'Lubuk Larangan Desa Padang Bulan',\n",
" 'Bukit Gibeon (Yapim Taruna)',\n",
" 'Masjid Al Osmani',\n",
" 'Tinggi Raja',\n",
" 'Sumur Tua',\n",
" 'Tumori Traditional Village'],\n",
" ['Air Terjun Betala',\n",
" 'Pemandian Air Panas Tirto Kencono',\n",
" 'Taman Bukit Gelanggang',\n",
" 'Taman Cadika Pramuka',\n",
" 'Titi Gantung Bridge',\n",
" 'Museum Pusaka Karo - Berastagi',\n",
" 'Panatapan Sileme-Leme'],\n",
" ['Taman Selfie',\n",
" 'Pantai Arta Indah',\n",
" 'Bekas Istana Kesultanan Asahan',\n",
" 'Pantai Kaca',\n",
" 'Aek Saroha',\n",
" 'Tugu Pramuka',\n",
" 'Sibolga Dutch Tunnel'],\n",
" ['Bersama Travel', 'Lake Toba Viewpoint', 'Mesjid Raya Al-Abror'],\n",
" ['Gunung Pandan River Tourism Area',\n",
" 'A8 Village',\n",
" 'Sbv',\n",
" 'Taman Wisata Alam, Pusat Latihan Gajah'],\n",
" ['Agrowisata Hidro Aa',\n",
" 'Na Ix-X',\n",
" 'Museum Deli Serdang',\n",
" 'Permata Asri Stabat',\n",
" 'Pakkodian Toba'],\n",
" ['Pemandian Alam Agape',\n",
" 'Titi Gantung Bridge',\n",
" 'Pemandian Alam Bolang',\n",
" 'Objek Wisata Maggrove Sisarahili Ts',\n",
" 'Bukit Senyum',\n",
" 'Danau Laut Tinggal',\n",
" 'Air Terjun Simonang Monang'],\n",
" ['Gang Bengkok Old Mosque',\n",
" 'Berastagi Local Guide',\n",
" 'The Heritage',\n",
" 'Pantai Pelawan',\n",
" 'Loket Satu Nusa'],\n",
" ['Tourism Kuala Paret',\n",
" 'One Heart Hill',\n",
" 'Patung Dewi Kwan Im',\n",
" 'Pusat Posko \"Teroh-Teroh.',\n",
" 'Taman Danau Wisata Bunga Tujuh',\n",
" 'Tirtanadi Tower',\n",
" 'Salak Monument Pakkat',\n",
" 'Stasiun Binjai'],\n",
" ['Pantai Tiram Tapakis',\n",
" 'Air Terjun Simonang Monang',\n",
" 'Air Terjun Sigura Gura',\n",
" 'Mora Indah',\n",
" 'Replika Istana Serdang',\n",
" 'Air Terjun Lumban Rang',\n",
" 'Air Panas Simolap',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Objek Wisata Togindrawa Gua'],\n",
" ['Masjid Agung Islamic Centre Pasir Pengaraian Rohul',\n",
" 'Air Terjun Ponot',\n",
" 'Air Terjun Bah Salak',\n",
" 'Hotel Wisata Indah',\n",
" 'Air Terjun Kemuning',\n",
" 'Ende Holidays',\n",
" 'Bandar Pulau',\n",
" 'Batang Gadis National Park'],\n",
" ['Indah Sipinggan Beach',\n",
" 'Tor Simago-Mago',\n",
" 'Aek Milas Paringgonan Sibuhuan',\n",
" 'Tangkahan',\n",
" 'Air Terjun Baburai'],\n",
" ['Bukit Gibeon (Yapim Taruna)',\n",
" 'Danau Cipogas Rohul',\n",
" 'Bersama Travel',\n",
" 'Air Terjun Bertala',\n",
" 'Thermal Baths U.S.K Hineni',\n",
" 'Penatapen Doulu',\n",
" 'Parhallow Viewpoint And Coffee Shop',\n",
" 'Bahal Temple I'],\n",
" ['Azizi Mosque',\n",
" 'Bukit Lawang Trip',\n",
" 'Patung Dewi Kwan Im',\n",
" 'Pantai La Terzhia Zhimehuli',\n",
" 'Bendungan Batang Tongar',\n",
" 'Air Terjun Sempugen',\n",
" 'Kolam Renang Pesona Wisata'],\n",
" ['Rumah Wisata Sunggal',\n",
" 'Thermal Baths U.S.K Hineni',\n",
" 'Magic Eye 3d Art Museum',\n",
" 'Bekas Istana Kesultanan Asahan'],\n",
" ['Lau Gendang,Wisata Gua',\n",
" 'Kolam Renang Air Panas Mardinding Tiga Rasa',\n",
" 'Sibio-Bio Advanture Park',\n",
" 'Saf Travel Indo',\n",
" 'Wisata Air Parsariran',\n",
" 'Museum Simalungun',\n",
" 'Vihara Pubbarama Buddhist',\n",
" 'Air Terjun Efrata'],\n",
" ['Alam Wisata Danau Laut Tador',\n",
" 'Azizi Mosque',\n",
" 'Tempat Pengasingan Soekarno',\n",
" 'Welterbeminimini',\n",
" 'Tugu Pramuka',\n",
" 'Delta',\n",
" 'Struggle Monument Berastagi',\n",
" 'Yayasan Perguruan Sisingamangaraja'],\n",
" ['Batak Museum',\n",
" 'Puncak Bukit Galau',\n",
" 'Alun Alun Lubuk Sikpaing',\n",
" 'Bayu Lagoon Resto & Taman Rekreasi',\n",
" 'Puncak Jb',\n",
" 'Puncak Saragodung'],\n",
" ['Bukit Gibeon (Yapim Taruna)',\n",
" 'Dolok Bunga Sirandorung',\n",
" 'Air Terjun Sarasah Kajai',\n",
" 'Garunggang',\n",
" 'Puncak Paranginan,Aek Nabirong',\n",
" 'Tanah Lapang Merdeka Binjai'],\n",
" ['Landak River',\n",
" 'Lae Simbellen',\n",
" 'Lapangan Pasir',\n",
" 'Tanah Lapang Merdeka Binjai'],\n",
" ['Pertunjukan Tari Sigale Gale',\n",
" 'R.M Wisata Indah',\n",
" 'Jembatan Poriaha',\n",
" 'Asahan Regency'],\n",
" ['Pemandian Sidamanik',\n",
" 'Bukit Lawang Tour Trekking',\n",
" 'Pantai Simallo',\n",
" 'Air Terjun Malakkut',\n",
" 'Uruk Ndaholi',\n",
" 'Wisata Alam Aek Markusasak',\n",
" 'Twa Lau Debuk-Debuk',\n",
" 'Perkebunan Londut'],\n",
" ['Vihara Pekong Lima',\n",
" 'Puncak Saragodung',\n",
" 'Pasir Putih Janggawari',\n",
" 'Berastagi',\n",
" 'Batu Gajah',\n",
" 'Pemandian Alam Bendungan Ginbers',\n",
" 'Niagara Tanjung Raja',\n",
" 'Pantai Bukit Malintang Buburan',\n",
" \"Five Star Int'l Travel\"],\n",
" ['Peceren Karo Village',\n",
" 'Desa Adat Ragi Hotang Meat',\n",
" 'Lorong Indah',\n",
" 'Batu Gajah',\n",
" 'Pasir Putih Porsea'],\n",
" ['Sidebuk Debuk Thermal Baths Berastagi',\n",
" 'Dermaga Silalahi',\n",
" 'Tanjung Unta',\n",
" 'Danau Laut Tinggal'],\n",
" ['Halo Angso Duo Pratama Bro. Pt',\n",
" 'Museum Simalungun',\n",
" 'Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bayu Lagoon Resto & Taman Rekreasi',\n",
" 'Berastagi',\n",
" 'Bair Falls',\n",
" 'Air Terjun Malakkut'],\n",
" ['Konservasi Sungai Kukam',\n",
" 'Cafe Goa Kaca',\n",
" 'Pantai Maligi',\n",
" 'Gedung Mabmi',\n",
" 'Rm Batunadua Indah',\n",
" 'Chinatown Medan',\n",
" 'Balai Datuk Setia Maharaja Negeri Serdang',\n",
" 'Tugu Pramuka',\n",
" 'Klenteng Gunung Timur'],\n",
" ['Sopo Partungkoan',\n",
" 'Pt Pelangi Wisata',\n",
" 'Pantai Cermin Theme Park & Resort Hotel',\n",
" 'Air Terjun Nyarai',\n",
" 'Tirtanadi Tower',\n",
" 'Wisata Pulau Spantiang',\n",
" 'Pantai Pasir Putih'],\n",
" ['Lapangan Pasir Tanjung Balai',\n",
" 'Wisata Taman Merci',\n",
" 'Taman Benteng Lions Club',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Wisata Alam Aek Markusasak'],\n",
" ['Kuta Sukareme',\n",
" 'Alun Alun Kota Kisaran',\n",
" 'Wisata Alam Siringo',\n",
" 'Terminal Berastagi'],\n",
" ['Mobil Wisata Medan',\n",
" 'Puncak Saragodung',\n",
" 'Air Terjun Sigarattung ( Sampuran Na Pitu)',\n",
" 'Rudang Mayang',\n",
" 'Winter Holidays',\n",
" 'Kualuh Hulu',\n",
" 'Muaraopu',\n",
" 'Tanjung Apek Beach',\n",
" 'Sialang Batu'],\n",
" ['Wisata Alam \"Panatapan Parupuk Julu\"',\n",
" 'Mandailing Natal Regency',\n",
" 'Pt. Hikmah',\n",
" 'Wisata Madu Aek Nauli',\n",
" 'Danau Teratai',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Pantai Maligi',\n",
" 'Efrata Waterfall']]"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"criteria"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Langkat Regency',\n",
" 'Bandar Pulau']"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pr = evalutionary.parentselect(criteria)\n",
"pr"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Sembilantujuh Tour&Travel', 'Warung Info Wisata',\n",
" 'Pusat Posko \"Teroh-Teroh.', 'Sampuren Tutuen Sige'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tugu Jeruk Berastagi'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Merci', 'Connectingjungle'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Masjid Al Osmani', 'Bukit Senyum', 'Mobil Wisata Medan'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Siba Island Resort', 'Mmtc Walking Street', 'Amarjun Wisata',\n",
" 'Laterzhya Zimhuli'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Vihara Pekong Lima', 'Padang Lawas Regency',\n",
" 'Pemandian Air Panas Goa Ergendang'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Beranda Madina', 'Revolution Heroes Monument',\n",
" 'Ekowisata Mangrove'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Masjid Agung Islamic Centre Pasir Pengaraian Rohul',\n",
" 'Sansan Travel'], dtype='<U50'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bukit Lawang Explore', 'Tugu Becak Bsa Siantar',\n",
" 'Armaya Wisata Alam'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Agrowisata Hidro Aa', 'Saf Travel Indo'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pinang City', 'Taman Rekreasi Kong Mah', 'Danau Tao Batang Onang'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bakarang Simalem'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Sumatra Jungle Trek', 'Tirtanadi Tower'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Berakit-Rakit Ke Hulu', 'Air Terjun Ponot', 'Mora Indah',\n",
" 'Objek Wisata Luak Gadang, Guguak Rang Pisang'], dtype='<U44'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Menara Pandang Simanindo', 'Vania Travel'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pt. Hikmah', 'Lapangan Pasir', 'Pantai Barat Natal'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Peceren Karo Village', 'Dokter Travel', 'Pantai Barat'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Bendunga Sei Palis', 'Pt. Npm Perwakilan On Bus',\n",
" 'Wisata Madu Aek Nauli'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Kenangan', 'Berakit-Rakit Ke Hulu',\n",
" 'Museum Pusaka Karo - Berastagi'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Taga Hambing'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Kebun Bunga èŒ ã¦Â¦Â€¢Ã¥Å“€™', 'Museum Karo Lingga',\n",
" 'Air Terjun Efrata'], dtype='<U39'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Amarjun Wisata'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tugu Kol'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Travel Panyabungan Padang', 'Benteng Jepang', 'Wisata Merci'],\n",
" dtype='<U63'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Arta Indah', 'Air Terjun Sigura-Gura', 'R.M Wisata Indah',\n",
" 'Masjid Raya Stabat'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Masjid Mustaqim, Sikopi-Kopi, Pulo Dogom, Kualuh Hulu, Labuhanbatu Utara, Sumatera Utara.',\n",
" 'Jembatan Poriaha', 'Lokasi Wisata Pemandian Air Panas Sipoholon',\n",
" 'Berastagi'], dtype='<U89'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tor Simago-Mago'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Alam Datuk', 'Konservasi Sungai Kukam'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Saf Travel Indo', 'Masjid Raya'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Explore Bahorok Adventure Trip',\n",
" 'Go Adventure Tour & Travel Indonesia', 'Sampuren Tutuen Sige'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Bunga', 'Salib Kasih', 'Pantai Teluk Kerang'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Magic Eye 3d Art Museum'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Betala', 'Wisata Merci'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Museum Lubuk Pakam', 'Medan City Tour'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Travel Panyabungan Padang', 'Armaya Wisata Alam'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Buih', 'Pasir Putih Porsea',\n",
" 'Museum Pusaka Karo - Berastagi'], dtype='<U53'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Sialang Batu', 'Menara Pandang Simanindo', 'Air Terjun Kemuning',\n",
" 'Museum Kota Tebing Tinggi'], dtype='<U40'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Danau Marambe', 'Kota Padang Sidempuan',\n",
" 'Baneara, Partungko Naginjang', 'Agrowisata Hidro Aa'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Sp.Lau Petundal', 'Danau Linting', 'Pusat Kuliner Kota Sibolga'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Monumen Halilintar', 'Pt. Pmn Travel Bus',\n",
" 'Air Terjun Pantai Salak'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Namo Cengkeh'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Mesjid Raya Al-Abror', 'Masjid Raya Kisaran Kota', 'Twins Travel',\n",
" 'Pakkodian Toba'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tourism Kuala Paret', 'Air Terjun Nai Sogop', 'Lyza Outbount',\n",
" 'Baneara, Partungko Naginjang'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pulau Pigago', 'Lau Bingai', 'Deleng Bencirus',\n",
" 'Air Terjun Pantai Salak'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Sumatra Orangutan Tours & Holidays', 'Bukit Lawang Travel',\n",
" 'Kualuh Hulu'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Museum Negeri Sumatera Utara', 'Tugu Air Mancur Majestik',\n",
" 'Parhonasan (Kebun Nenas) Sidumpe Anturi'], dtype='<U39'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Sipinsur', 'Pantai Pulau Putri', 'Pt. Raya Utama Travel',\n",
" 'Lau Bengkelade Kuta'], dtype='<U46'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Benteng Lions Club'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Saf Travel Indo', 'Danau Pagaran Padang',\n",
" 'Air Terjun Linggahara-Rantau Prapat', 'Air Soda Kabupaten Karo'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Travel Parsariran', 'Medan City Tour', 'Taman Edukasi Binjai',\n",
" 'The Kaldera'], dtype='<U44'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Rumah Wisata Sunggal'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan',\n",
" 'Monumen Equator', 'Indah Sipinggan Beach', 'Kuta Sukareme'],\n",
" dtype='<U63'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Salak Monument Pakkat'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Batang Gadis National Park', 'Aek Milas',\n",
" 'Pemandian Air Panas Rianiate'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bukit Lawang Day Trek', 'Kualuh Hulu'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Hutan Mangrove Perpat'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Lau Bengkelade'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Langkat Regency', 'Bandar Pulau'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )', 'Wisata Dakwah Okura',\n",
" 'Jln Dusun Lauseridi', 'Welterbeminimini'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Lembah Sipogas', 'Sibio-Bio Advanture Park',\n",
" 'Umbul Ejuk'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Selfie'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Kemuning', 'Masjid Agung Sibolga', 'Danau Sipogas'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Niagara Tanjung Raja', 'Rumah Wisata Sunggal', 'Masjid Al Osmani'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Sbv',\n",
" 'Pisang Pelangi', 'Lake Toba Viewpoint', 'Tapian Puti'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™', 'Agrowisata Hidro Aa'],\n",
" dtype='<U41'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pasar Buah Berastagi'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pakpak Culture Association (Cgc)', 'Desa S.Kalangan Ii',\n",
" 'Wisata Alam Pohon Damai Simempar', 'Tugu Sitio'], dtype='<U39'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Dunia Outbound Camp', 'Vania Travel', 'Taman Balita Kota Binjai'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Namu Sira-Sira'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Uruk Ndaholi', 'Warung Info Wisata', 'Taman Sungai Padang'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Vihara Pekong Lima', 'Pantai Pasir Putih Parbaba',\n",
" 'Balai Datuk Setia Maharaja Negeri Serdang'], dtype='<U41'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Warnawarni Stabat'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Simanimbo Waterfall', 'Taman Mejuah-Juah', 'Air Terjun Gorbus'],\n",
" dtype='<U39'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bintang Johor Swimming Pool', 'Kota Padang Sidempuan',\n",
" 'Pulau Samosir', 'Kolam Renang Air Panas Mardinding Tiga Rasa'],\n",
" dtype='<U45'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bakarang Simalem', 'Puncak Paranginan,Aek Nabirong'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Taga Hambing', 'Botanical Samosir', 'West Kisaran',\n",
" 'Parks West Coast'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Nai Sogop', 'Rudang Mayang', 'Toddler Garden Binjai',\n",
" 'Waterpark Ria'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Thermal Baths U.S.K Hineni'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pulau Beswesen Tanjungbalai', 'Bukit Lawang Guide', 'Umbul Ejuk',\n",
" 'Bair Falls'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Hendreva Tour'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™'], dtype='<U41'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Vihara Tri Ratna', 'Dolok Bunga Sirandorung',\n",
" 'Pondok Wisata Lagundi Samosir', 'Pulau Samosir'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tapian Siri-Siri Syariah', 'Padang Lawas Regency', 'Budaya Resto'],\n",
" dtype='<U40'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bukit Lawang Wisata Alam', 'Air Terjun Aek Godang',\n",
" 'Millenium Wisata Indah Pt'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Pulau Karang', 'Langkat Regency'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Masjid Agung Sibolga', 'Danau Marambe'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Old City Hall', 'Disparbud Dairi'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pemandian Alam Bolang', 'Monkey Forest Umar Manik Sibaganding'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Dokter Travel', 'Indah Sipinggan Beach', 'Sri Deli Park',\n",
" 'Taman Gajah Mada'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bukit Burung', 'Botanical Samosir'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Masjid Al Osmani', 'Tinggi Raja', 'Sumur Tua',\n",
" 'Tumori Traditional Village'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Titi Gantung Bridge', 'Museum Pusaka Karo - Berastagi',\n",
" 'Panatapan Sileme-Leme'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Aek Saroha', 'Tugu Pramuka', 'Sibolga Dutch Tunnel'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Mesjid Raya Al-Abror'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Sbv',\n",
" 'Taman Wisata Alam, Pusat Latihan Gajah'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Permata Asri Stabat', 'Pakkodian Toba'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bukit Senyum', 'Danau Laut Tinggal', 'Air Terjun Simonang Monang'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Pelawan', 'Loket Satu Nusa'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Taman Danau Wisata Bunga Tujuh', 'Tirtanadi Tower',\n",
" 'Salak Monument Pakkat', 'Stasiun Binjai'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Lumban Rang', 'Air Panas Simolap',\n",
" 'Pantai Pasir Putih Parparean', 'Objek Wisata Togindrawa Gua'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Air Terjun Kemuning', 'Ende Holidays', 'Bandar Pulau',\n",
" 'Batang Gadis National Park'], dtype='<U50'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tangkahan', 'Air Terjun Baburai'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Thermal Baths U.S.K Hineni', 'Penatapen Doulu',\n",
" 'Parhallow Viewpoint And Coffee Shop', 'Bahal Temple I'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bendungan Batang Tongar', 'Air Terjun Sempugen',\n",
" 'Kolam Renang Pesona Wisata'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Magic Eye 3d Art Museum', 'Bekas Istana Kesultanan Asahan'],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Air Parsariran', 'Museum Simalungun',\n",
" 'Vihara Pubbarama Buddhist', 'Air Terjun Efrata'], dtype='<U43'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tugu Pramuka', 'Delta', 'Struggle Monument Berastagi',\n",
" 'Yayasan Perguruan Sisingamangaraja'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Bayu Lagoon Resto & Taman Rekreasi', 'Puncak Jb',\n",
" 'Puncak Saragodung'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Garunggang', 'Puncak Paranginan,Aek Nabirong',\n",
" 'Tanah Lapang Merdeka Binjai'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Lapangan Pasir', 'Tanah Lapang Merdeka Binjai'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Jembatan Poriaha', 'Asahan Regency'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Uruk Ndaholi', 'Wisata Alam Aek Markusasak',\n",
" 'Twa Lau Debuk-Debuk', 'Perkebunan Londut'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pemandian Alam Bendungan Ginbers', 'Niagara Tanjung Raja',\n",
" 'Pantai Bukit Malintang Buburan', \"Five Star Int'l Travel\"],\n",
" dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Batu Gajah', 'Pasir Putih Porsea'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tanjung Unta', 'Danau Laut Tinggal'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Berastagi', 'Bair Falls', 'Air Terjun Malakkut'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Chinatown Medan', 'Balai Datuk Setia Maharaja Negeri Serdang',\n",
" 'Tugu Pramuka', 'Klenteng Gunung Timur'], dtype='<U41'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Tirtanadi Tower', 'Wisata Pulau Spantiang', 'Pantai Pasir Putih'],\n",
" dtype='<U39'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Pantai Pasir Putih Parparean', 'Penatapan Pamah Simelir',\n",
" 'Wisata Alam Aek Markusasak'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Wisata Alam Siringo', 'Terminal Berastagi'], dtype='<U38'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Kualuh Hulu', 'Muaraopu', 'Tanjung Apek Beach', 'Sialang Batu'],\n",
" dtype='<U42'),\n",
" array(['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque',\n",
" 'Danau Teratai', 'Berakit-Rakit Ke Hulu', 'Pantai Maligi',\n",
" 'Efrata Waterfall'], dtype='<U38')]"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"cs = evalutionary.crossover(pr, criteria)\n",
"cs "
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pusat Posko \"Teroh-Teroh.',\n",
" 'Sembilantujuh Tour&Travel',\n",
" 'Warung Info Wisata',\n",
" 'Azizi Mosque',\n",
" 'Sampuren Tutuen Sige'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Tugu Jeruk Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Wisata Merci',\n",
" 'Azizi Mosque',\n",
" 'Connectingjungle'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bukit Senyum',\n",
" 'Masjid Al Osmani',\n",
" 'Azizi Mosque',\n",
" 'Mobil Wisata Medan'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Amarjun Wisata',\n",
" 'Siba Island Resort',\n",
" 'Mmtc Walking Street',\n",
" 'Azizi Mosque',\n",
" 'Laterzhya Zimhuli'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Padang Lawas Regency',\n",
" 'Vihara Pekong Lima',\n",
" 'Azizi Mosque',\n",
" 'Pemandian Air Panas Goa Ergendang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Revolution Heroes Monument',\n",
" 'Beranda Madina',\n",
" 'Azizi Mosque',\n",
" 'Ekowisata Mangrove'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Masjid Agung Islamic Centre Pasir Pengaraian Rohul',\n",
" 'Azizi Mosque',\n",
" 'Sansan Travel'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tugu Becak Bsa Siantar',\n",
" 'Bukit Lawang Explore',\n",
" 'Azizi Mosque',\n",
" 'Armaya Wisata Alam'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Agrowisata Hidro Aa',\n",
" 'Azizi Mosque',\n",
" 'Saf Travel Indo'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Taman Rekreasi Kong Mah',\n",
" 'Pinang City',\n",
" 'Azizi Mosque',\n",
" 'Danau Tao Batang Onang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Bakarang Simalem'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Sumatra Jungle Trek',\n",
" 'Azizi Mosque',\n",
" 'Tirtanadi Tower'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Mora Indah',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Air Terjun Ponot',\n",
" 'Azizi Mosque',\n",
" 'Objek Wisata Luak Gadang, Guguak Rang Pisang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Menara Pandang Simanindo',\n",
" 'Azizi Mosque',\n",
" 'Vania Travel'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Lapangan Pasir',\n",
" 'Pt. Hikmah',\n",
" 'Azizi Mosque',\n",
" 'Pantai Barat Natal'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Dokter Travel',\n",
" 'Peceren Karo Village',\n",
" 'Azizi Mosque',\n",
" 'Pantai Barat'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pt. Npm Perwakilan On Bus',\n",
" 'Wisata Bendunga Sei Palis',\n",
" 'Azizi Mosque',\n",
" 'Wisata Madu Aek Nauli'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Pantai Kenangan',\n",
" 'Azizi Mosque',\n",
" 'Museum Pusaka Karo - Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Taga Hambing'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Museum Karo Lingga',\n",
" 'Taman Kebun Bunga èŒ ã¦Â¦Â€¢Ã¥Å“€™',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Efrata'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Amarjun Wisata'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Tugu Kol'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Benteng Jepang',\n",
" 'Travel Panyabungan Padang',\n",
" 'Azizi Mosque',\n",
" 'Wisata Merci'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'R.M Wisata Indah',\n",
" 'Pantai Arta Indah',\n",
" 'Air Terjun Sigura-Gura',\n",
" 'Azizi Mosque',\n",
" 'Masjid Raya Stabat'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Lokasi Wisata Pemandian Air Panas Sipoholon',\n",
" 'Masjid Mustaqim, Sikopi-Kopi, Pulo Dogom, Kualuh Hulu, Labuhanbatu Utara, Sumatera Utara.',\n",
" 'Jembatan Poriaha',\n",
" 'Azizi Mosque',\n",
" 'Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Tor Simago-Mago'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Wisata Alam Datuk',\n",
" 'Azizi Mosque',\n",
" 'Konservasi Sungai Kukam'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Saf Travel Indo',\n",
" 'Azizi Mosque',\n",
" 'Masjid Raya'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Go Adventure Tour & Travel Indonesia',\n",
" 'Explore Bahorok Adventure Trip',\n",
" 'Azizi Mosque',\n",
" 'Sampuren Tutuen Sige'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Salib Kasih',\n",
" 'Taman Bunga',\n",
" 'Azizi Mosque',\n",
" 'Pantai Teluk Kerang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Magic Eye 3d Art Museum'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Betala',\n",
" 'Azizi Mosque',\n",
" 'Wisata Merci'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Museum Lubuk Pakam',\n",
" 'Azizi Mosque',\n",
" 'Medan City Tour'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Travel Panyabungan Padang',\n",
" 'Azizi Mosque',\n",
" 'Armaya Wisata Alam'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pasir Putih Porsea',\n",
" 'Pantai Buih',\n",
" 'Azizi Mosque',\n",
" 'Museum Pusaka Karo - Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Kemuning',\n",
" 'Sialang Batu',\n",
" 'Menara Pandang Simanindo',\n",
" 'Azizi Mosque',\n",
" 'Museum Kota Tebing Tinggi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Baneara, Partungko Naginjang',\n",
" 'Danau Marambe',\n",
" 'Kota Padang Sidempuan',\n",
" 'Azizi Mosque',\n",
" 'Agrowisata Hidro Aa'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Danau Linting',\n",
" 'Sp.Lau Petundal',\n",
" 'Azizi Mosque',\n",
" 'Pusat Kuliner Kota Sibolga'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pt. Pmn Travel Bus',\n",
" 'Monumen Halilintar',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Pantai Salak'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Namo Cengkeh'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Twins Travel',\n",
" 'Mesjid Raya Al-Abror',\n",
" 'Masjid Raya Kisaran Kota',\n",
" 'Azizi Mosque',\n",
" 'Pakkodian Toba'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Lyza Outbount',\n",
" 'Tourism Kuala Paret',\n",
" 'Air Terjun Nai Sogop',\n",
" 'Azizi Mosque',\n",
" 'Baneara, Partungko Naginjang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Deleng Bencirus',\n",
" 'Pulau Pigago',\n",
" 'Lau Bingai',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Pantai Salak'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bukit Lawang Travel',\n",
" 'Sumatra Orangutan Tours & Holidays',\n",
" 'Azizi Mosque',\n",
" 'Kualuh Hulu'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tugu Air Mancur Majestik',\n",
" 'Lapangan Tengku Amir Hamzah Stabat',\n",
" 'Museum Negeri Sumatera Utara',\n",
" 'Azizi Mosque',\n",
" 'Parhonasan (Kebun Nenas) Sidumpe Anturi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pt. Raya Utama Travel',\n",
" 'Wisata Sipinsur',\n",
" 'Pantai Pulau Putri',\n",
" 'Azizi Mosque',\n",
" 'Lau Bengkelade Kuta'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Taman Benteng Lions Club'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Linggahara-Rantau Prapat',\n",
" 'Saf Travel Indo',\n",
" 'Danau Pagaran Padang',\n",
" 'Azizi Mosque',\n",
" 'Air Soda Kabupaten Karo'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Taman Edukasi Binjai',\n",
" 'Air Travel Parsariran',\n",
" 'Medan City Tour',\n",
" 'Azizi Mosque',\n",
" 'The Kaldera'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Rumah Wisata Sunggal'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Indah Sipinggan Beach',\n",
" 'Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan',\n",
" 'Monumen Equator',\n",
" 'Azizi Mosque',\n",
" 'Kuta Sukareme'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Salak Monument Pakkat'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Aek Milas',\n",
" 'Batang Gadis National Park',\n",
" 'Azizi Mosque',\n",
" 'Pemandian Air Panas Rianiate'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bukit Lawang Day Trek',\n",
" 'Azizi Mosque',\n",
" 'Kualuh Hulu'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Wisata Hutan Mangrove Perpat'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Lau Bengkelade'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Langkat Regency',\n",
" 'Azizi Mosque',\n",
" 'Bandar Pulau'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Jln Dusun Lauseridi',\n",
" 'Pemandian Air Panas - Batu Bara ( 50 )',\n",
" 'Wisata Dakwah Okura',\n",
" 'Azizi Mosque',\n",
" 'Welterbeminimini'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Sibio-Bio Advanture Park',\n",
" 'Air Terjun Lembah Sipogas',\n",
" 'Azizi Mosque',\n",
" 'Umbul Ejuk'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Taman Selfie'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Masjid Agung Sibolga',\n",
" 'Air Terjun Kemuning',\n",
" 'Azizi Mosque',\n",
" 'Danau Sipogas'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Rumah Wisata Sunggal',\n",
" 'Niagara Tanjung Raja',\n",
" 'Azizi Mosque',\n",
" 'Masjid Al Osmani'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Lake Toba Viewpoint',\n",
" 'Sbv',\n",
" 'Pisang Pelangi',\n",
" 'Azizi Mosque',\n",
" 'Tapian Puti'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™',\n",
" 'Azizi Mosque',\n",
" 'Agrowisata Hidro Aa'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Pasar Buah Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Wisata Alam Pohon Damai Simempar',\n",
" 'Pakpak Culture Association (Cgc)',\n",
" 'Desa S.Kalangan Ii',\n",
" 'Azizi Mosque',\n",
" 'Tugu Sitio'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Vania Travel',\n",
" 'Dunia Outbound Camp',\n",
" 'Azizi Mosque',\n",
" 'Taman Balita Kota Binjai'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Namu Sira-Sira'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Warung Info Wisata',\n",
" 'Uruk Ndaholi',\n",
" 'Azizi Mosque',\n",
" 'Taman Sungai Padang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Pasir Putih Parbaba',\n",
" 'Vihara Pekong Lima',\n",
" 'Azizi Mosque',\n",
" 'Balai Datuk Setia Maharaja Negeri Serdang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Warnawarni Stabat'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Taman Mejuah-Juah',\n",
" 'Simanimbo Waterfall',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Gorbus'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pulau Samosir',\n",
" 'Bintang Johor Swimming Pool',\n",
" 'Kota Padang Sidempuan',\n",
" 'Azizi Mosque',\n",
" 'Kolam Renang Air Panas Mardinding Tiga Rasa'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bakarang Simalem',\n",
" 'Azizi Mosque',\n",
" 'Puncak Paranginan,Aek Nabirong'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'West Kisaran',\n",
" 'Air Terjun Taga Hambing',\n",
" 'Botanical Samosir',\n",
" 'Azizi Mosque',\n",
" 'Parks West Coast'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Toddler Garden Binjai',\n",
" 'Air Terjun Nai Sogop',\n",
" 'Rudang Mayang',\n",
" 'Azizi Mosque',\n",
" 'Waterpark Ria'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Thermal Baths U.S.K Hineni'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Umbul Ejuk',\n",
" 'Pulau Beswesen Tanjungbalai',\n",
" 'Bukit Lawang Guide',\n",
" 'Azizi Mosque',\n",
" 'Bair Falls'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah', 'Azizi Mosque', 'Hendreva Tour'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Taman Kebun Bunga èŒ  榀¢ 圀™'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pondok Wisata Lagundi Samosir',\n",
" 'Vihara Tri Ratna',\n",
" 'Dolok Bunga Sirandorung',\n",
" 'Azizi Mosque',\n",
" 'Pulau Samosir'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Padang Lawas Regency',\n",
" 'Tapian Siri-Siri Syariah',\n",
" 'Azizi Mosque',\n",
" 'Budaya Resto'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Aek Godang',\n",
" 'Bukit Lawang Wisata Alam',\n",
" 'Azizi Mosque',\n",
" 'Millenium Wisata Indah Pt'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Pulau Karang',\n",
" 'Azizi Mosque',\n",
" 'Langkat Regency'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Masjid Agung Sibolga',\n",
" 'Azizi Mosque',\n",
" 'Danau Marambe'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Old City Hall',\n",
" 'Azizi Mosque',\n",
" 'Disparbud Dairi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pemandian Alam Bolang',\n",
" 'Azizi Mosque',\n",
" 'Monkey Forest Umar Manik Sibaganding'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Sri Deli Park',\n",
" 'Dokter Travel',\n",
" 'Indah Sipinggan Beach',\n",
" 'Azizi Mosque',\n",
" 'Taman Gajah Mada'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bukit Burung',\n",
" 'Azizi Mosque',\n",
" 'Botanical Samosir'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Sumur Tua',\n",
" 'Masjid Al Osmani',\n",
" 'Tinggi Raja',\n",
" 'Azizi Mosque',\n",
" 'Tumori Traditional Village'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Museum Pusaka Karo - Berastagi',\n",
" 'Titi Gantung Bridge',\n",
" 'Azizi Mosque',\n",
" 'Panatapan Sileme-Leme'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tugu Pramuka',\n",
" 'Aek Saroha',\n",
" 'Azizi Mosque',\n",
" 'Sibolga Dutch Tunnel'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Azizi Mosque',\n",
" 'Mesjid Raya Al-Abror'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Sbv',\n",
" 'Azizi Mosque',\n",
" 'Taman Wisata Alam, Pusat Latihan Gajah'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Permata Asri Stabat',\n",
" 'Azizi Mosque',\n",
" 'Pakkodian Toba'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Danau Laut Tinggal',\n",
" 'Bukit Senyum',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Simonang Monang'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Pelawan',\n",
" 'Azizi Mosque',\n",
" 'Loket Satu Nusa'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Salak Monument Pakkat',\n",
" 'Taman Danau Wisata Bunga Tujuh',\n",
" 'Tirtanadi Tower',\n",
" 'Azizi Mosque',\n",
" 'Stasiun Binjai'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Air Terjun Lumban Rang',\n",
" 'Air Panas Simolap',\n",
" 'Azizi Mosque',\n",
" 'Objek Wisata Togindrawa Gua'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bandar Pulau',\n",
" 'Air Terjun Kemuning',\n",
" 'Ende Holidays',\n",
" 'Azizi Mosque',\n",
" 'Batang Gadis National Park'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tangkahan',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Baburai'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Parhallow Viewpoint And Coffee Shop',\n",
" 'Thermal Baths U.S.K Hineni',\n",
" 'Penatapen Doulu',\n",
" 'Azizi Mosque',\n",
" 'Bahal Temple I'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Air Terjun Sempugen',\n",
" 'Bendungan Batang Tongar',\n",
" 'Azizi Mosque',\n",
" 'Kolam Renang Pesona Wisata'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Magic Eye 3d Art Museum',\n",
" 'Azizi Mosque',\n",
" 'Bekas Istana Kesultanan Asahan'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Vihara Pubbarama Buddhist',\n",
" 'Wisata Air Parsariran',\n",
" 'Museum Simalungun',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Efrata'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Struggle Monument Berastagi',\n",
" 'Tugu Pramuka',\n",
" 'Delta',\n",
" 'Azizi Mosque',\n",
" 'Yayasan Perguruan Sisingamangaraja'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Puncak Jb',\n",
" 'Bayu Lagoon Resto & Taman Rekreasi',\n",
" 'Azizi Mosque',\n",
" 'Puncak Saragodung'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Puncak Paranginan,Aek Nabirong',\n",
" 'Garunggang',\n",
" 'Azizi Mosque',\n",
" 'Tanah Lapang Merdeka Binjai'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Lapangan Pasir',\n",
" 'Azizi Mosque',\n",
" 'Tanah Lapang Merdeka Binjai'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Jembatan Poriaha',\n",
" 'Azizi Mosque',\n",
" 'Asahan Regency'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Twa Lau Debuk-Debuk',\n",
" 'Uruk Ndaholi',\n",
" 'Wisata Alam Aek Markusasak',\n",
" 'Azizi Mosque',\n",
" 'Perkebunan Londut'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Bukit Malintang Buburan',\n",
" 'Pemandian Alam Bendungan Ginbers',\n",
" 'Niagara Tanjung Raja',\n",
" 'Azizi Mosque',\n",
" \"Five Star Int'l Travel\"],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Batu Gajah',\n",
" 'Azizi Mosque',\n",
" 'Pasir Putih Porsea'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tanjung Unta',\n",
" 'Azizi Mosque',\n",
" 'Danau Laut Tinggal'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Bair Falls',\n",
" 'Berastagi',\n",
" 'Azizi Mosque',\n",
" 'Air Terjun Malakkut'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tugu Pramuka',\n",
" 'Chinatown Medan',\n",
" 'Balai Datuk Setia Maharaja Negeri Serdang',\n",
" 'Azizi Mosque',\n",
" 'Klenteng Gunung Timur'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Wisata Pulau Spantiang',\n",
" 'Tirtanadi Tower',\n",
" 'Azizi Mosque',\n",
" 'Pantai Pasir Putih'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Penatapan Pamah Simelir',\n",
" 'Pantai Pasir Putih Parparean',\n",
" 'Azizi Mosque',\n",
" 'Wisata Alam Aek Markusasak'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Wisata Alam Siringo',\n",
" 'Azizi Mosque',\n",
" 'Terminal Berastagi'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Tanjung Apek Beach',\n",
" 'Kualuh Hulu',\n",
" 'Muaraopu',\n",
" 'Azizi Mosque',\n",
" 'Sialang Batu'],\n",
" ['Taman Wisata Alam, Pusat Latihan Gajah',\n",
" 'Pantai Maligi',\n",
" 'Danau Teratai',\n",
" 'Berakit-Rakit Ke Hulu',\n",
" 'Azizi Mosque',\n",
" 'Efrata Waterfall']]"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"hsl = evalutionary.mutatuion(cs)\n",
"tk = []\n",
"for i in range(len(hsl)):\n",
" bl = []\n",
" bl *= 0\n",
" for x in (hsl[i]):\n",
" bl.append(x)\n",
" tk.append(bl)\n",
" \n",
"tk"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Multi objective optimization by MOORA"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Tempat Wisata,Rating,Latitude, Longitude
Ksu Antara Travel,4.6,2.986,99.6204
A8 Village,4,2.0137,99.0037
Air Terjun Sigarattung ( Sampuran Na Pitu),4.5,2.4042,99.0474
"Air Terjun Taman Eden 100, Tobasa",4.4,2.6951,98.6897
Abadas Jaya,4.3,3.7704,98.6321
Aek Kanopan,4.8,2.5633,99.5229
Aek Malapari,5,2.268,99.7627
Aek Milas,3.9,1.5227,99.2204
Aek Milas Paringgonan Sibuhuan,4,2.0399,99.8223
Aek Sipaulak Hosa Loja,4.5,2.8446,98.5291
Aek Saroha,4.3,2.9685,99.8078
Agen Bus Karina,3.3,2.6358,99.4709
Agrowisata Hidro Aa,5,3.5765,98.6866
Air Panas Simolap,3.5,3.2708,98.3814
Air Soda Kabupaten Karo,4.4,3.1987,98.3804
Air Terjun Aek Matua,4.1,1.0835,100.2524
Air Terjun Aek Godang,4.3,2.4425,99.1608
Air Terjun Aek Nabontar,4,2.6978,98.69
Air Terjun Binanga Bolon,4.3,2.6723,98.6986
Air Terjun Bah Salak,3.6,3.456624,98.562737
Air Terjun Betala,4.2,3.2592,98.5135
Air Terjun Cirocai Sungai Pandahan,5,0.1743,100.1392
Air Terjun Efrata,4.5,2.5937,99.0372
Air Terjun Gorbus,4.3,2.0203,98.7825
Air Terjun Kemuning,4.2,0.8687,100.1023
Air Terjun Lembah Sipogas,4,0.1888,100.0832
Air Terjun Lenggo Geni,5,0.114,99.9685
Air Terjun Linggahara-Rantau Prapat,3.6,1.3722,99.273
Air Terjun Lumban Rang,4.3,2.6625,98.9342
Air Terjun Malakkut,4.3,0.7961,99.5761
Air Terjun Nai Sogop,4.3,2.3203,98.8265
Air Terjun Nyarai,4.6,1.1187,99.8125
Air Terjun Pantai Salak,3.9,3.3601,98.2282
Air Terjun Pelangi Indah,4.2,2.8563,98.9079
Air Terjun Pongkar,4.8,3.727,98.663
Air Terjun Ponot,4.2,2.7136,99.1483
Air Terjun Sarasah Kajai,3.2,1.3497,99.4152
Air Terjun Saringgana,4.2,3.6097,98.4978
Air Terjun Sibabo,2.7,2.3057,98.8126
Air Terjun Sigura Gura,4.3,2.5612,99.3442
Air Terjun Sigura-Gura,4.3,3.3213,99.1641
Air Terjun Simonang Monang,4.7,2.8133,98.7813
Air Terjun Simpang Kanan,1,0.2759,99.5514
Air Terjun Sipagogo,4.1,0.4126,99.5874
Air Terjun Sipitu Tikka,4.8,2.7486,98.751
Air Terjun Sitiotio,3.8,2.3486,98.4261
Air Terjun Taga Hambing,4.4,2.9577,99.6354
Air Terjun Tarunggang,3.5,3.6307,98.9345
Air Travel Parsariran,4.2,1.0825,99.7163
Alam Wisata Danau Laut Tador,3.4,3.2058,99.0633
Alaman Bolak Padang Nadimpu,4,1.1,99.6126
Alun Alun Kota Kisaran,4.1,3.6393,98.6878
Alun Alun Lubuk Sikpaing,4.4,0.821,99.0136
Aman Wisata Citra Int. Pt,5,3.5843,98.7025
Amarjun Wisata,4,3.5862,98.6964
Ambar Onan Runggu,4.2,2.0298,98.9794
Anugerah Soambaton Beach,5,2.3475,99.0407
Armaya Wisata Alam,3.9,3.5642,98.6485
Asahan Regency,4.4,2.5561,99.4571
Auliya Tour & Travel,4.7,2.8714,99.5686
Awaliyah Tour And Travel,5,0.8173,100.315
Azizi Mosque,4.7,3.638,98.7012
Bakarang Simalem,4.1,3.1185,98.4642
Benteng Jepang,2.7,1.7407,98.7742
Bukit Gibeon (Yapim Taruna),4.1,3.6037,98.4807
Bukit Lawang,4.2,3.9286,98.5446
Bukit Travel Gibeon,4.4,2.5902,98.6291
Bagan Percut,3.9,2.8133,98.7813
Bahal Temple I,4.3,0.5504,100.2832
Bair Falls,4.4,0.5669,100.4071
Balai Datuk Setia Maharaja Negeri Serdang,2.7,1.2827,103.8451
Bandar Pulau,3.9,2.7181,99.1393
"Baneara, Partungko Naginjang",5,2.347,99.0295
Barusjahe,4.5,3.1218,98.6821
"Bat Cave, Bukit Lawang",4.4,3.3907,98.4112
Batak Museum,4.2,2.6095,98.8434
Batang Bahal,4.2,1.3934,99.2963
Batang Gadis National Park,4,0.5564,99.1125
Batu Gantung,4.4,2.6928,98.9271
Batu Kursi Raja Siallagan ( Stone Chair Of King Siallagan ),4.5,2.7208,98.9394
Batu Lobang Sibaganding,4.6,2.679,98.8364
Batu Gajah,4.3,1.5615,99.2892
Batu Marhosa,4.4,1.9744,98.3561
Bayu Lagoon Resto & Taman Rekreasi,3.9,3.5856,98.6806
Beach Island Karang,5,2.0773,98.9397
Bekancan River,3.8,3.3054,98.3872
Bekas Istana Kesultanan Asahan,4.7,2.9903,99.6754
Bendungan Batang Tongar,4,1.6732,98.8277
Bendungan Lau Si Meimei,4.8,3.197,98.5409
Berakit-Rakit Ke Hulu,4,2.8563,98.9079
Beranda Madina,4.4,1.2939,99.4461
Berastagi,4.2,3.2961,98.3686
Berastagi Local Guide,5,3.3601,98.2282
Bersama Travel,5,2.8654,98.9209
Binjai,4,3.5073,98.4678
Bintang Johor Swimming Pool,4.2,3.468,98.6325
Biro Jasa,4.7,3.2409,98.5372
Botanical Samosir,4.2,2.1525,98.4742
Budaya Resto,4.4,3.4831,98.6424
Bukik Posuak Maek,4.2,1.7301,98.8261
Bukit Burung,4.8,2.5935,98.6335
Bukit Kininduma Simantas,4.5,2.6154,98.402
Bukit Kubu,4.3,3.3425,98.5912
Bukit Lawang Day Trek,4.7,3.3331,98.2231
Bukit Lawang Ecotourism & Ecoproject,4.5,3.4436,98.1507
Bukit Lawang Explore,5,3.7381,98.4489
Bukit Lawang Guide,4.6,3.3953,98.415
Bukit Lawang Orangutan Trekking,4.6,3.5553,98.1448
Bukit Lawang Tour Trekking,4.5,3.7511,98.4528
Bukit Lawang Travel,4.6,3.4858,98.4318
Bukit Lawang Trip,4.7,3.7434,98.4467
Bukit Senyum,4.6,1.8894,98.5555
Bukit Suligi,4.3,0.202,100.1631
Bukit Tara Bunga,4.5,2.8133,98.7813
Bukit Teletubies,4.5,0.3878,99.5255
Bukit Lawang Planet Hijau,4.5,3.7457,98.4483
Bukit Lawang Wisata Alam,4,3.294,98.3761
Bukitlawang Trek,5,3.0788,99.0792
Bus Wisata,5,2.8988,98.5099
Bus Wisata Medan,5,3.5756,98.6863
Cis Tour & Travel,3,3.6335,98.7055
Cafe Goa Kaca,3.6,3.0817,98.6821
Chinatown Medan,4.3,3.2274,98.5388
Connectingjungle,5,3.2931,98.4075
Counters Kupj Simpang Sei Kopas,4.2,2.7319,98.3803
Cross Of Love,4.6,2.6625,98.9342
Danau Sipogas,4.8,0.2027,99.7456
Dairi Regency,4.1,2.6978,98.69
Danau Cipogas Rohul,4.1,0.5216,100.364
Danau Laut Tinggal,5,1.0131,99.4655
Danau Linting,4.3,3.4062,98.679
Danau Marambe,3.9,1.1,99.6126
Danau Pagaran Padang,3.7,1.8049,100.0353
Danau Tao Batang Onang,4.5,1.5887,99.2769
Danau Teratai,3.7,2.9656,99.6491
Darul Umroh,4.2,1.9932,99.8394
De Hole Laguna,4,1.935,99.5533
Deleng Bencirus,5,3.0758,98.172
Delta,3.9,2.6627,99.4197
Dermaga Silalahi,4.1,2.7512,98.3113
Desa Adat Ragi Hotang Meat,4.1,2.3308,99.0494
Desa S.Kalangan Ii,5,0.4508,99.2079
Dinas Kebudayaan & Pariwisata,3,3.1853,98.5035
Disparbud Dairi,3.7,2.8654,98.9209
Dokter Travel,4.6,2.9801,99.6301
Dolok Bunga Sirandorung,4,6.0633,107.0126
Dunia Outbound Camp,5,3.5793,98.6677
Ekowisata Mangrove,3.8,3.5323,98.1218
Efrata Waterfall,4.5,2.5318,98.6992
Elsasya Utama,3.3,3.5451,98.1281
Ende Holidays,5,3.5866,98.669
Explore Bahorok Adventure Trip,4.3,0.7386,99.6178
Five Star Int'l Travel,3.3,3.5752,98.6873
Fortress Seven Layer,4.4,0.8224,100.2803
Frog Rock Tour,4.3,4.1752,98.2444
Gang Bengkok Old Mosque,4.8,3.2224,98.5106
Gapura Wisata Alam Lae Mbilulu,5,2.6005,98.6516
Garunggang,4.5,3.542,98.1339
Gedung Bks Pps,4.4,3.5324,98.7636
Gedung Mabmi,4.5,3.3601,98.2282
Gedung Nasional Djauli Manik,4.3,2.8012,98.5276
"Gereja Katolik St. Dionysius, Sumbul",4.7,2.8988,98.5099
Go Adventure Tour & Travel Indonesia,4.9,3.2408,98.5363
Grand Darussalam. Ud,4.1,3.197,98.5409
Great Mosque,4.5,3.5299,98.6627
Gundaling,4.3,3.2673,98.6006
Gunung Pandan River Tourism Area,4.1,3.5436,98.1303
Hadabuan Naisogop Waterfalls,4.3,2.3532,99.0918
Halo Angso Duo Pratama Bro. Pt,4.5,1.5877,99.2843
Handreva Tour,4.7,1.4954,99.4617
Hendreva Tour,3.9,1.3273,99.3113
Hotel Pesona Wisata,3.6,3.1154,99.2222
Hotel Wisata Indah,4,1.7433,98.7739
Huta Bolon,4.3,2.7181,99.1393
Ikan Larangan Lubuak Landua,4,1.6638,98.8264
Indah Sipinggan Beach,4.5,1.8352,98.7053
Istana Kerajaan Rokan,4.2,1.3493,99.4285
Jln Dusun Lauseridi,4.8,3.7479,98.4424
Jembatan Dalik Lubuk Sikaping,4.1,0.2739,100.5376
Jembatan Lae Pandaroh,4.3,2.762,98.5337
"Jembatan Lau Luhung, Gunung Meriah.",4.5,3.727,98.663
Jembatan Poriaha,3.6,1.7657,98.7977
Jembatan Sidikalang Wisata,2.5,2.7524,98.3065
Jembatan Tano Ponggol,4.2,2.6066,98.9461
Kantor Dinas Pariwisata Kabupaten Humbang Hasundutan,4,3.2409,98.5372
Kolam Pancing Asri,3.2,2.2975,99.6624
Kampung Kuliner,4.2,3.6092,98.4913
Kantor Balai Taman Nasional Batang Gadis,4,1.7831,98.7427
Kantor Po Pinem Bus,4,2.9213,99.7135
Karo Regency,4.5,1.7398,98.7768
Kebun Binatang Simalingkar Medan,3.7,3.2295,98.7258
Kebun Madu Efi,4.1,3.1903,98.5093
Kembar Agro,4.2,1.3273,99.3113
Kisaran Kota,4,2.7267,99.3605
Klenteng Gunung Timur,4.6,3.5736,98.6675
Kolam Renang Air Panas Mardinding Tiga Rasa,4.5,3.2905,98.6328
Kolam Renang Pesona Wisata,3.4,3.3473,99.4805
Kolam Pancing Sapat,5,2.9238,98.5356
Kota Padang Sidempuan,4.5,1.3242,98.9986
Kualuh Hulu,3.9,2.8133,98.7813
Kuamang Ujung Gading,4.1,0.2152,99.3661
Kuil Shri Mariamman,4.5,3.5764,98.6766
Kupu-Kupu Garden Guest House & Cafe,4.4,3.5537,98.1242
Kuta Sukareme,1,3.6961,98.3773
Lorong Pandan,4.2,3.1053,98.2651
Lae Simbellen,3.2,2.7349,98.8593
Lake Toba Viewpoint,4.5,3.0222,98.3977
Landak River,4.4,3.6154,98.3968
Langkat Regency,4.1,3.5491,98.1242
Lapangan Pasir,4.1,6.1576,106.8336
Lapangan Pasir Tanjung Balai,4.2,2.9785,99.6299
Lapangan Tengku Amir Hamzah Stabat,4.3,3.4146,98.4767
Laterzhya Zimhuli,4.5,2.7912,98.1996
Lau Bengkelade,4.5,3.4777,98.4344
Lau Bengkelade Kuta,5,3.5553,98.1448
Lau Bingai,5,3.5268,98.4702
"Lau Gendang,Wisata Gua",4.4,5.0378,115.0757
Lau Perkoh,3.7,3.6161,98.1027
Lau Teba Langkat,3.7,3.5553,98.1448
Lau Mentar Canyon,5,3.5589,98.6759
Leo Tour & Travel (Leo Wisata Medan),4.2,3.5864,98.6982
Letter Z,4.1,2.9164,98.5195
Lingga Cultural Village,4.5,3.2708,98.3814
Little India Medan,4,3.6509,98.9893
Lokasi Wisata Pemandian Air Panas Sipoholon,4.2,2.5917,98.779
Loket Bus Bintang Utara,3.4,2.9381,99.6314
Loket Satu Nusa,3.5,0.7101,99.5062
Lorong Indah,5,3.1168,99.5845
Lubuk Batang Waterfall,4.2,0.2399,100.4424
Lubuk Larangan Desa Padang Bulan,4.4,2.3148,98.9803
Lumban Binanga Beach Laguboti,4,2.3469,99.077
Luppatan Tali - Tali,4.1,1.8998,100.0583
Lyza Outbount,3.8,3.8654,98.3088
"Market Wisata (Tour Bangkok, Tour Phuket, Tour Medan)",5,2.986,99.6189
Mja Travel,3.8,1.5759,99.6341
Mmtc Walking Street,4.3,3.6359,98.7011
Magic Eye 3d Art Museum,4.4,3.5521,98.8665
Makam Ompung Parmata Sapihak,4.6,1.7693,99.3081
Malay Street Medan,4,3.5764,98.6766
Mandailing Natal Regency,4.4,0.001,109.3222
Mangrove Tour Lubuk Kertang,4.2,3.5509,98.1203
Masjid Al Istiqomah,4.9,1.138,97.4991
Masjid Agung Ahmad Bakrie Kisaran,4.8,1.6614,101.4468
Masjid Agung Islamic Centre Pasir Pengaraian Rohul,4.7,1.3935,99.3047
Masjid Agung Kota Binjai,4.8,3.6019,98.481
Masjid Agung Sibolga,4.7,1.7657,98.7973
Masjid Agung Sumatera Utara,4.7,3.4705,98.5668
Masjid Al Osmani,4.7,3.6359,98.7011
Masjid Lama Gang Bengkok,4.8,3.5662,98.6198
Masjid Lama Kabanjahe,4.5,3.1187,98.4697
"Masjid Mustaqim, Sikopi-Kopi, Pulo Dogom, Kualuh Hulu, Labuhanbatu Utara, Sumatera Utara.",2.8,2.5948,99.0395
Masjid Raya,4.7,3.6154,98.3968
Masjid Raya Al Osmani,4.9,3.3481,98.4028
Masjid Raya Kisaran Kota,4.8,1.0851,103.3817
Masjid Raya Nur Addin,4.7,3.3742,99.1669
Masjid Raya Stabat,4.7,3.4579,98.8804
Matondang Travel Agent | Korwil Fastpay Kab. Humbang Hasundutan,4.5,2.0386,98.4196
Medan City Tour,5,3.5847,98.6806
Menara Pandang Simanindo,4.8,2.4718,98.8241
Menara Tirtanadi,4.5,3.5888,98.6805
Merci Waterboom,4.2,3.3073,98.8127
Mesjid Raya Al-Abror,4.7,1.4972,99.2303
Mester Bukit Lawang (Tour Guide),5,3.5485,98.1257
Millenium Wisata Indah Pt,4,3.2635,98.5531
Mobil Wisata Medan,5,3.5782,98.6572
Monkey Forest Umar Manik Sibaganding,5,2.9101,98.5195
Monumen Equator,4.2,0.1612,100.4791
Monumen Halilintar,4.6,3.118,98.4753
Monumen Loko Uap Du Croo & Braun,3,3.6751,98.9444
Mora Indah,3.9,3.5818,98.6857
Muara Beach Beautiful,4.2,3.5883,98.6895
Muaraopu,4.3,0.6588,99.0666
Musala Waterfall,4.6,1.051,97.5441
Museum Huta Bolon Simanindo,4,2.748,98.7504
Museum Karo Lingga,4.1,3.2236,98.5134
Museum Kota Tebing Tinggi,3.8,3.3294,99.1599
Museum Lubuk Pakam,4,3.1863,98.7013
Museum Negeri Sumatera Utara,4.4,3.5094,98.6765
Museum Perkebunan Indonesia,4.4,3.5669,98.9838
Museum Pusaka Karo - Berastagi,4.4,2.9164,98.5195
Museum Simalungun,4.2,2.977,99.0519
Museum Zoologi,3.9,2.9571,99.0611
Namu Sira-Sira,4.1,3.6037,98.4807
Na Ix-X,5,2.5286,99.6609
Namo Cengkeh,4.7,3.201,98.5173
Nature Baths Gantang Rani,4.2,3.241,98.6005
Niagara Tanjung Raja,4.4,3.5752,98.6839
Nice Trans Kisaran,3.8,2.6039,99.4621
North Labuhanbatu Regency,4.4,2.7844,99.376
North Namu Ukur,4.6,3.3907,98.4112
North Padang Lawas Regency,4.9,2.7349,98.8593
Objek Wisata Patamuan,4.5,1.4529,99.261
Oyo 1752 Hotel Wisata,3.9,3.2332,99.5715
Objek Wisata Budaya Batu Kursi Raja Siallagan,4.8,2.5936,98.3287
"Objek Wisata Luak Gadang, Guguak Rang Pisang",4.4,2.3057,98.8126
Objek Wisata Maggrove Sisarahili Ts,2,1.1908,97.681
Objek Wisata Pantai Ujung Sibolga,4,2.9663,99.8062
Objek Wisata Togindrawa Gua,5,3.727,98.663
One Heart Hill,4.2,3.7197,98.3992
Pantai La Terzhia Zhimehuli,4.3,2.8304,98.5263
Pemandian Air Panas - Batu Bara ( 50 ),4,3.1677,99.441
Pemandian Alam Agape,3.5,3.5249,98.543
Penginapan King's Ambarita,4.1,2.716,98.6919
Permata Asri Stabat,3.9,3.6495,98.5073
Plta Sipansihaporas,4.4,1.72,98.7957
Pt Farnaz Utama,4.8,3.604,98.7105
Pt Pelangi Wisata,1,3.5857,98.6939
Pt Wisata Habibah Berkah,4.1,3.446,98.1484
"Pt, Yy Traveling Tour And Travel",5,2.6951,98.6897
Pt. Bagus Wisata Holiday's,1,3.3722,98.2575
Pt. Dairi Transport,4.5,2.5371,99.0082
Pt. Hikmah,4.1,2.7486,98.751
Pt. Jsa Tour & Travel,4,3.5722,98.6833
Pt. Npm Perwakilan On Bus,4.5,3.1372,99.4804
Pt. Pmn Travel Bus,4,2.9784,99.6292
Pt. Raya Utama Travel,4.1,2.9526,99.0594
Pt. Sky Ocean Travel,5,3.4764,98.6865
Padang Lawas Regency,5,0.4804,100.3201
Pakkodian Toba,4.6,2.0773,98.9397
Pakpak Culture Association (Cgc),4,2.6217,98.4861
Panatapan Parhalow,5,2.7181,99.1393
Panatapan Sileme-Leme,4.5,2.2055,98.5325
Panorama Uruk Lisang,4.4,3.1853,98.5049
Pantai Arta Indah,4.2,0.6835,100.3624
Pantai Bul Bul,4.3,2.0194,98.4578
Pantai Barat,4.3,1.3242,98.9986
Pantai Barat Natal,4.3,0.6107,99.0934
Pantai Batu Rusa,4.2,0.5574,100.4156
Pantai Buih,4,3.3014,98.6498
Pantai Bukit Malintang Buburan,4.5,0.4768,99.6602
Pantai Cermin Theme Park & Resort Hotel,4.1,3.5951,98.7222
Pantai Indah Sipinggan,4.5,2.6317,98.6549
Pantai Kaca,4.6,2.9886,99.6111
Pantai Katung Binasi,5,2.5946,99.0374
Pantai Kenangan,4.2,2.9585,99.0623
Pantai Ketam,4,2.9659,99.7984
Pantai Malaya,3.8,3.293,98.389
Pantai Maligi,4.8,2.7861,98.6161
Pantai Paris,4.1,2.432,98.8975
Pantai Pasir Putih Parbaba,4.2,2.7602,98.7249
Pantai Pasir Putih Parparean,4.2,2.3725,99.1118
Pantai Pelawan,4.2,2.9526,99.0594
Pantai Pongkar,4.1,1.0491,103.3128
Pantai Pulau Karang,4.7,2.6177,98.6763
Pantai Pulau Putri,4.7,1.7914,98.7703
Pantai Sikabau,4.3,0.8911,100.3548
Pantai Sikilang,4.3,1.0247,99.8462
Pantai Simallo,4.1,2.6811,99.5265
Pantai Sorake Nias Selatan,4.5,1.1908,97.681
Pantai Teluk Kerang,3.8,3.5499,98.1203
Pantai Tiram Tapakis,4.3,0.5123,100.0504
Paranggiran Raja Silahisabungan,4.6,2.7513,98.3115
Parhallow Viewpoint And Coffee Shop,4.5,1.8895,98.7487
Parhonasan (Kebun Nenas) Sidumpe Anturi,1,2.7431,98.406
Parks West Coast,4.1,1.0207,99.5045
Pas Pam Wisata,4.6,3.2653,98.5503
Pasar Buah Berastagi,4.3,3.1927,98.5013
Pasar Kaget Kota Binjai,4.4,3.3878,98.4153
Pasar Tomok,4.4,2.604,99.4584
Pasir Putih Janggawari,4,2.9663,99.8062
Patung Dewi Kwan Im,4.5,2.9585,99.0623
Pawan Hot Water,3.8,1.4043,99.2736
Peceren Karo Village,4.8,2.9157,98.5235
Pemandian Air Panas Goa Ergendang,3,6.8006,107.178
Pemandian Air Panas Huta Raja,4.4,2.0399,99.8223
Pemandian Air Panas Rianiate,3.9,2.5198,98.7331
Pemandian Air Panas Sibayak Mardinding Julu,3.8,3.3643,98.6685
Pemandian Air Panas U.S.K Hineni,4.3,2.5509,99.3063
Pemandian Alam Bendungan Ginbers,3.8,3.4566,98.5627
Pemandian Alam Bolang,4.1,3.4706,98.5916
Pemandian Alam Loknya,4.1,3.5902,98.6937
Pemandian Alam Tirta Sayum Sabah,4.4,3.509,98.6767
Pemandian Pulau Batu (Pulbat),4.2,2.957,99.062
Pemandian Sidamanik,4.3,3.2409,98.5372
Pemandu Bukit Lawang,5,3.4705,98.5668
Penangkaran Buaya Asam Kumbang,4.1,3.2592,98.5135
Penangkaran Rusa Universitas Sumatera Utara,4.4,3.5415,98.8103
Penatapan Pamah Simelir,4.4,3.5461,98.1251
Penatapen Doulu,4.4,2.7319,98.3803
Perhadtian Air Panas Taman Wisata Sibayak,4.2,2.0399,99.8223
Perkebunan Londut,5,2.3502,99.2786
Pertunjukan Tari Sigale Gale,4.4,2.2628,98.7491
Perumahaan Azalea Asri,3.5,3.3425,98.5912
Perwakilan Mandiri,3.9,1.5336,99.1702
Pesanggrahan Bung Karno,4.5,2.5561,99.4571
Pesona Alam Panorama Indah. Pt,4,2.8654,98.9209
Pinang City,3.7,0.8173,100.315
Pisang Pelangi,4.3,3.6258,98.7995
Poldung,4.8,2.09,99.7288
Pondok Pisang,3.8,1.4972,99.2303
Pondok Wisata Lagundi Samosir,3.9,2.6519,98.8608
Pool Bus Intra,4.4,3.5094,98.6609
Pulau Beswesen Tanjungbalai,4.1,3.3473,99.4805
Pulau Malau,4.7,2.592,98.6306
Pulau Pigago,4.4,0.3116,99.5608
Pulau Poncan,4.2,1.7657,98.7977
Pulau Samosir,4.5,3.3878,98.4153
Puncak Anai,4.5,0.6858,100.3285
Puncak Bukit Galau,5,2.8085,99.534
Puncak Bukit Manalise Aek Buro,4.6,3.3907,98.4112
Puncak Gundaling Brastagi,4.4,2.8988,98.5099
Puncak Hoza,2.7,3.1498,101.7519
Puncak Jb,3.7,1.4461,99.58
Puncak Kabur Bukit Villa,4.5,0.8219,100.2517
"Puncak Paranginan,Aek Nabirong",5,0.1777,99.2816
"Puncak Pelangkah Gading, Kutambaru, Munte, Kab. Karo, Sumut",4.7,3.0931,98.3568
Puncak Santai,5,3.8654,98.3088
Puncak Saragodung,5,1.7657,98.7977
Puncak Tonang,3.9,0.1061,99.8869
Pusat Informasi Geopark Kaldera Toba Sigulatti,4.5,2.8462,98.7288
"Pusat Posko ""Teroh-Teroh.",4.6,3.1927,98.5013
Pusat Kuliner Kota Sibolga,5,1.6742,98.8276
Putri Cahaya Travel,4.1,3.087,98.4141
R.M Wisata Indah,3.4,0.1028,99.5409
Ranika Surf,3.3,0.5681,97.7297
Rm Batunadua Indah,4.1,2.2896,99.0839
Rudang Mayang,3.8,3.241,98.6005
Replika Istana Serdang,4.1,3.5932,98.6687
Replika Pagoda Shwedagon,4.4,3.1919,98.5024
Revolution Heroes Monument,4.2,2.1211,98.9642
Rimba Huta Sikapir,4.5,0.8532,100.1689
Romance Padi Perbaungan,3.9,3.5736,98.6675
Rosyid Orangutan Tours,4,3.5314,98.1462
Royal Palace Nafis Jackson,4.9,3.6765,98.8524
Rumah Irmayanti Lubis,3.7,2.99,99.6385
Rumah Makan Irian,4.2,3.6068,98.489
Rumah Wisata Sunggal,4.1,2.6978,98.69
Sampuren Tutuen Sige,4,2.7122,98.8131
Samto Aek Rangat,4.3,2.6101,98.8642
Sbv,4.4,3.1224,98.5949
Sembilantujuh Tour&Travel,5,3.9214,98.3959
Sopo Partungkoan,4.2,2.324,98.8463
Sri Supramaniyam Temple,5,3.5888,98.6805
Saba Napa,4.6,2.3396,99.0135
Sabah Simelir,4.6,3.4846,98.4593
Saf Travel Indo,5,3.548,98.6087
Salak Monument Pakkat,4.4,2.663,98.2107
Salib Kasih,4.6,2.0298,98.9794
Salib Kasih Tarutung,4.6,2.8446,98.5291
Sansan Travel,4.7,2.5318,98.6992
Setia Wisata,5,3.6397,98.7698
Sialang Batu,4.3,0.7432,99.3673
Siba Island Resort,3.3,3.6299,98.6983
Sibio-Bio Advanture Park,4,1.4793,99.0846
Sibio-Bio Adventure Park,4,0.7693,100.2488
Sibolga Dutch Tunnel,4.2,0.5651,100.4089
Sidebuk Debuk Thermal Baths Berastagi,4.4,3.189,98.5089
Silalahi I,4.4,2.7604,98.7248
Simanimbo Waterfall,4.4,3.3473,99.4805
Simonis,4.3,2.1739,99.4784
Simpang Bantoon,4.7,2.597,99.0302
Simpang Pantai Monyet,4,2.774,99.2064
Sini Suka Natural Bath Sibiru-Biru,4.1,0.5201,117.1409
Siregar Aek Nalas,4.6,2.2694,98.1666
Sitinjo,1,2.7391,98.3248
Sopo Tinjak,5,3.1141,99.122
Sp.Lau Petundal,3,3.4705,98.5668
Sri Deli Park,4.3,7.3444,110.4865
Stabat,4.3,3.4706,98.5916
Stasiun Binjai,4.1,3.5643,98.4862
State Museum Of North Sumatra,4.4,3.5668,98.6568
Struggle Monument Berastagi,4.5,3.1993,98.5111
Sumatra Jungle Trek,5,4.1063,98.2979
Sumatra Orangutan Tours & Holidays,3.8,3.3425,98.5912
Sumatra Tours Holiday & Jungle Trekking,4.8,2.7969,115.186
Sumur Tua,4,2.7136,99.1483
T.Garden,4,3.6283,98.6989
Tahura (Taman Hutan Raya),4.2,3.2224,98.5106
Taman Aek Kota Batu Labura,3.8,2.2498,99.6414
Taman Alamta Jaya,4,3.7115,98.7317
Taman Bukit Gelanggang,4.2,1.4169,99.293
Tts (Toru Tor Simarsayang) Cafe,3.8,1.3493,99.4285
Tugu Air Mancur Majestik,4.2,3.6698,98.6623
Tugu Air Mancur Sinar Indonesia Baru Petisah,4.2,3.1497,98.7866
Twa Lau Debuk-Debuk,4.3,3.2592,98.5135
Taman Balita Kota Binjai,4.5,3.6105,98.4948
Taman Benteng Lions Club,4.4,3.5751,98.6873
Taman Bunga,3.9,3.1047,98.4979
Taman Cadika Pramuka,4.3,1.3934,99.2963
Taman Danau Wisata Bunga Tujuh,3.5,3.1927,98.5013
Taman Edukasi Binjai,4.1,3.6044,98.5347
Taman Gajah Mada,4.2,3.5838,98.6741
Taman Kebun Bunga èŒ  榀 圀,4.3,3.7148,98.6387
Taman Kebun Bunga èŒ ¦€åœ€,4.3,3.5683,98.6963
Taman Kota Salak (Tugu Salak),4.1,1.5877,99.2843
Taman Kota Tanjungbalai,4.2,2.957,99.8279
Taman Lope Lope Bulu Cina,3.9,2.954,99.0572
Taman Megawati,4,1.2502,97.6437
Taman Mejuah-Juah,4.2,3.1964,98.5161
Taman Mini Travel Langkat,4.1,3.7742,97.2437
Taman Mutiara Selat Malaka,5,2.5484,99.3026
Taman Pesona Asri,5,3.3213,99.1641
Taman Rekreasi Kong Mah,3.9,2.7319,98.3803
Taman Remaja Binjai,4.5,3.6086,98.4987
Taman Selfie,4.1,3.6031,98.4813
Taman Sri Deli,4.3,3.4936,98.61
Taman Sungai Padang,3.5,2.809882,99.188514
"Taman Wisata Alam, Pusat Latihan Gajah",3.9,1.7643,99.7945
Taman Wisata Simatahari Indah,3.7,1.669,100.2507
Taman Air Percut,3.5,3.5974,98.8315
Tanah Lapang Merdeka Binjai,4.4,3.6082,98.4974
Tangkahan,4.5,3.3481,98.4028
Tanjung Apek Beach,3.9,1.5438,125.2923
Tanjung Pura,4.7,3.5553,98.1448
Tanjung Unta,4.3,2.0752,98.9441
Tao Lake Rod Onang,4.5,0.4109,99.5025
Tapian Puti,4.6,1.063,99.6559
Tapian Siri-Siri Syariah,3.8,2.3475,99.0407
Telagah,5,3.5856,98.6806
Tempat Pengasingan Soekarno,4.4,2.0137,99.0037
Terminal Berastagi,5,3.1674,98.1558
The Attraction Of Ikan Gadang,4.1,0.7177,100.2033
The Heritage,4.3,3.5822,98.6851
The Kaldera,4.6,2.7322,98.3804
The Le Hu Garden,4.3,3.4086,98.6992
Thermal Baths U.S.K Hineni,4.3,2.2426,98.7385
Tinggi Raja,4.1,2.9238,98.5356
Tirtanadi Tower,4.5,3.5642,98.6485
Titi Gantung Bridge,4.1,3.3219,98.3731
Toba Lake Sibolahotang Beautiful Beach,5,2.5908,98.9979
Tobasa,4.1,2.1533,99.6787
Toddler Garden Binjai,4.5,3.6106,98.4999
Tor Simago-Mago,4.2,1.3785,99.2703
Tour Accomodation,4.7,3.7582,98.6519
"Tour Guide,Tarna Sagala.German &Dutch Speaking",4.7,3.5749,98.6841
Tourism Kuala Paret,4.2,3.2409,98.5372
Tugu Air Bangis,4.3,0.3851,99.5283
Tugu Becak Bsa Siantar,4.6,2.9697,99.1685
Tugu D.I Panjaitan,4.4,2.3395,98.9419
Tugu Jeruk Berastagi,4.4,2.2159,102.2301
Tugu Kol,4.2,3.2054,98.5379
Tugu Marga Silalahi,4.5,2.8449,98.5281
Tugu Pahlawan Revolusi,4.2,2.576,98.4239
Tugu Pramuka,4.3,3.291,98.6332
Tugu Sejarah Perjuangan Asahan,3.9,2.9381,99.6314
Tugu Silahi Sabungan,4.5,3.2466,98.5343
Tugu Simpang Empat,5,2.09,99.7288
Tugu Sitio,4.9,2.6932,98.927
Tumori Traditional Village,4.6,1.1912,97.6442
Twins Travel,4.3,2.1008,99.8288
Umbul Ejuk,5,3.1124,99.0792
Uruk Ndaholi,4.4,3.5194,114.9501
Vihara Pubbarama Buddhist,4.8,3.4184,98.3222
Vania Travel,4.1,2.8578,99.6663
Viewpoint Of Tuktuk Peninsula,4.3,2.7319,98.3803
Vihara Avalokitesvara,4.6,2.9543,99.0611
Vihara Budha Taman Iman,5,2.7914,98.5322
Vihara Gunung Timur,4.6,3.5527,98.7033
Vihara Pekong Lima,3.7,6.8566,107.6327
Vihara Tri Ratna,4.5,2.9655,99.8004
Warnawarni Stabat,3.8,3.6092,98.4256
Winter Holidays,4,3.6291,98.704
Wisata Agro Kopi Karo,4.2,3.1993,98.5111
Wisata Merci,4.2,3.5932,98.6687
Warisan Dunia Minimini,5,2.4541,98.9783
Warung Info Wisata,5,3.8986,98.4208
Water Park Tambunan,3.8,2.1211,98.9642
Waterfall Pelangi Indah,4.2,3.7115,98.7317
Waterpark Bima Utomo International,4.1,3.5094,98.6765
Waterpark Ria,3.9,4.1611,97.8419
West Kisaran,3.9,3.3143,98.3797
Wisata Air Parsariran,4.2,1.156,99.4225
Wisata Alam,3.9,1.8953,100.0932
"Wisata Alam ""Panatapan Parupuk Julu""",1,1.3989,99.2471
Wisata Alam Aek Markusasak,3.9,1.7314,99.8018
Wisata Alam Aek Sordang,3.8,2.3304,100.154
Wisata Alam Datuk,3.7,2.9785,99.6299
Wisata Alam Experience Survive Champing,5,3.5776,98.6684
Wisata Alam Pohon Damai Simempar,4.6,3.1218,98.6821
Wisata Alam Pondok Biru,4.1,2.9526,99.0594
Wisata Alam Siringo,4.8,2.9116,98.5183
Wisata Bah Kulistik,4.2,2.8572,99.2239
Wisata Batu Rongring,5,3.5553,98.1448
Wisata Bendunga Sei Palis,4.7,0.0466,100.5368
Wisata Dakwah Okura,4.3,2.9571,99.0611
Wisata Indonesia Itu Indah,3.9,1.8642,98.6326
Wisata Madu Aek Nauli,5,3.7993,102.2614
Wisata Makam Papan Tinggi Barus,4.4,2.6685,98.937
Wisata Pancing Sungai Bedera,3,3.5738,98.6887
Wisata Pulau Spantiang,4.3,1.7314,99.8018
Wisata Rekreasi Danau Buatan,3.7,3.4801,98.6943
Wisata Sawah Koto,4.6,0.126,100.1705
Wisata Sipinsur,4.5,1.4169,99.293
Wisata Taman Merci,4.2,3.4486,98.7005
Wisata Alam,4,2.2809,99.082
Wisata Hutan Mangrove Perpat,4.5,2.8888,99.6369
Wisata Pemandian Water Hill,3.6,2.9853,99.6285
Yayasan Perguruan Sisingamangaraja,5,2.3277,99.7156
Zam Zam Prima Persada. Pt,3,2.7908,98.5329
Air Terjun Baburai,5,1.6614,101.4468
Air Terjun Bertala,4,3.5066,98.8352
Air Terjun Kemuning,4.5,0.3851,99.5283
Air Terjun Sampuran Widuri,3.7,3.1154,99.2222
Air Terjun Sempugen,4.8,1.4461,99.58
Air Terjun Situak Lotik Iii,4.7,0.9682,99.7794
Embae Tour & Travel,4.9,6.1751,106.8492
Konservasi Sungai Kukam,4.8,3.4697,98.4598
Museum Deli Serdang,4.4,3.1535,98.6911
Old City Hall,5,3.3493,98.6489
Pantai Pasir Putih,4.2,2.6217,98.4861
Pasir Putih Porsea,4.2,2.6273,98.7922
Pelangi Nusantara,4.3,3.4364,98.5488
Pemandian Air Panas Tirto Kencono,5,3.438,98.4846
Travel Panyabungan Padang,3.5,0.8594,99.5631
Welterbeminimini,4.5,2.652,98.3805
Wisata Merci,4.2,3.4024,98.6915
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os,django\n",
"import pandas as pd\n",
"from orm.models import Siswa,Kelas,Karakter\n",
"import math"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'Siswa' is not defined",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m<ipython-input-1-eabc7ddc4584>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[1;31m# Kelas\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0msw\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mSiswa\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mobjects\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mall\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 3\u001b[0m \u001b[0mkl\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mKelas\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mobjects\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mall\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[1;32mdef\u001b[0m \u001b[0mListKelas\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0msw\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
"\u001b[1;31mNameError\u001b[0m: name 'Siswa' is not defined"
]
}
],
"source": [
"# Kelas\n",
"sw=Siswa.objects.all()\n",
"kl=Kelas.objects.all()\n",
"\n",
"def ListKelas(sw):\n",
" if len(sw)>0:\n",
" cols = ['Nilai']\n",
" \n",
" kel ={\n",
" cols[0] : [int(a.kelass.nilai) for a in sw],\n",
" }\n",
" dfkel = pd.DataFrame(data=kel)\n",
" return dfkel\n",
" else:\n",
" return[]\n",
"\n",
"def Hasil_Kelas():\n",
" kl=ListKelas(sw)\n",
" b = 0\n",
" tampung=[]\n",
" for y in range(len(sw)):\n",
" a=(math.pow(kl.Nilai[y],2))\n",
" b = b+a\n",
" for i in range(len(sw)):\n",
" s = kl.Nilai[i]\n",
" ad=s/(math.sqrt(b))\n",
" tampung.append(ad)\n",
" \n",
" swa={'nama':[a.nama for a in sw]}\n",
" \n",
" if len(sw)>0:\n",
" cols = ['Jenjang']\n",
" \n",
" kel ={\n",
" cols[0] : [str(a.kelass.jenjang) for a in sw],\n",
" }\n",
" dfkel = pd.DataFrame(data=kel)\n",
" \n",
" \n",
" dfswa= pd.DataFrame(data=swa)\n",
" Kelas=pd.DataFrame(data=tampung,columns=['Nilai'])\n",
" new = pd.concat([dfswa,dfkel, Kelas], axis=1)\n",
" return new\n",
"\n",
"\n",
"def HasilKelas_Pembobotan():\n",
" b=Hasil_Kelas()\n",
" lst=list(b)\n",
" y=0\n",
" d=[]\n",
" lst\n",
" \n",
" for i in range(len(b)):\n",
" y =0.3*b.Nilai[i]\n",
" d.append(y)\n",
" pb=pd.DataFrame(d,columns=['Nilai'])\n",
" swa={'nama':[a.nama for a in sw]}\n",
" dfswa= pd.DataFrame(data=swa)\n",
" # Kelas=pd.DataFrame(data=tampung,columns=['Nilai'])\n",
" new = pd.concat([dfswa, pb], axis=1)\n",
" return new"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"HasilKelas_Pembobotan()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Hasil_Kelas()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def ListKelasJn(sw):\n",
" if len(sw)>0:\n",
" cols = ['Jenjang']\n",
" \n",
" kel ={\n",
" cols[0] : [str(a.kelass.jenjang) for a in sw],\n",
" }\n",
" dfkel = pd.DataFrame(data=kel)\n",
" return dfkel\n",
" else:\n",
" return[]\n",
"ListKelasJn(sw)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def Bobot_MTK():\n",
" b=Hasil_Kelas()\n",
" lst=list(b)\n",
" y=0\n",
" d=[]\n",
" lst\n",
" for i in range(len(lst)):\n",
" y =0.3*lst[i]\n",
" d.append(y)\n",
" pb=pd.DataFrame(d,columns=['Nilai'])\n",
" swa={'nama':[a.nama for a in sw]}\n",
" dfswa= pd.DataFrame(data=swa)\n",
" new = pd.concat([dfswa, pb], axis=1)\n",
" return new\n",
"\n",
"Bobot_MTK()\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"krt=Karakter.objects.all()\n",
"def ListAkademik(krt):\n",
" if len(krt)>0:\n",
" cols = ['matapelajaran','nilai']\n",
" kel ={\n",
" cols[0] : [str(a.matapelajaran) for a in ak],\n",
" cols[1] : [int(a.nilai) for a in ak],\n",
" }\n",
" dfkel = pd.DataFrame(data=kel)\n",
" return dfkel\n",
" else:\n",
" return[]\n",
"\n",
"ListAkademik(ak)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def ListKecerdasan(krywn):\n",
" if len(krywn)>0:\n",
" target = [4, 3, 4, 5, 3]\n",
" cols = ['sistematika_berfikir', 'konsentrasi', 'logika_praktis','imajinasi_kreatif','antisipasi']\n",
"\n",
" krn = {'nama': [a.nama for a in krywn]}\n",
" dfkrn = pd.DataFrame(data=krn)\n",
"\n",
" kec = {\n",
" cols[0] : [int(a.kecerdasans.sistematika_berfikir) for a in krywn],\n",
" cols[1] : [int(a.kecerdasans.konsentrasi) for a in krywn],\n",
" cols[2] : [int(a.kecerdasans.logika_praktis) for a in krywn],\n",
" cols[3] : [int(a.kecerdasans.imajinasi_kreatif) for a in krywn],\n",
" cols[4] : [int(a.kecerdasans.antisipasi) for a in krywn],\n",
" }\n",
" dfkec = pd.DataFrame(data=kec)\n",
"\n",
" gap = get_gap(dfkec, target)\n",
" pb = pembobotan(gap, cols)\n",
" new = pd.concat([dfkrn, pb], axis=1)\n",
" return new\n",
" else:\n",
" return []"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment