{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"mount_file_id":"1s8m2lB66czUKMvvLpGGUkni5lzVTjz3d","authorship_tag":"ABX9TyOq5yrxD9fl6zae70hb1FO5"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["# **Studi Kasus Heart Disease 5 Fitur Part 2**"],"metadata":{"id":"s8B30LBor6qp"}},{"cell_type":"markdown","source":["Implementasi dengan Menggunakan Model `Bagging Classifier` , `Random forest` dan `Stacking clasifier` Dengan data tanpa `Normalisasi`."],"metadata":{"id":"9CEPTpErkvJw"}},{"cell_type":"markdown","source":["## Membaca data"],"metadata":{"id":"EAF-vi3ksEd5"}},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":206},"id":"9xrzLAOwrx-Q","executionInfo":{"status":"ok","timestamp":1669559083659,"user_tz":-420,"elapsed":541,"user":{"displayName":"Caca Erha","userId":"13359221303846732984"}},"outputId":"3d2b3a56-a2ec-4992-8cae-3432497e37fd"},"outputs":[{"output_type":"execute_result","data":{"text/plain":[" age sex BP cholestrol heart disease\n","0 70 1 130 322 1\n","1 67 0 115 564 0\n","2 57 1 124 261 1\n","3 64 1 128 263 0\n","4 74 0 120 269 0"],"text/html":["\n","
\n"," | age | \n","sex | \n","BP | \n","cholestrol | \n","heart disease | \n","
---|---|---|---|---|---|
0 | \n","70 | \n","1 | \n","130 | \n","322 | \n","1 | \n","
1 | \n","67 | \n","0 | \n","115 | \n","564 | \n","0 | \n","
2 | \n","57 | \n","1 | \n","124 | \n","261 | \n","1 | \n","
3 | \n","64 | \n","1 | \n","128 | \n","263 | \n","0 | \n","
4 | \n","74 | \n","0 | \n","120 | \n","269 | \n","0 | \n","
\n"," | age | \n","sex | \n","BP | \n","cholestrol | \n","
---|---|---|---|---|
0 | \n","70 | \n","1 | \n","130 | \n","322 | \n","
1 | \n","67 | \n","0 | \n","115 | \n","564 | \n","
2 | \n","57 | \n","1 | \n","124 | \n","261 | \n","
3 | \n","64 | \n","1 | \n","128 | \n","263 | \n","
4 | \n","74 | \n","0 | \n","120 | \n","269 | \n","
... | \n","... | \n","... | \n","... | \n","... | \n","
265 | \n","52 | \n","1 | \n","172 | \n","199 | \n","
266 | \n","44 | \n","1 | \n","120 | \n","263 | \n","
267 | \n","56 | \n","0 | \n","140 | \n","294 | \n","
268 | \n","57 | \n","1 | \n","140 | \n","192 | \n","
269 | \n","67 | \n","1 | \n","160 | \n","286 | \n","
270 rows × 4 columns
\n","