{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"Study2-2.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyMbSg9a+A+QNggJqS2HJI0c"},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"9CyBAGpKonW1","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":127},"outputId":"b28eefb0-53bb-4bde-9bde-3020acc75373","executionInfo":{"status":"ok","timestamp":1584870466446,"user_tz":-540,"elapsed":41193,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}}},"source":["import pandas as pd\n","from google.colab import drive\n","drive.mount('/content/drive')"],"execution_count":1,"outputs":[{"output_type":"stream","text":["Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=947318989803-6bn6qk8qdgf4n4g3pfee6491hc0brc4i.apps.googleusercontent.com&redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&response_type=code&scope=email%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdocs.test%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive.photos.readonly%20https%3a%2f%2fwww.googleapis.com%2fauth%2fpeopleapi.readonly\n","\n","Enter your authorization code:\n","··········\n","Mounted at /content/drive\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"QMh0VdaYo2xG","colab_type":"code","colab":{}},"source":["df = pd.read_csv('/content/drive/My Drive/Colab Notebooks/tensorflow/data/heart disease dataset.csv')"],"execution_count":0,"outputs":[]},{"cell_type":"code","metadata":{"id":"pD2MjeVDpR58","colab_type":"code","colab":{"base_uri":"https://localhost:8080/","height":81},"outputId":"96534752-3912-450a-955e-47f5a20d3c01","executionInfo":{"status":"ok","timestamp":1584870571109,"user_tz":-540,"elapsed":4694,"user":{"displayName":"Yoon Jack","photoUrl":"","userId":"04923927567667044980"}}},"source":["import numpy as np\n","import tensorflow as tf"],"execution_count":3,"outputs":[{"output_type":"display_data","data":{"text/html":["
\n","The default version of TensorFlow in Colab will soon switch to TensorFlow 2.x.
\n","We recommend you upgrade now \n","or ensure your notebook will continue to use TensorFlow 1.x via the %tensorflow_version 1.x
magic:\n","more info.
\n"," | male | \n","age | \n","education | \n","currentSmoker | \n","cigsPerDay | \n","BPMeds | \n","prevalentStroke | \n","prevalentHyp | \n","diabetes | \n","totChol | \n","sysBP | \n","diaBP | \n","BMI | \n","heartRate | \n","glucose | \n","TenYearCHD | \n","
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n","1 | \n","39 | \n","4.0 | \n","0 | \n","0.0 | \n","0.0 | \n","0 | \n","0 | \n","0 | \n","195.0 | \n","106.0 | \n","70.0 | \n","26.97 | \n","80.0 | \n","77.0 | \n","0 | \n","
1 | \n","0 | \n","46 | \n","2.0 | \n","0 | \n","0.0 | \n","0.0 | \n","0 | \n","0 | \n","0 | \n","250.0 | \n","121.0 | \n","81.0 | \n","28.73 | \n","95.0 | \n","76.0 | \n","0 | \n","
2 | \n","1 | \n","48 | \n","1.0 | \n","1 | \n","20.0 | \n","0.0 | \n","0 | \n","0 | \n","0 | \n","245.0 | \n","127.5 | \n","80.0 | \n","25.34 | \n","75.0 | \n","70.0 | \n","0 | \n","
3 | \n","0 | \n","61 | \n","3.0 | \n","1 | \n","30.0 | \n","0.0 | \n","0 | \n","1 | \n","0 | \n","225.0 | \n","150.0 | \n","95.0 | \n","28.58 | \n","65.0 | \n","103.0 | \n","1 | \n","
4 | \n","0 | \n","46 | \n","3.0 | \n","1 | \n","23.0 | \n","0.0 | \n","0 | \n","0 | \n","0 | \n","285.0 | \n","130.0 | \n","84.0 | \n","23.10 | \n","85.0 | \n","85.0 | \n","0 | \n","