{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/Users/federicoviscioletti/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines\n", "[LightGBM] [Info] Number of positive: 310, number of negative: 490\n", "[LightGBM] [Info] Auto-choosing col-wise multi-threading, the overhead of testing was 0.000178 seconds.\n", "You can set `force_col_wise=true` to remove the overhead.\n", "[LightGBM] [Info] Total Bins 519\n", "[LightGBM] [Info] Number of data points in the train set: 800, number of used features: 15\n", "[LightGBM] [Info] [binary:BoostFromScore]: pavg=0.387500 -> initscore=-0.457833\n", "[LightGBM] [Info] Start training from score -0.457833\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n", "[LightGBM] [Warning] No further splits with positive gain, best gain: -inf\n" ] }, { "data": { "text/html": [ "
LGBMClassifier()
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.
" ], "text/plain": [ "LGBMClassifier()" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "from sklearn.model_selection import train_test_split\n", "import lightgbm as lgb\n", "from sklearn.metrics import precision_score, recall_score\n", "import numpy as np\n", "import gradio as gr\n", "import matplotlib.pyplot as plt\n", "import io\n", "from io import StringIO\n", "\n", "# CSV data as a string\n", "csv_data = \"\"\"Age,Gender,Cholesterol,Blood Pressure,Heart Rate,Smoking,Alcohol Intake,Exercise Hours,Family History,Diabetes,Obesity,Stress Level,Blood Sugar,Exercise Induced Angina,Chest Pain Type,Heart Disease\n", "75,Female,228,119,66,Current,Heavy,1,No,No,Yes,8,119,Yes,Atypical Angina,1\n", "48,Male,204,165,62,Current,None,5,No,No,No,9,70,Yes,Typical Angina,0\n", "53,Male,234,91,67,Never,Heavy,3,Yes,No,Yes,5,196,Yes,Atypical Angina,1\n", "69,Female,192,90,72,Current,None,4,No,Yes,No,7,107,Yes,Non-anginal Pain,0\n", "62,Female,172,163,93,Never,None,6,No,Yes,No,2,183,Yes,Asymptomatic,0\n", "77,Male,309,110,73,Never,None,0,No,Yes,Yes,4,122,Yes,Asymptomatic,1\n", "64,Female,211,105,86,Former,Heavy,8,Yes,Yes,Yes,2,120,No,Typical Angina,1\n", "60,Female,208,148,83,Never,Moderate,4,No,Yes,Yes,2,113,Yes,Asymptomatic,1\n", "37,Female,317,137,66,Current,Heavy,3,No,Yes,Yes,5,114,No,Non-anginal Pain,0\n", "63,Male,204,141,68,Former,Heavy,8,No,Yes,No,3,107,No,Asymptomatic,1\n", "67,Female,282,108,87,Never,Heavy,3,Yes,No,Yes,9,85,Yes,Typical Angina,1\n", "37,Male,293,148,98,Current,Moderate,6,Yes,No,Yes,10,129,No,Typical Angina,0\n", "67,Male,325,177,81,Never,Moderate,8,Yes,No,Yes,10,192,No,Non-anginal Pain,1\n", "43,Male,155,169,82,Current,Heavy,8,Yes,Yes,No,2,163,No,Typical Angina,0\n", "60,Male,226,168,99,Never,Moderate,8,Yes,Yes,No,10,97,No,Non-anginal Pain,1\n", "44,Female,250,111,66,Former,None,6,Yes,No,Yes,3,121,Yes,Non-anginal Pain,0\n", "43,Female,279,173,81,Current,Moderate,9,Yes,No,No,7,150,No,Asymptomatic,0\n", "46,Female,259,118,76,Never,Heavy,4,No,Yes,Yes,8,76,No,Non-anginal Pain,0\n", "45,Female,246,169,98,Never,Moderate,5,Yes,No,Yes,9,97,No,Typical Angina,0\n", "74,Female,298,148,70,Former,Heavy,9,Yes,Yes,Yes,8,157,Yes,Non-anginal Pain,1\n", "76,Female,226,97,62,Former,None,5,Yes,Yes,No,4,85,No,Non-anginal Pain,1\n", "44,Female,309,95,83,Former,None,4,No,Yes,No,4,139,No,Non-anginal Pain,0\n", "58,Male,297,90,72,Current,None,6,Yes,No,No,10,104,Yes,Atypical Angina,1\n", "67,Male,287,117,64,Current,Moderate,0,Yes,Yes,Yes,1,112,Yes,Atypical Angina,1\n", "67,Female,177,171,87,Never,None,1,No,No,No,5,170,Yes,Typical Angina,0\n", "31,Male,276,110,61,Never,Heavy,8,Yes,Yes,No,7,187,Yes,Non-anginal Pain,0\n", "66,Female,265,159,99,Never,Heavy,4,Yes,Yes,No,7,151,No,Non-anginal Pain,1\n", "63,Male,273,103,64,Never,None,6,Yes,Yes,Yes,9,104,No,Typical Angina,1\n", "77,Female,197,170,61,Current,Moderate,8,No,No,Yes,9,92,No,Non-anginal Pain,0\n", "79,Male,319,115,63,Never,Moderate,0,Yes,No,Yes,9,95,No,Typical Angina,1\n", "32,Female,313,154,70,Former,Moderate,5,No,Yes,Yes,6,176,Yes,Asymptomatic,0\n", "48,Male,179,117,61,Never,None,7,No,No,No,1,166,Yes,Asymptomatic,0\n", "41,Male,234,98,71,Never,Moderate,6,No,No,No,6,73,Yes,Atypical Angina,0\n", "53,Female,228,142,99,Former,Heavy,1,Yes,Yes,Yes,9,75,Yes,Atypical Angina,1\n", "36,Male,227,158,78,Former,Heavy,8,Yes,No,Yes,6,120,No,Asymptomatic,0\n", "57,Male,262,166,73,Never,Moderate,1,No,No,Yes,8,97,Yes,Atypical Angina,1\n", "60,Female,311,159,60,Former,Heavy,4,Yes,Yes,Yes,10,99,No,Non-anginal Pain,1\n", "66,Female,230,150,92,Current,None,2,No,Yes,No,8,111,No,Atypical Angina,1\n", "46,Male,192,139,61,Former,None,0,Yes,No,Yes,2,174,Yes,Asymptomatic,0\n", "72,Female,306,137,72,Current,Moderate,0,Yes,Yes,No,2,122,No,Asymptomatic,1\n", "67,Female,216,137,80,Former,Heavy,0,Yes,No,Yes,8,135,No,Asymptomatic,1\n", "65,Male,189,143,70,Current,None,2,Yes,No,No,5,150,Yes,Non-anginal Pain,0\n", "37,Female,162,126,79,Current,Moderate,1,Yes,Yes,Yes,8,93,No,Non-anginal Pain,0\n", "28,Female,207,162,63,Former,Moderate,4,Yes,No,Yes,3,109,Yes,Non-anginal Pain,0\n", "70,Female,271,159,82,Former,Moderate,8,Yes,No,No,7,87,Yes,Typical Angina,1\n", "36,Female,209,106,84,Former,Heavy,0,No,Yes,Yes,3,137,Yes,Typical Angina,0\n", "51,Male,251,170,71,Current,Heavy,3,No,Yes,No,4,111,No,Non-anginal Pain,1\n", "74,Male,325,95,87,Never,None,3,Yes,No,Yes,10,162,No,Atypical Angina,1\n", "41,Male,268,95,70,Current,Heavy,9,No,No,No,4,176,No,Non-anginal Pain,0\n", "41,Male,286,128,97,Never,None,6,Yes,Yes,No,9,78,No,Non-anginal Pain,0\n", "69,Female,167,157,83,Former,Moderate,4,Yes,Yes,No,2,160,No,Asymptomatic,0\n", "54,Female,348,129,97,Current,Heavy,4,Yes,No,No,9,187,Yes,Atypical Angina,1\n", "52,Female,330,125,68,Current,Moderate,4,No,No,Yes,4,154,No,Non-anginal Pain,1\n", "38,Male,264,120,89,Former,Heavy,5,Yes,No,No,10,172,No,Atypical Angina,0\n", "25,Female,287,148,82,Former,None,8,No,No,No,1,96,Yes,Non-anginal Pain,0\n", "52,Male,207,95,84,Current,Moderate,2,No,No,No,8,180,Yes,Asymptomatic,1\n", "53,Male,252,107,91,Former,Moderate,8,No,No,No,1,124,Yes,Atypical Angina,1\n", "55,Female,232,91,93,Never,None,6,No,No,Yes,10,152,No,Typical Angina,1\n", "61,Male,261,156,97,Former,Heavy,2,Yes,Yes,Yes,7,154,Yes,Atypical Angina,1\n", "30,Male,264,135,99,Former,None,7,Yes,Yes,Yes,9,99,Yes,Typical Angina,0\n", "48,Female,257,171,89,Never,Heavy,2,No,Yes,Yes,3,141,No,Asymptomatic,0\n", "35,Female,339,165,68,Never,None,9,No,No,Yes,5,99,Yes,Asymptomatic,0\n", "42,Male,166,119,97,Never,Moderate,0,No,No,No,10,109,No,Typical Angina,0\n", "56,Female,339,148,60,Never,None,8,Yes,Yes,Yes,3,88,Yes,Asymptomatic,1\n", "47,Male,310,97,72,Current,Heavy,7,No,Yes,Yes,6,96,Yes,Asymptomatic,0\n", "71,Male,192,148,90,Current,None,1,Yes,Yes,No,1,156,No,Asymptomatic,0\n", "68,Female,282,125,92,Current,Heavy,5,No,No,Yes,3,172,No,Typical Angina,1\n", "59,Female,180,127,70,Never,Moderate,4,Yes,Yes,No,2,122,No,Non-anginal Pain,0\n", "25,Female,162,122,77,Current,Heavy,0,No,No,No,1,137,Yes,Non-anginal Pain,0\n", "44,Male,331,169,94,Current,Heavy,3,No,No,No,8,177,No,Asymptomatic,0\n", "64,Male,348,174,64,Current,Moderate,6,Yes,No,Yes,6,170,No,Non-anginal Pain,1\n", "45,Male,307,161,90,Former,Moderate,7,No,No,Yes,3,134,No,Asymptomatic,0\n", "33,Female,271,159,62,Former,None,1,Yes,No,Yes,2,176,Yes,Atypical Angina,0\n", "65,Male,247,140,89,Never,Moderate,8,Yes,Yes,No,8,183,Yes,Typical Angina,1\n", "79,Male,243,121,80,Never,Heavy,1,Yes,Yes,No,3,158,No,Atypical Angina,1\n", "52,Female,290,114,63,Current,None,5,Yes,Yes,No,1,151,No,Typical Angina,1\n", "61,Male,209,144,70,Current,Heavy,5,Yes,Yes,No,8,86,No,Typical Angina,1\n", "78,Male,223,132,68,Current,Heavy,7,Yes,Yes,No,1,82,Yes,Non-anginal Pain,1\n", "69,Female,166,157,92,Former,None,3,No,No,No,2,170,Yes,Atypical Angina,0\n", "28,Female,155,95,67,Former,None,6,No,No,No,2,105,Yes,Asymptomatic,0\n", "77,Female,161,136,83,Current,None,2,No,No,No,5,155,Yes,Non-anginal Pain,0\n", "76,Male,241,101,67,Former,None,4,No,No,Yes,10,74,Yes,Typical Angina,1\n", "30,Female,154,175,87,Former,Heavy,7,Yes,No,No,7,97,No,Typical Angina,0\n", "57,Female,203,156,98,Never,Moderate,7,No,No,No,6,143,Yes,Atypical Angina,1\n", "62,Female,205,127,78,Never,Heavy,3,Yes,Yes,Yes,4,127,No,Typical Angina,1\n", "53,Male,179,162,76,Never,Moderate,1,No,No,No,9,163,Yes,Typical Angina,0\n", "26,Male,264,122,62,Former,Moderate,5,Yes,No,Yes,10,176,No,Non-anginal Pain,0\n", "46,Female,180,109,76,Never,Heavy,6,No,Yes,No,2,176,No,Non-anginal Pain,0\n", "61,Female,184,119,77,Never,None,8,No,Yes,Yes,10,92,Yes,Atypical Angina,0\n", "50,Male,291,172,94,Current,None,5,No,Yes,Yes,6,176,No,Non-anginal Pain,0\n", "51,Female,210,139,81,Current,None,0,Yes,Yes,No,8,145,No,Typical Angina,1\n", "38,Male,215,138,61,Former,Heavy,1,No,Yes,Yes,10,198,Yes,Atypical Angina,0\n", "38,Female,336,97,71,Current,None,8,No,Yes,Yes,10,163,No,Asymptomatic,0\n", "54,Female,242,145,75,Current,None,3,Yes,No,No,8,159,No,Asymptomatic,1\n", "32,Female,320,150,93,Never,Moderate,5,No,Yes,No,10,148,No,Non-anginal Pain,0\n", "46,Male,290,149,77,Never,Moderate,6,Yes,Yes,No,10,157,No,Non-anginal Pain,0\n", "63,Female,262,117,99,Current,Heavy,9,Yes,No,No,2,92,No,Asymptomatic,1\n", "61,Female,284,163,95,Former,Heavy,1,Yes,No,No,10,171,Yes,Typical Angina,1\n", "43,Male,249,117,87,Former,Heavy,7,Yes,No,Yes,1,73,Yes,Non-anginal Pain,0\n", "61,Female,248,100,91,Former,Moderate,3,Yes,Yes,No,3,110,No,Atypical Angina,1\n", "35,Male,331,103,82,Former,Heavy,1,Yes,No,No,2,103,No,Asymptomatic,0\n", "56,Male,226,136,95,Never,None,3,Yes,Yes,No,5,115,No,Typical Angina,1\n", "50,Male,232,158,87,Former,Heavy,0,Yes,Yes,No,4,110,No,Non-anginal Pain,0\n", "51,Female,236,157,81,Current,None,9,Yes,No,No,7,183,No,Atypical Angina,1\n", "64,Male,317,124,94,Former,Heavy,4,No,Yes,No,3,193,No,Atypical Angina,1\n", "47,Female,230,135,97,Former,Heavy,0,No,Yes,Yes,7,99,Yes,Asymptomatic,0\n", "61,Female,311,128,87,Former,None,7,No,No,Yes,1,74,Yes,Asymptomatic,1\n", "68,Male,307,124,82,Current,Heavy,4,No,Yes,No,4,132,Yes,Atypical Angina,1\n", "64,Female,174,115,98,Current,None,8,Yes,No,No,10,110,Yes,Atypical Angina,0\n", "37,Female,226,173,86,Current,Moderate,7,No,Yes,No,2,139,No,Asymptomatic,0\n", "72,Male,210,166,75,Current,Moderate,6,Yes,No,Yes,6,132,No,Asymptomatic,1\n", "27,Male,164,114,98,Never,None,2,Yes,No,No,7,96,Yes,Typical Angina,0\n", "79,Male,296,98,98,Current,Moderate,2,No,Yes,No,2,160,No,Atypical Angina,1\n", "56,Female,278,96,69,Never,Heavy,9,No,Yes,Yes,9,143,No,Atypical Angina,1\n", "54,Male,196,162,89,Never,None,9,Yes,No,No,10,93,Yes,Typical Angina,0\n", "75,Male,298,179,64,Former,Heavy,4,Yes,Yes,No,10,105,Yes,Typical Angina,1\n", "32,Male,272,126,82,Never,Heavy,1,No,Yes,No,9,140,Yes,Typical Angina,0\n", "39,Female,328,173,75,Former,Moderate,0,No,No,Yes,5,72,Yes,Asymptomatic,0\n", "62,Male,176,155,90,Never,None,3,No,Yes,No,3,147,No,Atypical Angina,0\n", "40,Male,327,97,87,Never,Heavy,7,Yes,No,No,10,161,Yes,Atypical Angina,0\n", "78,Female,217,178,98,Never,None,3,No,Yes,No,4,144,Yes,Asymptomatic,1\n", "47,Male,222,128,83,Former,Heavy,0,Yes,Yes,Yes,1,103,Yes,Typical Angina,0\n", "67,Male,328,132,89,Former,Heavy,6,No,Yes,No,5,116,Yes,Asymptomatic,1\n", "68,Female,185,158,78,Never,Moderate,0,No,No,Yes,9,90,Yes,Non-anginal Pain,0\n", "42,Male,201,158,61,Current,None,6,Yes,Yes,No,3,91,Yes,Atypical Angina,0\n", "29,Male,237,110,64,Former,None,7,Yes,No,Yes,5,183,Yes,Typical Angina,0\n", "59,Male,175,152,76,Current,Heavy,9,Yes,Yes,No,8,104,No,Non-anginal Pain,0\n", "51,Female,272,144,86,Current,Moderate,8,Yes,Yes,Yes,3,79,Yes,Non-anginal Pain,1\n", "27,Male,319,146,63,Former,Heavy,6,Yes,No,Yes,8,85,Yes,Typical Angina,0\n", "41,Female,251,106,70,Former,None,2,Yes,No,No,8,150,No,Asymptomatic,0\n", "25,Male,224,119,79,Never,Heavy,3,Yes,Yes,Yes,9,173,Yes,Atypical Angina,0\n", "48,Male,164,100,81,Never,Heavy,8,Yes,Yes,No,10,93,Yes,Asymptomatic,0\n", "30,Male,294,128,76,Former,Heavy,0,No,No,Yes,4,135,Yes,Typical Angina,0\n", "36,Female,238,91,61,Never,None,0,No,Yes,No,3,174,No,Atypical Angina,0\n", "72,Male,348,110,69,Never,None,7,No,No,No,3,77,Yes,Asymptomatic,1\n", "53,Male,270,135,70,Former,Heavy,0,Yes,No,No,3,144,Yes,Typical Angina,1\n", "64,Male,195,105,76,Current,None,7,Yes,Yes,Yes,5,142,Yes,Typical Angina,0\n", "54,Female,184,138,66,Never,Moderate,9,Yes,No,Yes,1,89,Yes,Typical Angina,0\n", "30,Female,281,95,80,Former,None,7,Yes,No,No,1,178,Yes,Atypical Angina,0\n", "76,Male,199,139,75,Former,None,4,Yes,No,No,6,175,Yes,Atypical Angina,0\n", "45,Female,345,174,74,Current,None,7,Yes,No,No,10,154,No,Atypical Angina,0\n", "42,Male,234,155,72,Former,Moderate,8,No,No,Yes,4,105,No,Typical Angina,0\n", "26,Male,241,142,77,Never,Moderate,5,No,Yes,No,2,118,No,Atypical Angina,0\n", "48,Female,208,178,75,Former,Heavy,9,No,No,No,10,140,Yes,Typical Angina,0\n", "51,Female,196,164,87,Never,Moderate,2,No,Yes,Yes,3,158,No,Asymptomatic,0\n", "74,Female,170,126,99,Former,Heavy,7,No,No,No,10,105,Yes,Atypical Angina,0\n", "57,Female,248,112,90,Never,Moderate,1,No,Yes,No,2,90,No,Atypical Angina,1\n", "74,Female,208,117,62,Former,None,5,Yes,No,Yes,3,151,Yes,Typical Angina,1\n", "56,Male,287,177,63,Former,Moderate,9,No,No,No,10,103,No,Atypical Angina,1\n", "65,Female,256,171,67,Never,Moderate,8,No,No,No,6,85,Yes,Non-anginal Pain,1\n", "76,Male,153,145,77,Never,Heavy,0,Yes,No,No,6,172,No,Asymptomatic,0\n", "61,Male,183,167,78,Former,Heavy,9,Yes,Yes,No,2,108,No,Typical Angina,0\n", "76,Female,347,116,69,Current,Heavy,5,Yes,Yes,No,6,149,Yes,Asymptomatic,1\n", "67,Male,221,115,69,Former,Moderate,6,No,Yes,Yes,2,126,No,Non-anginal Pain,1\n", "39,Female,200,98,77,Former,Moderate,0,Yes,Yes,Yes,6,101,No,Non-anginal Pain,0\n", "51,Male,277,153,99,Current,None,0,Yes,No,No,8,163,Yes,Atypical Angina,1\n", "64,Male,250,98,79,Former,None,0,Yes,No,No,4,105,Yes,Typical Angina,1\n", "33,Female,302,121,69,Former,Moderate,1,No,Yes,Yes,4,128,No,Atypical Angina,0\n", "40,Female,169,96,68,Current,Heavy,8,Yes,No,Yes,4,111,No,Asymptomatic,0\n", "75,Female,307,108,65,Never,Heavy,7,No,No,Yes,7,167,No,Asymptomatic,1\n", "27,Female,248,170,60,Current,Moderate,0,No,Yes,No,3,184,No,Asymptomatic,0\n", "77,Female,329,156,65,Former,Heavy,8,No,No,No,5,170,Yes,Non-anginal Pain,1\n", "27,Female,266,171,96,Never,None,2,Yes,No,No,9,179,No,Non-anginal Pain,0\n", "68,Male,198,110,86,Former,Moderate,6,Yes,Yes,No,9,158,No,Asymptomatic,0\n", "52,Male,339,169,88,Never,None,8,Yes,No,No,3,157,No,Atypical Angina,1\n", "73,Male,286,138,66,Current,Heavy,4,Yes,No,Yes,3,103,No,Atypical Angina,1\n", "49,Male,330,158,67,Former,Moderate,9,No,Yes,Yes,2,144,No,Atypical Angina,0\n", "56,Male,261,153,78,Never,None,6,No,No,No,8,197,No,Typical Angina,1\n", "31,Female,309,119,83,Never,None,4,No,Yes,No,8,109,Yes,Non-anginal Pain,0\n", "53,Male,308,178,80,Never,Moderate,5,Yes,Yes,No,9,186,No,Atypical Angina,1\n", "55,Male,174,105,76,Current,Heavy,1,Yes,No,Yes,4,70,No,Atypical Angina,0\n", "42,Male,283,106,99,Current,Heavy,3,Yes,No,Yes,3,192,No,Non-anginal Pain,0\n", "38,Male,254,95,60,Former,Heavy,7,Yes,Yes,No,9,171,No,Non-anginal Pain,0\n", "58,Male,277,153,91,Never,Heavy,0,Yes,Yes,No,4,154,Yes,Non-anginal Pain,1\n", "75,Male,306,114,99,Current,Heavy,1,No,Yes,Yes,5,186,No,Non-anginal Pain,1\n", "68,Female,249,98,92,Former,None,0,No,Yes,No,8,108,Yes,Non-anginal Pain,1\n", "66,Female,343,147,94,Current,Heavy,5,Yes,Yes,Yes,4,103,No,Atypical Angina,1\n", "68,Female,292,167,79,Current,None,1,Yes,No,No,2,134,Yes,Non-anginal Pain,1\n", "32,Male,181,130,72,Former,Moderate,8,Yes,No,No,10,143,No,Atypical Angina,0\n", "35,Female,325,96,70,Current,Heavy,9,No,No,No,9,91,Yes,Asymptomatic,0\n", "41,Male,231,103,63,Former,None,8,No,No,No,9,180,Yes,Typical Angina,0\n", "36,Male,275,168,92,Never,None,5,Yes,Yes,Yes,6,149,No,Asymptomatic,0\n", "48,Male,329,162,70,Current,Heavy,5,No,No,No,2,179,Yes,Asymptomatic,0\n", "28,Male,277,174,71,Former,Heavy,3,Yes,No,Yes,9,146,Yes,Non-anginal Pain,0\n", "26,Female,153,124,63,Never,Heavy,4,No,Yes,No,1,175,Yes,Non-anginal Pain,0\n", "54,Female,238,102,63,Former,Moderate,9,Yes,Yes,No,1,85,No,Typical Angina,1\n", "63,Male,328,119,83,Never,Moderate,5,Yes,No,Yes,1,167,No,Atypical Angina,1\n", "46,Male,168,140,99,Former,Moderate,2,Yes,No,Yes,1,98,No,Asymptomatic,0\n", "53,Male,265,93,82,Current,Heavy,2,No,No,No,7,113,Yes,Asymptomatic,1\n", "49,Female,250,133,75,Current,None,5,Yes,No,Yes,1,104,Yes,Typical Angina,0\n", "26,Female,187,179,97,Never,Moderate,5,No,Yes,Yes,3,84,Yes,Atypical Angina,0\n", "68,Male,323,127,83,Never,Heavy,5,Yes,No,No,6,161,No,Asymptomatic,1\n", "73,Female,184,104,60,Former,Moderate,1,Yes,No,Yes,7,196,No,Non-anginal Pain,0\n", "78,Male,156,148,66,Current,None,9,Yes,Yes,No,6,123,No,Non-anginal Pain,0\n", "73,Female,235,146,91,Never,Heavy,3,No,No,Yes,5,111,No,Asymptomatic,1\n", "58,Female,328,148,97,Never,Moderate,3,No,Yes,No,9,144,No,Asymptomatic,1\n", "66,Male,300,98,65,Never,Moderate,7,No,No,No,6,94,No,Non-anginal Pain,1\n", "58,Male,344,163,92,Current,Heavy,0,Yes,No,No,5,99,Yes,Non-anginal Pain,1\n", "40,Female,156,90,91,Never,None,9,Yes,No,No,4,71,Yes,Typical Angina,0\n", "71,Male,177,147,79,Never,Moderate,6,Yes,No,Yes,8,73,No,Non-anginal Pain,0\n", "57,Male,267,105,75,Current,None,6,No,No,No,3,197,No,Asymptomatic,1\n", "46,Female,249,109,89,Former,None,6,Yes,No,No,8,146,Yes,Typical Angina,0\n", "75,Male,178,125,71,Former,Moderate,3,No,No,Yes,9,149,Yes,Asymptomatic,0\n", "68,Male,159,148,82,Never,Heavy,8,No,No,Yes,3,159,Yes,Non-anginal Pain,0\n", "63,Female,300,166,78,Never,Moderate,3,Yes,No,Yes,9,142,No,Atypical Angina,1\n", "39,Male,209,147,74,Never,None,4,Yes,No,No,5,193,Yes,Asymptomatic,0\n", "26,Female,213,167,76,Current,None,1,Yes,Yes,Yes,5,127,No,Asymptomatic,0\n", "42,Female,237,115,82,Never,Heavy,9,Yes,No,Yes,3,181,No,Asymptomatic,0\n", "58,Male,317,174,65,Never,Heavy,8,No,No,No,6,173,Yes,Atypical Angina,1\n", "32,Female,255,164,85,Former,Moderate,2,No,No,No,8,193,No,Typical Angina,0\n", "61,Male,297,170,79,Current,Heavy,9,Yes,No,No,5,189,Yes,Non-anginal Pain,1\n", "47,Male,285,91,70,Current,None,3,Yes,Yes,No,3,167,No,Non-anginal Pain,0\n", "70,Male,167,125,63,Current,Heavy,7,No,No,No,9,145,No,Non-anginal Pain,0\n", "79,Male,335,109,95,Current,Moderate,1,Yes,No,Yes,2,170,No,Asymptomatic,1\n", "64,Male,200,97,91,Former,Heavy,0,No,No,Yes,4,189,No,Asymptomatic,0\n", "40,Male,238,101,94,Never,None,7,Yes,No,No,1,195,Yes,Atypical Angina,0\n", "48,Male,198,144,77,Never,None,9,Yes,Yes,No,7,184,Yes,Atypical Angina,0\n", "26,Male,252,96,64,Current,Moderate,4,No,No,Yes,10,105,Yes,Typical Angina,0\n", "70,Female,238,117,80,Current,None,9,Yes,Yes,No,7,161,Yes,Typical Angina,1\n", "74,Female,295,151,62,Never,Heavy,8,Yes,No,No,2,170,Yes,Typical Angina,1\n", "25,Male,241,132,92,Never,Heavy,1,No,Yes,Yes,6,79,Yes,Asymptomatic,0\n", "36,Female,158,126,93,Current,Moderate,0,Yes,No,Yes,3,196,No,Asymptomatic,0\n", "52,Male,229,139,63,Never,Heavy,2,Yes,No,Yes,4,90,No,Typical Angina,1\n", "40,Female,176,131,89,Former,None,0,No,Yes,No,4,101,No,Asymptomatic,0\n", "32,Female,349,148,65,Former,Moderate,3,Yes,Yes,Yes,9,88,Yes,Atypical Angina,0\n", "33,Male,315,91,80,Current,None,5,No,Yes,No,2,138,No,Typical Angina,0\n", "26,Male,326,91,69,Former,Moderate,4,No,No,Yes,6,158,Yes,Atypical Angina,0\n", "76,Male,193,100,82,Former,Heavy,4,No,Yes,Yes,1,185,No,Atypical Angina,0\n", "79,Female,242,176,72,Current,None,5,Yes,Yes,Yes,10,84,No,Non-anginal Pain,1\n", "71,Female,175,143,75,Current,Moderate,1,Yes,Yes,No,9,115,Yes,Atypical Angina,0\n", "36,Female,199,163,73,Former,Heavy,7,No,No,Yes,1,129,Yes,Non-anginal Pain,0\n", "46,Male,262,90,69,Current,Heavy,9,No,Yes,Yes,3,167,Yes,Asymptomatic,0\n", "42,Male,201,145,81,Current,Moderate,0,No,No,Yes,9,109,Yes,Typical Angina,0\n", "27,Male,191,95,95,Never,None,5,Yes,Yes,No,7,187,Yes,Typical Angina,0\n", "38,Male,296,97,80,Current,Heavy,1,No,Yes,Yes,5,197,Yes,Non-anginal Pain,0\n", "62,Female,341,91,85,Never,Heavy,1,No,No,Yes,6,106,Yes,Asymptomatic,1\n", "69,Female,228,157,77,Never,Moderate,2,Yes,Yes,No,3,86,No,Typical Angina,1\n", "34,Female,320,140,97,Former,None,2,No,No,Yes,8,120,Yes,Atypical Angina,0\n", "60,Male,281,133,83,Never,None,4,Yes,Yes,Yes,2,175,No,Typical Angina,1\n", "34,Female,274,177,86,Former,None,9,Yes,Yes,Yes,2,95,No,Atypical Angina,0\n", "69,Male,189,167,96,Current,Moderate,8,Yes,Yes,Yes,2,108,Yes,Non-anginal Pain,0\n", "31,Female,267,157,75,Former,Heavy,9,Yes,Yes,No,3,74,Yes,Non-anginal Pain,0\n", "44,Female,209,145,93,Never,None,9,No,No,No,3,195,No,Typical Angina,0\n", "53,Male,295,110,89,Former,Heavy,1,Yes,No,Yes,10,71,No,Non-anginal Pain,1\n", "63,Male,250,154,69,Never,None,3,Yes,No,No,7,170,Yes,Asymptomatic,1\n", "50,Male,308,166,97,Current,None,7,No,No,No,2,116,Yes,Typical Angina,0\n", "33,Female,231,117,70,Current,None,6,Yes,No,No,8,122,Yes,Atypical Angina,0\n", "49,Female,210,99,79,Never,None,3,Yes,Yes,Yes,4,106,No,Typical Angina,0\n", "29,Female,238,172,64,Current,Heavy,6,Yes,No,Yes,5,195,No,Typical Angina,0\n", "49,Female,168,128,79,Never,Moderate,5,No,No,Yes,4,176,No,Non-anginal Pain,0\n", "51,Female,266,102,86,Never,None,2,Yes,Yes,Yes,2,167,Yes,Atypical Angina,1\n", "77,Male,214,100,96,Current,Heavy,8,No,No,No,5,186,No,Asymptomatic,1\n", "60,Male,207,160,83,Current,None,4,No,Yes,No,4,106,No,Asymptomatic,1\n", "71,Female,332,145,75,Current,Moderate,9,Yes,No,Yes,1,157,Yes,Non-anginal Pain,1\n", "77,Male,212,161,98,Former,Moderate,7,Yes,No,Yes,1,128,Yes,Non-anginal Pain,1\n", "54,Male,311,130,62,Current,None,5,Yes,No,No,9,104,No,Typical Angina,1\n", "75,Female,318,179,87,Current,Heavy,2,Yes,No,Yes,7,104,Yes,Atypical Angina,1\n", "26,Female,280,144,60,Never,Heavy,7,Yes,No,No,6,194,No,Atypical Angina,0\n", "62,Male,171,139,72,Former,Heavy,4,Yes,No,No,6,79,No,Non-anginal Pain,0\n", "25,Female,217,117,92,Current,None,0,Yes,Yes,No,4,148,Yes,Atypical Angina,0\n", "65,Female,337,152,81,Former,None,8,No,Yes,No,7,110,No,Typical Angina,1\n", "51,Female,273,163,94,Never,Heavy,9,Yes,No,Yes,9,158,No,Typical Angina,1\n", "73,Female,347,134,97,Former,None,5,No,Yes,No,3,186,No,Asymptomatic,1\n", "68,Female,306,179,77,Current,Heavy,4,No,No,Yes,7,184,Yes,Atypical Angina,1\n", "42,Female,278,158,77,Never,Heavy,4,No,Yes,Yes,4,140,Yes,Typical Angina,0\n", "31,Female,211,127,68,Former,Heavy,1,No,Yes,Yes,4,139,No,Asymptomatic,0\n", "41,Male,219,136,75,Never,Heavy,1,Yes,Yes,Yes,5,198,Yes,Typical Angina,0\n", "51,Female,223,111,64,Former,None,4,Yes,Yes,Yes,9,95,Yes,Asymptomatic,1\n", "75,Female,216,123,79,Former,None,1,No,Yes,No,9,188,Yes,Atypical Angina,1\n", "65,Female,197,167,87,Former,Moderate,8,No,Yes,Yes,1,70,No,Asymptomatic,0\n", "44,Male,197,135,85,Former,Heavy,2,Yes,No,Yes,4,111,Yes,Asymptomatic,0\n", "69,Female,330,110,70,Never,Moderate,1,Yes,No,No,4,178,No,Asymptomatic,1\n", "32,Male,283,169,84,Never,Heavy,8,No,No,No,8,177,No,Atypical Angina,0\n", "71,Female,162,102,89,Former,Moderate,1,Yes,Yes,Yes,3,162,Yes,Atypical Angina,0\n", "48,Male,317,132,96,Never,Moderate,8,No,Yes,No,6,164,No,Asymptomatic,0\n", "55,Male,291,158,87,Current,None,8,No,No,No,7,102,Yes,Typical Angina,1\n", "49,Male,246,135,95,Never,Heavy,2,Yes,No,No,7,108,No,Asymptomatic,0\n", "26,Male,261,176,83,Former,Heavy,3,No,No,No,5,139,No,Non-anginal Pain,0\n", "54,Female,201,112,87,Never,None,7,Yes,Yes,No,5,109,Yes,Asymptomatic,1\n", "34,Male,275,112,73,Never,None,5,No,No,Yes,3,168,Yes,Typical Angina,0\n", "60,Male,297,144,84,Current,None,2,Yes,Yes,Yes,2,79,Yes,Non-anginal Pain,1\n", "35,Male,171,172,70,Former,Heavy,7,Yes,Yes,No,2,107,Yes,Typical Angina,0\n", "48,Male,242,135,86,Former,Moderate,7,Yes,Yes,No,7,129,Yes,Typical Angina,0\n", "27,Male,322,122,77,Former,Heavy,8,Yes,Yes,Yes,6,74,No,Atypical Angina,0\n", "35,Male,179,104,68,Former,Heavy,2,No,Yes,No,4,186,No,Non-anginal Pain,0\n", "54,Female,297,169,88,Current,Heavy,1,No,No,No,5,148,No,Asymptomatic,1\n", "74,Male,299,133,95,Former,None,3,Yes,Yes,No,9,110,No,Atypical Angina,1\n", "65,Female,171,107,92,Former,Moderate,8,No,Yes,Yes,4,169,No,Atypical Angina,0\n", "37,Female,296,175,85,Never,Moderate,9,No,Yes,No,10,72,Yes,Typical Angina,0\n", "67,Female,244,124,60,Former,Moderate,3,No,Yes,Yes,3,166,No,Asymptomatic,1\n", "66,Male,333,131,70,Never,Heavy,0,Yes,No,No,4,106,Yes,Asymptomatic,1\n", "35,Male,336,125,81,Never,Moderate,0,No,No,No,4,149,Yes,Typical Angina,0\n", "59,Female,161,113,85,Current,Heavy,5,Yes,Yes,No,5,78,Yes,Non-anginal Pain,0\n", "37,Male,307,91,90,Never,Moderate,6,No,Yes,Yes,2,127,No,Asymptomatic,0\n", "37,Male,337,134,83,Current,Heavy,8,Yes,No,Yes,3,152,No,Asymptomatic,0\n", "43,Male,212,141,86,Never,Heavy,0,No,Yes,Yes,4,128,Yes,Asymptomatic,0\n", "38,Female,198,161,94,Never,Heavy,8,No,Yes,No,3,167,No,Typical Angina,0\n", "61,Male,186,176,99,Former,Heavy,4,Yes,No,No,9,118,No,Non-anginal Pain,0\n", "25,Female,249,95,99,Former,None,3,No,No,No,2,93,No,Typical Angina,0\n", "49,Female,342,154,92,Current,Moderate,4,Yes,Yes,No,7,151,No,Atypical Angina,0\n", "52,Male,319,123,96,Never,Heavy,2,No,No,Yes,8,117,No,Non-anginal Pain,1\n", "33,Female,175,97,73,Current,Heavy,5,No,No,Yes,1,114,No,Typical Angina,0\n", "61,Female,223,177,74,Former,Heavy,1,Yes,Yes,Yes,7,198,Yes,Atypical Angina,1\n", "75,Female,246,142,66,Never,Moderate,9,Yes,No,Yes,7,103,Yes,Non-anginal Pain,1\n", "34,Male,260,134,71,Never,None,2,Yes,Yes,No,3,135,Yes,Typical Angina,0\n", "76,Female,159,96,65,Never,Moderate,1,No,No,No,2,142,No,Non-anginal Pain,0\n", "49,Male,166,168,68,Former,Heavy,0,Yes,Yes,Yes,2,118,No,Non-anginal Pain,0\n", "41,Female,189,163,90,Former,None,8,Yes,Yes,Yes,6,116,No,Atypical Angina,0\n", "37,Male,232,169,86,Current,Heavy,2,No,No,No,2,168,Yes,Non-anginal Pain,0\n", "58,Male,162,106,74,Never,Moderate,6,No,Yes,No,7,194,Yes,Non-anginal Pain,0\n", "41,Female,289,125,76,Current,Moderate,9,No,Yes,Yes,5,110,No,Non-anginal Pain,0\n", "64,Female,285,169,76,Never,None,0,Yes,No,Yes,9,114,No,Typical Angina,1\n", "70,Male,205,111,63,Current,None,6,No,Yes,Yes,1,135,Yes,Non-anginal Pain,1\n", "32,Female,201,142,65,Never,None,2,No,No,Yes,9,72,Yes,Non-anginal Pain,0\n", "36,Female,278,114,90,Current,Moderate,6,Yes,Yes,Yes,3,123,Yes,Non-anginal Pain,0\n", "70,Male,173,93,81,Former,Moderate,5,Yes,Yes,Yes,10,147,No,Typical Angina,0\n", "75,Female,249,177,97,Never,Moderate,4,Yes,Yes,No,4,160,No,Atypical Angina,1\n", "76,Female,171,126,61,Former,None,2,No,No,Yes,6,165,Yes,Typical Angina,0\n", "57,Male,317,169,76,Current,None,1,Yes,No,Yes,7,157,Yes,Non-anginal Pain,1\n", "43,Male,231,107,94,Current,Heavy,5,Yes,Yes,No,10,120,Yes,Non-anginal Pain,0\n", "37,Male,300,164,80,Former,Moderate,3,No,No,No,4,153,No,Atypical Angina,0\n", "51,Male,324,163,98,Former,Heavy,4,Yes,Yes,Yes,6,116,No,Non-anginal Pain,1\n", "34,Male,238,125,98,Former,Heavy,7,Yes,No,Yes,8,168,Yes,Atypical Angina,0\n", "63,Male,210,136,86,Former,None,8,No,No,No,2,167,No,Non-anginal Pain,1\n", "63,Female,167,133,94,Former,Moderate,9,No,Yes,No,2,87,Yes,Atypical Angina,0\n", "27,Male,344,114,78,Former,Heavy,1,Yes,No,Yes,9,154,No,Atypical Angina,0\n", "41,Male,340,117,72,Former,Moderate,9,Yes,No,Yes,10,191,No,Asymptomatic,0\n", "72,Female,328,140,96,Current,None,0,Yes,Yes,Yes,6,98,No,Typical Angina,1\n", "71,Male,151,171,69,Never,None,5,No,No,Yes,9,123,No,Typical Angina,0\n", "65,Male,281,126,84,Never,Moderate,8,Yes,Yes,No,4,136,Yes,Non-anginal Pain,1\n", "51,Male,290,97,89,Current,None,8,Yes,Yes,Yes,10,135,Yes,Non-anginal Pain,1\n", "55,Male,166,113,84,Former,Heavy,4,Yes,Yes,No,3,169,No,Typical Angina,0\n", "44,Female,320,99,82,Never,Heavy,5,No,No,No,8,101,No,Atypical Angina,0\n", "39,Male,347,154,62,Current,Moderate,0,No,No,No,4,77,No,Asymptomatic,0\n", "40,Female,309,166,72,Current,Moderate,6,Yes,No,Yes,6,165,No,Asymptomatic,0\n", "70,Female,183,158,76,Never,Moderate,7,No,Yes,No,1,135,Yes,Asymptomatic,0\n", "43,Male,168,157,76,Current,Heavy,7,Yes,Yes,No,9,116,Yes,Atypical Angina,0\n", "27,Male,211,140,78,Former,Moderate,8,Yes,No,Yes,3,95,No,Typical Angina,0\n", "43,Female,183,94,72,Current,None,5,Yes,Yes,Yes,9,80,Yes,Atypical Angina,0\n", "35,Male,175,147,96,Former,None,9,Yes,No,Yes,8,169,Yes,Non-anginal Pain,0\n", "42,Male,328,114,60,Former,Moderate,7,No,No,Yes,6,171,No,Non-anginal Pain,0\n", "59,Female,240,171,62,Never,None,2,Yes,No,No,10,137,Yes,Typical Angina,1\n", "55,Male,183,142,92,Former,None,3,Yes,Yes,No,10,133,No,Non-anginal Pain,0\n", "41,Male,161,169,88,Former,Moderate,4,Yes,No,Yes,4,120,No,Atypical Angina,0\n", "49,Male,326,157,63,Never,Heavy,3,Yes,Yes,Yes,10,77,No,Asymptomatic,0\n", "39,Male,333,154,77,Former,Moderate,3,Yes,No,No,7,137,Yes,Asymptomatic,0\n", "69,Male,278,172,96,Never,Heavy,0,Yes,No,Yes,2,104,Yes,Non-anginal Pain,1\n", "59,Female,328,154,93,Current,Heavy,4,Yes,Yes,Yes,6,119,Yes,Typical Angina,1\n", "76,Female,167,176,97,Never,Heavy,8,No,No,No,6,71,Yes,Typical Angina,0\n", "63,Male,255,92,96,Current,Moderate,3,Yes,No,Yes,5,121,Yes,Asymptomatic,1\n", "29,Female,348,159,65,Former,None,0,Yes,Yes,Yes,4,142,Yes,Asymptomatic,0\n", "27,Male,224,135,77,Former,Heavy,5,No,Yes,Yes,7,135,No,Asymptomatic,0\n", "69,Male,168,178,82,Current,Heavy,2,No,Yes,Yes,10,183,No,Asymptomatic,0\n", "39,Male,262,109,95,Current,None,4,Yes,Yes,Yes,1,83,No,Non-anginal Pain,0\n", "60,Female,163,131,67,Current,Heavy,5,Yes,No,Yes,3,168,Yes,Non-anginal Pain,0\n", "76,Male,269,156,69,Never,None,9,Yes,Yes,No,2,189,No,Typical Angina,1\n", "65,Female,220,131,62,Current,Heavy,4,No,Yes,Yes,2,179,No,Non-anginal Pain,1\n", "55,Female,242,146,83,Former,Moderate,8,No,Yes,No,2,137,Yes,Asymptomatic,1\n", "48,Female,188,151,85,Never,None,4,No,No,Yes,5,142,No,Asymptomatic,0\n", "69,Female,188,179,97,Former,Moderate,3,Yes,No,Yes,1,169,Yes,Typical Angina,0\n", "37,Female,200,154,74,Never,None,8,No,No,Yes,7,135,Yes,Asymptomatic,0\n", "76,Male,227,104,68,Former,None,2,No,Yes,No,6,158,No,Asymptomatic,1\n", "56,Female,314,155,65,Former,Heavy,6,No,No,Yes,10,86,Yes,Asymptomatic,1\n", "76,Female,343,90,87,Current,Moderate,4,No,Yes,Yes,10,91,Yes,Atypical Angina,1\n", "46,Male,215,138,63,Never,Heavy,0,No,Yes,No,6,79,No,Non-anginal Pain,0\n", "40,Female,332,144,96,Never,None,1,No,Yes,No,2,99,No,Non-anginal Pain,0\n", "44,Male,272,162,81,Former,Moderate,9,Yes,Yes,Yes,10,105,Yes,Atypical Angina,0\n", "70,Female,197,136,82,Current,Heavy,8,No,Yes,Yes,7,140,Yes,Atypical Angina,0\n", "77,Male,257,177,85,Never,Heavy,8,Yes,Yes,No,2,94,No,Atypical Angina,1\n", "77,Female,306,151,95,Former,Heavy,7,No,Yes,Yes,9,192,No,Typical Angina,1\n", "53,Male,191,150,73,Current,Heavy,7,Yes,No,Yes,6,113,No,Non-anginal Pain,0\n", "44,Female,257,167,98,Current,Heavy,6,No,No,Yes,6,87,Yes,Non-anginal Pain,0\n", "71,Female,338,154,76,Current,Moderate,4,No,No,No,6,123,No,Asymptomatic,1\n", "49,Male,334,124,89,Former,Moderate,0,No,No,No,10,157,Yes,Typical Angina,0\n", "72,Female,331,178,62,Never,None,9,No,Yes,Yes,2,135,Yes,Atypical Angina,1\n", "37,Male,289,141,76,Never,None,7,No,No,No,10,83,No,Atypical Angina,0\n", "79,Female,331,117,93,Never,Moderate,9,Yes,Yes,No,1,108,Yes,Atypical Angina,1\n", "59,Male,339,172,98,Current,Moderate,1,No,Yes,Yes,3,126,No,Typical Angina,1\n", "26,Female,320,109,82,Never,None,2,Yes,Yes,No,8,154,No,Non-anginal Pain,0\n", "46,Male,328,99,85,Never,Moderate,7,No,No,Yes,7,115,Yes,Typical Angina,0\n", "73,Female,342,108,89,Never,Moderate,4,Yes,Yes,Yes,5,144,Yes,Typical Angina,1\n", "68,Male,286,137,63,Never,Heavy,0,Yes,Yes,No,3,143,No,Asymptomatic,1\n", "78,Male,171,104,64,Never,Moderate,6,Yes,No,No,3,93,Yes,Asymptomatic,0\n", "49,Male,177,118,60,Former,Moderate,3,Yes,No,Yes,6,94,Yes,Atypical Angina,0\n", "55,Female,328,122,90,Former,None,4,No,No,Yes,9,86,No,Asymptomatic,1\n", "34,Female,230,142,97,Never,Heavy,4,No,Yes,No,4,103,Yes,Atypical Angina,0\n", "73,Male,257,125,81,Current,Heavy,6,Yes,No,No,4,187,No,Atypical Angina,1\n", "36,Male,151,97,99,Current,Moderate,3,Yes,Yes,No,4,128,No,Non-anginal Pain,0\n", "30,Female,283,141,75,Current,None,8,No,No,No,5,169,Yes,Non-anginal Pain,0\n", "79,Female,324,102,94,Current,Moderate,4,Yes,No,Yes,6,141,Yes,Typical Angina,1\n", "44,Female,211,144,93,Current,Heavy,1,No,Yes,Yes,4,83,Yes,Asymptomatic,0\n", "48,Female,171,103,69,Never,None,4,No,No,Yes,8,72,Yes,Atypical Angina,0\n", "78,Female,199,130,98,Never,None,8,No,Yes,No,3,166,No,Atypical Angina,0\n", "71,Male,340,174,81,Former,Heavy,2,No,No,No,3,138,No,Asymptomatic,1\n", "30,Female,248,90,91,Former,Moderate,6,No,No,Yes,1,115,No,Typical Angina,0\n", "31,Male,177,145,65,Current,None,5,No,No,No,5,110,Yes,Non-anginal Pain,0\n", "56,Male,168,126,94,Former,None,0,Yes,No,No,9,171,No,Atypical Angina,0\n", "26,Female,168,128,85,Never,Heavy,8,Yes,Yes,Yes,3,191,No,Typical Angina,0\n", "55,Male,241,159,67,Former,Heavy,6,No,No,Yes,2,149,No,Non-anginal Pain,1\n", "37,Male,194,147,81,Never,None,0,No,No,Yes,8,173,No,Atypical Angina,0\n", "28,Male,199,144,84,Never,Moderate,0,Yes,Yes,No,8,159,No,Atypical Angina,0\n", "68,Female,336,160,77,Former,Heavy,7,No,No,Yes,10,137,No,Asymptomatic,1\n", "72,Female,320,167,96,Never,Heavy,4,No,No,Yes,8,116,Yes,Typical Angina,1\n", "50,Male,195,164,73,Current,Moderate,6,Yes,No,No,7,98,No,Non-anginal Pain,0\n", "46,Male,298,138,62,Former,None,3,No,Yes,Yes,8,188,No,Non-anginal Pain,0\n", "61,Female,166,171,91,Former,None,6,Yes,No,No,6,146,No,Non-anginal Pain,0\n", "48,Female,349,161,78,Never,Moderate,5,No,No,No,5,154,Yes,Asymptomatic,0\n", "41,Male,247,139,76,Current,None,3,No,Yes,No,6,148,Yes,Non-anginal Pain,0\n", "48,Female,348,137,99,Former,None,1,Yes,Yes,No,7,169,Yes,Typical Angina,0\n", "37,Female,267,117,85,Never,None,8,Yes,No,Yes,4,103,Yes,Typical Angina,0\n", "58,Female,349,96,62,Former,Moderate,7,No,Yes,Yes,8,106,No,Asymptomatic,1\n", "78,Female,213,119,99,Current,Heavy,2,No,No,Yes,3,177,No,Non-anginal Pain,1\n", "58,Male,325,110,95,Never,Moderate,4,Yes,Yes,Yes,8,194,Yes,Atypical Angina,1\n", "57,Female,229,179,63,Never,Heavy,2,No,Yes,No,7,144,No,Atypical Angina,1\n", "26,Male,162,139,71,Former,None,7,Yes,Yes,No,6,113,No,Atypical Angina,0\n", "69,Female,259,101,82,Current,Moderate,8,No,No,Yes,6,160,Yes,Non-anginal Pain,1\n", "50,Female,260,176,82,Current,None,3,No,No,No,7,74,No,Typical Angina,0\n", "53,Female,190,144,97,Current,None,5,No,No,Yes,2,120,No,Non-anginal Pain,0\n", "76,Male,258,142,95,Former,Moderate,2,Yes,Yes,No,3,91,No,Atypical Angina,1\n", "30,Male,318,168,91,Current,Heavy,0,Yes,No,No,2,126,No,Typical Angina,0\n", "77,Female,206,129,74,Former,None,5,Yes,No,No,2,120,No,Atypical Angina,1\n", "60,Male,174,156,66,Former,Heavy,2,No,No,Yes,3,148,Yes,Atypical Angina,0\n", "59,Female,318,125,75,Never,None,1,Yes,No,No,7,136,No,Asymptomatic,1\n", "43,Female,198,149,89,Former,None,9,No,No,Yes,2,199,Yes,Atypical Angina,0\n", "60,Female,266,116,60,Never,None,9,Yes,No,No,4,163,Yes,Non-anginal Pain,1\n", "79,Female,281,145,93,Former,Heavy,8,Yes,No,Yes,8,89,No,Typical Angina,1\n", "79,Male,221,99,91,Current,Moderate,0,Yes,No,No,7,186,No,Typical Angina,1\n", "77,Male,341,177,74,Current,None,8,Yes,No,No,9,135,No,Typical Angina,1\n", "78,Female,318,133,73,Current,Moderate,1,Yes,Yes,No,2,168,No,Asymptomatic,1\n", "32,Male,157,102,82,Former,Heavy,3,No,No,No,8,139,No,Asymptomatic,0\n", "28,Male,168,113,94,Former,Heavy,6,No,Yes,No,9,177,No,Typical Angina,0\n", "35,Male,267,175,60,Current,None,1,Yes,Yes,Yes,7,191,Yes,Typical Angina,0\n", "79,Male,222,150,65,Current,Moderate,6,No,Yes,Yes,1,71,No,Asymptomatic,1\n", "33,Female,231,119,97,Never,Heavy,9,Yes,Yes,Yes,10,175,Yes,Typical Angina,0\n", "29,Male,239,139,89,Never,Moderate,2,Yes,No,No,6,159,No,Non-anginal Pain,0\n", "58,Female,259,148,94,Current,Moderate,6,No,No,No,6,164,Yes,Non-anginal Pain,1\n", "46,Male,161,140,85,Current,Moderate,4,Yes,No,No,8,136,No,Asymptomatic,0\n", "74,Male,266,128,80,Never,None,5,No,Yes,No,5,108,No,Non-anginal Pain,1\n", "69,Female,267,140,72,Current,Heavy,0,Yes,No,Yes,4,169,Yes,Atypical Angina,1\n", "46,Female,281,152,94,Never,None,9,No,Yes,Yes,3,186,No,Typical Angina,0\n", "25,Male,268,155,64,Current,None,9,No,Yes,Yes,6,89,Yes,Asymptomatic,0\n", "69,Female,186,177,98,Former,Heavy,8,Yes,No,Yes,5,70,No,Typical Angina,0\n", "26,Female,245,178,73,Former,Heavy,0,Yes,Yes,No,4,163,No,Asymptomatic,0\n", "49,Male,208,106,98,Never,Moderate,4,Yes,Yes,Yes,9,198,No,Atypical Angina,0\n", "69,Male,233,152,74,Current,None,2,Yes,No,No,9,96,No,Asymptomatic,1\n", "26,Female,207,121,70,Never,Heavy,5,Yes,Yes,Yes,3,123,Yes,Non-anginal Pain,0\n", "71,Female,304,140,81,Never,None,9,Yes,Yes,Yes,9,178,No,Typical Angina,1\n", "66,Female,169,176,82,Never,None,2,No,No,Yes,7,143,No,Atypical Angina,0\n", "51,Male,193,121,91,Never,Heavy,3,Yes,Yes,Yes,4,73,No,Atypical Angina,0\n", "33,Female,243,148,69,Current,None,9,No,No,Yes,6,114,Yes,Asymptomatic,0\n", "49,Male,167,159,76,Current,None,4,No,Yes,No,3,173,No,Non-anginal Pain,0\n", "46,Female,290,131,68,Current,Heavy,1,Yes,No,No,3,121,No,Non-anginal Pain,0\n", "41,Male,300,162,74,Current,None,9,No,Yes,No,6,136,Yes,Atypical Angina,0\n", "71,Female,327,106,62,Current,Heavy,1,Yes,No,No,5,127,No,Atypical Angina,1\n", "68,Male,321,104,71,Current,Moderate,6,Yes,Yes,No,9,161,No,Atypical Angina,1\n", "72,Male,298,138,71,Never,Moderate,5,No,Yes,No,1,172,No,Typical Angina,1\n", "70,Female,321,135,76,Never,None,9,No,Yes,No,5,199,Yes,Non-anginal Pain,1\n", "55,Female,160,162,62,Former,Moderate,9,Yes,No,Yes,2,155,Yes,Asymptomatic,0\n", "37,Female,301,100,93,Former,None,8,No,Yes,Yes,2,98,No,Asymptomatic,0\n", "64,Female,244,129,92,Former,None,6,Yes,No,Yes,7,116,No,Atypical Angina,1\n", "48,Female,279,164,74,Current,None,7,No,Yes,No,2,119,No,Atypical Angina,0\n", "27,Male,262,141,61,Never,Moderate,5,No,Yes,Yes,3,90,Yes,Asymptomatic,0\n", "38,Male,200,94,67,Current,Moderate,9,No,No,No,7,141,No,Asymptomatic,0\n", "48,Male,154,160,84,Never,None,5,No,Yes,No,2,135,No,Non-anginal Pain,0\n", "38,Female,270,162,92,Former,Heavy,5,Yes,No,No,3,199,No,Asymptomatic,0\n", "39,Female,223,148,63,Never,Heavy,0,Yes,Yes,Yes,9,117,No,Asymptomatic,0\n", "33,Male,322,173,73,Current,None,8,Yes,Yes,No,6,109,No,Atypical Angina,0\n", "25,Female,165,127,69,Former,None,5,No,Yes,No,8,198,Yes,Asymptomatic,0\n", "48,Male,310,162,84,Current,None,0,No,No,Yes,5,182,Yes,Asymptomatic,0\n", "78,Male,259,96,99,Former,Heavy,1,No,No,No,6,165,No,Asymptomatic,1\n", "58,Female,257,171,73,Never,Moderate,2,Yes,Yes,Yes,6,70,No,Atypical Angina,1\n", "52,Female,196,113,60,Former,None,0,Yes,No,No,7,135,No,Atypical Angina,0\n", "36,Female,288,164,67,Never,Moderate,1,No,No,No,7,70,No,Typical Angina,0\n", "35,Male,204,97,95,Current,Heavy,4,Yes,Yes,Yes,5,117,Yes,Atypical Angina,0\n", "64,Female,156,90,67,Never,Heavy,6,No,No,Yes,1,167,Yes,Non-anginal Pain,0\n", "27,Female,323,145,63,Current,Heavy,0,Yes,No,Yes,7,127,Yes,Non-anginal Pain,0\n", "46,Female,345,175,61,Former,Heavy,9,Yes,No,No,10,88,Yes,Non-anginal Pain,0\n", "66,Male,152,175,95,Never,None,9,Yes,No,No,2,73,Yes,Non-anginal Pain,0\n", "42,Male,318,118,87,Current,Moderate,2,Yes,No,Yes,8,121,Yes,Atypical Angina,0\n", "47,Male,169,133,74,Former,Moderate,8,Yes,No,Yes,1,95,Yes,Typical Angina,0\n", "47,Female,185,109,94,Current,None,1,No,No,No,6,122,No,Atypical Angina,0\n", "59,Female,166,139,64,Former,Heavy,9,Yes,Yes,Yes,3,145,No,Atypical Angina,0\n", "44,Female,296,99,63,Never,Heavy,6,Yes,Yes,No,7,185,Yes,Asymptomatic,0\n", "72,Male,328,117,63,Never,None,4,Yes,No,No,9,138,No,Non-anginal Pain,1\n", "51,Male,318,168,92,Former,Moderate,3,No,No,Yes,9,164,Yes,Asymptomatic,1\n", "51,Female,303,97,76,Current,None,8,Yes,Yes,No,6,119,Yes,Non-anginal Pain,1\n", "64,Female,168,135,73,Current,Moderate,0,No,Yes,No,9,88,No,Typical Angina,0\n", "54,Female,188,163,80,Current,Moderate,7,Yes,Yes,No,3,106,No,Atypical Angina,0\n", "64,Male,194,100,78,Current,Heavy,6,Yes,Yes,Yes,3,189,No,Non-anginal Pain,0\n", "76,Male,179,94,85,Current,Heavy,8,Yes,No,No,4,179,Yes,Non-anginal Pain,0\n", "32,Male,262,123,99,Never,Moderate,0,No,No,No,2,100,No,Asymptomatic,0\n", "74,Female,185,129,86,Never,None,0,Yes,Yes,Yes,6,171,Yes,Non-anginal Pain,0\n", "50,Female,328,158,71,Never,Heavy,8,Yes,No,Yes,10,82,No,Atypical Angina,0\n", "34,Female,291,107,72,Never,Heavy,3,No,Yes,Yes,3,177,Yes,Asymptomatic,0\n", "52,Female,184,122,84,Current,None,2,No,Yes,No,7,133,No,Typical Angina,0\n", "42,Female,241,139,69,Former,None,4,No,Yes,Yes,1,116,No,Asymptomatic,0\n", "44,Female,213,97,88,Never,Heavy,8,No,No,No,1,176,Yes,Non-anginal Pain,0\n", "28,Male,226,167,60,Current,None,3,Yes,No,Yes,2,185,No,Atypical Angina,0\n", "75,Male,254,111,95,Current,None,7,Yes,No,No,2,83,Yes,Atypical Angina,1\n", "36,Male,235,154,92,Never,None,2,Yes,No,Yes,6,177,Yes,Non-anginal Pain,0\n", "59,Male,236,152,62,Never,Moderate,5,Yes,No,Yes,9,177,Yes,Non-anginal Pain,1\n", "26,Female,193,134,60,Current,None,5,No,Yes,Yes,6,146,Yes,Typical Angina,0\n", "64,Female,191,178,75,Never,Moderate,9,Yes,No,No,5,97,No,Asymptomatic,0\n", "45,Male,306,160,84,Current,Moderate,1,No,Yes,No,6,124,No,Atypical Angina,0\n", "27,Male,198,147,81,Current,Heavy,3,No,Yes,No,7,123,No,Typical Angina,0\n", "34,Female,178,133,89,Current,Heavy,1,No,No,Yes,6,151,Yes,Non-anginal Pain,0\n", "37,Male,310,94,84,Current,None,5,Yes,No,No,9,93,Yes,Typical Angina,0\n", "75,Male,283,139,96,Former,Moderate,6,No,Yes,No,3,98,Yes,Typical Angina,1\n", "67,Male,282,153,77,Current,None,7,No,Yes,No,9,85,Yes,Typical Angina,1\n", "38,Male,245,119,80,Never,Moderate,7,Yes,No,No,10,192,Yes,Atypical Angina,0\n", "79,Male,279,98,97,Former,Moderate,9,No,No,No,1,148,Yes,Typical Angina,1\n", "64,Female,298,169,94,Current,Heavy,0,Yes,Yes,Yes,4,129,Yes,Typical Angina,1\n", "50,Female,268,159,78,Current,None,4,No,Yes,Yes,5,189,Yes,Asymptomatic,0\n", "43,Male,285,154,80,Never,None,6,No,Yes,Yes,5,115,Yes,Non-anginal Pain,0\n", "56,Male,270,176,75,Former,Heavy,7,Yes,Yes,No,9,136,Yes,Non-anginal Pain,1\n", "46,Female,195,93,92,Former,Moderate,8,Yes,Yes,Yes,1,121,Yes,Atypical Angina,0\n", "68,Female,206,104,65,Never,Heavy,9,Yes,No,Yes,8,102,No,Atypical Angina,1\n", "37,Female,329,96,65,Current,None,1,Yes,No,Yes,4,192,Yes,Atypical Angina,0\n", "71,Male,269,119,74,Never,Moderate,4,Yes,No,No,10,100,No,Asymptomatic,1\n", "61,Female,341,142,92,Never,Moderate,7,No,Yes,No,8,123,No,Typical Angina,1\n", "62,Female,300,125,99,Current,None,8,No,No,No,10,128,Yes,Typical Angina,1\n", "77,Female,248,96,72,Current,Moderate,2,No,Yes,Yes,9,97,No,Asymptomatic,1\n", "37,Female,252,164,99,Former,Heavy,6,No,No,No,1,166,Yes,Typical Angina,0\n", "44,Male,251,94,77,Former,Heavy,9,Yes,No,Yes,2,94,No,Atypical Angina,0\n", "48,Female,187,132,72,Former,Heavy,1,Yes,Yes,Yes,3,198,No,Non-anginal Pain,0\n", "70,Male,238,144,74,Never,None,1,No,Yes,Yes,6,126,No,Atypical Angina,1\n", "26,Male,224,107,89,Current,Heavy,5,No,Yes,Yes,6,171,Yes,Typical Angina,0\n", "41,Male,159,124,71,Never,Heavy,0,Yes,Yes,No,4,193,No,Typical Angina,0\n", "38,Female,202,178,93,Former,Moderate,7,Yes,Yes,Yes,5,183,Yes,Asymptomatic,0\n", "59,Female,295,167,88,Current,None,9,No,No,No,10,187,Yes,Atypical Angina,1\n", "63,Female,299,110,90,Former,None,0,No,Yes,Yes,9,162,No,Asymptomatic,1\n", "66,Female,241,112,98,Current,Moderate,1,No,Yes,No,4,169,No,Atypical Angina,1\n", "42,Male,297,144,77,Never,Moderate,2,No,No,Yes,9,194,No,Non-anginal Pain,0\n", "63,Female,158,160,67,Former,Heavy,6,Yes,Yes,Yes,9,134,Yes,Asymptomatic,0\n", "60,Male,289,144,81,Never,Heavy,5,No,Yes,No,1,145,No,Typical Angina,1\n", "38,Female,340,176,98,Current,Heavy,5,No,No,No,1,155,Yes,Non-anginal Pain,0\n", "70,Female,287,143,69,Current,Moderate,2,No,Yes,Yes,3,140,Yes,Non-anginal Pain,1\n", "55,Male,271,166,69,Former,None,3,No,No,Yes,5,199,Yes,Non-anginal Pain,1\n", "35,Male,176,90,69,Former,Heavy,9,Yes,Yes,No,7,81,Yes,Typical Angina,0\n", "34,Male,234,112,90,Current,Moderate,8,Yes,No,Yes,9,171,No,Non-anginal Pain,0\n", "62,Male,278,137,61,Current,Heavy,7,No,Yes,Yes,7,101,No,Asymptomatic,1\n", "70,Female,331,178,93,Never,Moderate,4,No,Yes,Yes,6,111,Yes,Non-anginal Pain,1\n", "76,Male,244,139,79,Former,Moderate,5,Yes,Yes,No,2,71,Yes,Non-anginal Pain,1\n", "59,Male,246,128,98,Never,Heavy,9,Yes,Yes,Yes,3,158,Yes,Atypical Angina,1\n", "58,Male,163,111,64,Former,Moderate,3,No,Yes,No,6,136,No,Typical Angina,0\n", "70,Female,346,103,81,Never,None,4,No,Yes,No,6,135,Yes,Atypical Angina,1\n", "51,Female,287,165,86,Former,None,3,No,No,Yes,4,73,No,Non-anginal Pain,1\n", "29,Female,207,113,81,Never,Heavy,3,No,Yes,Yes,6,188,Yes,Atypical Angina,0\n", "54,Female,339,130,61,Never,Moderate,9,Yes,Yes,No,3,185,Yes,Asymptomatic,1\n", "63,Female,321,165,64,Former,Moderate,0,No,Yes,No,6,131,Yes,Typical Angina,1\n", "38,Male,180,136,84,Current,None,2,No,Yes,Yes,7,162,No,Asymptomatic,0\n", "49,Male,213,134,83,Never,None,2,Yes,Yes,Yes,7,149,No,Typical Angina,0\n", "54,Male,212,121,61,Current,Heavy,9,No,No,Yes,7,182,Yes,Non-anginal Pain,1\n", "62,Female,297,111,87,Never,None,3,No,Yes,No,7,70,No,Atypical Angina,1\n", "71,Female,204,134,72,Current,Heavy,4,No,No,Yes,5,160,No,Asymptomatic,1\n", "29,Female,166,132,82,Current,Moderate,2,No,No,No,4,107,Yes,Atypical Angina,0\n", "53,Male,222,119,91,Current,Moderate,8,No,No,No,5,199,Yes,Typical Angina,1\n", "34,Male,338,104,83,Never,Heavy,9,Yes,Yes,Yes,7,105,No,Non-anginal Pain,0\n", "67,Male,169,127,90,Never,None,8,No,Yes,Yes,8,171,Yes,Asymptomatic,0\n", "63,Male,218,158,76,Current,None,4,No,Yes,Yes,2,95,Yes,Non-anginal Pain,1\n", "47,Female,254,174,68,Former,Heavy,4,No,No,No,10,168,No,Non-anginal Pain,0\n", "75,Female,157,96,89,Never,None,1,Yes,Yes,Yes,1,140,Yes,Asymptomatic,0\n", "27,Male,296,129,67,Former,Heavy,5,Yes,No,No,10,119,Yes,Non-anginal Pain,0\n", "73,Male,240,178,81,Former,None,1,Yes,Yes,No,9,113,Yes,Atypical Angina,1\n", "52,Female,278,170,71,Never,Heavy,2,Yes,No,No,3,85,No,Non-anginal Pain,1\n", "39,Female,278,174,74,Former,Heavy,9,No,No,Yes,10,119,Yes,Non-anginal Pain,0\n", "26,Female,240,174,62,Former,Heavy,2,No,Yes,Yes,6,196,Yes,Typical Angina,0\n", "54,Female,250,159,95,Current,Heavy,9,Yes,Yes,No,7,178,No,Asymptomatic,1\n", "70,Male,168,114,99,Former,Heavy,7,Yes,Yes,No,2,196,No,Atypical Angina,0\n", "35,Male,325,163,99,Never,None,3,Yes,No,Yes,6,83,Yes,Asymptomatic,0\n", "77,Male,163,91,73,Former,None,3,No,Yes,Yes,8,145,No,Non-anginal Pain,0\n", "35,Male,159,154,67,Current,None,5,No,Yes,No,4,147,No,Asymptomatic,0\n", "42,Male,248,94,92,Former,None,0,No,Yes,No,4,145,No,Asymptomatic,0\n", "75,Male,244,103,72,Current,Heavy,2,No,No,No,8,131,No,Atypical Angina,1\n", "59,Male,316,96,66,Former,None,2,No,No,No,5,198,Yes,Atypical Angina,1\n", "45,Male,169,150,98,Former,Heavy,5,No,Yes,No,8,182,No,Atypical Angina,0\n", "35,Male,272,130,85,Former,Moderate,2,Yes,No,No,6,166,No,Typical Angina,0\n", "73,Male,338,140,62,Current,Moderate,8,Yes,No,Yes,10,113,Yes,Non-anginal Pain,1\n", "54,Male,276,103,63,Never,Heavy,1,No,Yes,Yes,8,86,No,Atypical Angina,1\n", "71,Male,345,132,71,Never,None,9,No,No,Yes,3,117,No,Non-anginal Pain,1\n", "27,Female,253,96,65,Never,Moderate,6,No,Yes,Yes,2,189,No,Non-anginal Pain,0\n", "66,Male,157,153,89,Former,Moderate,3,No,No,Yes,8,107,Yes,Atypical Angina,0\n", "62,Female,225,119,96,Former,None,8,No,No,Yes,9,138,Yes,Typical Angina,1\n", "28,Female,293,127,88,Never,None,5,Yes,No,No,3,156,Yes,Asymptomatic,0\n", "37,Female,153,171,76,Former,Heavy,6,Yes,Yes,No,7,129,Yes,Typical Angina,0\n", "78,Male,236,166,74,Never,Heavy,8,No,No,No,2,130,Yes,Asymptomatic,1\n", "50,Female,195,159,67,Current,Heavy,5,No,Yes,No,7,77,Yes,Typical Angina,0\n", "56,Male,203,129,86,Former,Moderate,6,No,No,Yes,8,195,No,Typical Angina,1\n", "40,Female,339,179,71,Former,Heavy,4,No,No,Yes,7,179,No,Asymptomatic,0\n", "37,Male,274,174,65,Current,None,1,Yes,Yes,Yes,10,175,Yes,Typical Angina,0\n", "59,Male,265,173,87,Current,Moderate,5,No,Yes,No,2,91,No,Typical Angina,1\n", "61,Male,192,104,75,Never,Heavy,2,No,Yes,No,4,199,Yes,Typical Angina,0\n", "48,Male,214,158,83,Former,Moderate,8,Yes,Yes,No,8,106,Yes,Asymptomatic,0\n", "54,Male,331,173,89,Never,Heavy,8,Yes,No,Yes,7,79,Yes,Non-anginal Pain,1\n", "52,Female,156,117,63,Never,Moderate,5,No,No,Yes,7,116,No,Non-anginal Pain,0\n", "40,Male,164,90,90,Former,None,1,No,No,No,10,144,No,Asymptomatic,0\n", "35,Female,269,161,65,Never,Heavy,1,Yes,Yes,Yes,5,171,Yes,Asymptomatic,0\n", "39,Female,196,171,61,Current,None,9,No,No,No,3,178,Yes,Typical Angina,0\n", "55,Male,280,165,62,Current,Moderate,4,Yes,No,Yes,7,165,Yes,Asymptomatic,1\n", "39,Female,334,139,71,Never,Moderate,5,No,Yes,No,6,141,No,Atypical Angina,0\n", "74,Female,348,167,74,Current,Moderate,5,No,Yes,No,1,147,No,Atypical Angina,1\n", "36,Male,265,90,69,Former,None,8,Yes,Yes,Yes,6,105,No,Asymptomatic,0\n", "26,Female,345,122,91,Former,Heavy,3,No,No,No,9,99,No,Asymptomatic,0\n", "56,Male,274,105,79,Current,Moderate,3,No,No,Yes,5,174,No,Non-anginal Pain,1\n", "66,Female,290,115,63,Current,None,3,Yes,Yes,No,1,175,No,Typical Angina,1\n", "36,Female,258,131,95,Never,None,6,No,No,No,8,112,Yes,Non-anginal Pain,0\n", "61,Female,152,179,95,Current,Moderate,9,No,No,Yes,4,104,Yes,Typical Angina,0\n", "28,Male,212,116,96,Former,None,5,No,Yes,No,2,118,No,Asymptomatic,0\n", "27,Male,328,172,97,Never,None,1,No,No,No,1,179,No,Asymptomatic,0\n", "43,Male,187,172,80,Current,None,8,Yes,Yes,No,1,163,No,Typical Angina,0\n", "34,Female,240,162,62,Former,None,8,No,No,No,8,116,No,Typical Angina,0\n", "28,Female,213,133,68,Never,Moderate,1,No,Yes,Yes,4,137,No,Non-anginal Pain,0\n", "27,Male,254,139,91,Former,Heavy,1,Yes,Yes,Yes,6,196,Yes,Asymptomatic,0\n", "41,Male,167,114,82,Current,None,8,No,Yes,Yes,5,180,Yes,Non-anginal Pain,0\n", "34,Female,313,166,68,Current,Heavy,5,Yes,Yes,Yes,9,86,Yes,Non-anginal Pain,0\n", "49,Male,238,90,71,Former,Moderate,7,No,No,Yes,3,116,Yes,Atypical Angina,0\n", "77,Male,180,126,77,Former,Heavy,0,No,No,No,7,146,No,Atypical Angina,0\n", "31,Male,204,165,75,Never,Moderate,7,No,No,Yes,5,192,Yes,Non-anginal Pain,0\n", "72,Female,279,162,94,Current,Moderate,7,No,Yes,Yes,2,157,Yes,Asymptomatic,1\n", "59,Male,306,150,89,Former,Moderate,6,Yes,Yes,No,2,75,Yes,Atypical Angina,1\n", "69,Male,320,120,64,Never,Heavy,9,No,Yes,Yes,10,153,No,Non-anginal Pain,1\n", "54,Female,287,95,75,Never,Heavy,9,Yes,Yes,Yes,5,94,No,Asymptomatic,1\n", "61,Female,323,143,64,Current,None,3,No,Yes,Yes,9,124,Yes,Typical Angina,1\n", "59,Male,276,168,85,Never,Heavy,2,No,Yes,Yes,9,134,No,Atypical Angina,1\n", "52,Female,265,155,69,Never,Heavy,9,No,Yes,No,9,106,No,Atypical Angina,1\n", "58,Female,181,135,83,Never,Heavy,0,No,No,Yes,2,105,No,Typical Angina,0\n", "49,Female,214,130,60,Former,None,7,No,Yes,Yes,3,87,No,Non-anginal Pain,0\n", "70,Female,188,154,86,Current,Moderate,2,No,No,Yes,4,109,No,Asymptomatic,0\n", "73,Male,211,170,90,Current,Moderate,1,Yes,No,Yes,5,141,No,Atypical Angina,1\n", "31,Female,234,160,60,Former,None,8,Yes,No,Yes,8,165,Yes,Atypical Angina,0\n", "68,Female,332,125,74,Current,Moderate,8,No,Yes,No,6,103,No,Non-anginal Pain,1\n", "62,Male,347,136,84,Never,None,5,Yes,Yes,No,1,91,Yes,Typical Angina,1\n", "48,Male,231,159,87,Never,Moderate,0,No,No,No,2,126,No,Asymptomatic,0\n", "49,Female,211,103,73,Former,None,4,No,No,Yes,9,127,Yes,Atypical Angina,0\n", "45,Female,162,108,85,Current,Heavy,3,Yes,No,Yes,7,112,Yes,Non-anginal Pain,0\n", "28,Male,297,111,94,Never,Heavy,1,Yes,Yes,No,2,183,No,Atypical Angina,0\n", "78,Female,150,101,62,Current,Moderate,0,Yes,Yes,Yes,1,119,No,Non-anginal Pain,0\n", "78,Female,192,146,61,Current,Heavy,2,No,Yes,No,10,88,No,Typical Angina,0\n", "38,Male,325,134,67,Never,None,2,No,Yes,Yes,8,128,Yes,Asymptomatic,0\n", "47,Male,186,161,69,Current,Moderate,0,No,No,No,2,122,No,Non-anginal Pain,0\n", "32,Female,269,151,68,Former,None,9,No,Yes,No,9,199,Yes,Atypical Angina,0\n", "45,Female,333,163,64,Former,None,4,No,Yes,No,9,73,No,Atypical Angina,0\n", "42,Female,288,161,82,Former,Heavy,1,Yes,No,Yes,7,71,No,Asymptomatic,0\n", "46,Male,294,109,97,Current,Moderate,6,No,No,Yes,8,127,No,Asymptomatic,0\n", "45,Male,204,145,60,Never,None,5,Yes,No,Yes,9,92,Yes,Non-anginal Pain,0\n", "69,Male,242,108,65,Never,Moderate,2,No,Yes,No,10,188,Yes,Asymptomatic,1\n", "37,Male,229,95,74,Former,None,2,Yes,Yes,No,4,175,Yes,Typical Angina,0\n", "31,Female,202,178,91,Current,None,2,No,Yes,No,4,80,No,Atypical Angina,0\n", "76,Male,228,112,82,Current,Moderate,7,Yes,No,Yes,10,110,Yes,Typical Angina,1\n", "61,Female,224,174,80,Current,Moderate,2,No,No,No,6,177,No,Atypical Angina,1\n", "28,Male,237,136,62,Never,Moderate,2,Yes,Yes,Yes,5,89,Yes,Typical Angina,0\n", "78,Male,210,100,99,Current,Heavy,5,Yes,Yes,Yes,9,120,Yes,Typical Angina,1\n", "75,Male,263,113,73,Former,None,6,No,Yes,Yes,10,178,Yes,Atypical Angina,1\n", "74,Female,334,158,81,Current,Heavy,9,No,No,Yes,1,150,Yes,Asymptomatic,1\n", "76,Female,159,143,83,Never,Heavy,5,No,Yes,Yes,9,96,No,Asymptomatic,0\n", "71,Female,216,110,79,Current,Heavy,1,Yes,No,Yes,2,140,No,Asymptomatic,1\n", "59,Female,298,125,92,Never,None,6,No,Yes,Yes,10,134,No,Atypical Angina,1\n", "40,Female,183,134,73,Never,Heavy,2,No,Yes,Yes,6,167,No,Atypical Angina,0\n", "59,Female,264,121,99,Former,Heavy,4,No,No,No,2,115,No,Atypical Angina,1\n", "49,Male,277,155,85,Former,Heavy,0,Yes,No,No,3,83,No,Typical Angina,0\n", "40,Female,288,101,84,Never,Heavy,9,Yes,Yes,No,7,153,Yes,Non-anginal Pain,0\n", "48,Female,257,148,65,Never,Moderate,3,No,No,No,1,102,No,Non-anginal Pain,0\n", "49,Male,212,140,75,Never,Heavy,9,Yes,No,No,9,139,No,Atypical Angina,0\n", "39,Female,283,157,73,Former,None,5,No,Yes,No,6,107,No,Typical Angina,0\n", "43,Male,231,97,62,Current,Heavy,9,No,No,No,7,190,Yes,Asymptomatic,0\n", "37,Female,215,157,78,Former,None,3,No,No,Yes,6,138,No,Typical Angina,0\n", "75,Male,225,145,87,Never,None,4,Yes,Yes,No,5,125,Yes,Atypical Angina,1\n", "48,Female,190,144,86,Current,Moderate,7,No,Yes,Yes,10,138,No,Non-anginal Pain,0\n", "72,Male,343,113,89,Current,Moderate,2,No,No,Yes,10,166,No,Non-anginal Pain,1\n", "49,Male,234,105,70,Former,Heavy,9,No,Yes,No,8,170,Yes,Atypical Angina,0\n", "74,Male,187,129,94,Current,None,4,No,No,Yes,1,196,No,Typical Angina,0\n", "72,Female,323,103,91,Never,Moderate,1,Yes,Yes,Yes,6,153,No,Typical Angina,1\n", "64,Male,218,114,90,Current,Moderate,4,No,Yes,No,3,147,Yes,Asymptomatic,1\n", "55,Female,321,167,88,Former,Moderate,0,No,No,No,5,83,Yes,Asymptomatic,1\n", "26,Male,160,104,67,Former,Heavy,7,No,Yes,Yes,10,167,No,Non-anginal Pain,0\n", "79,Female,292,100,67,Current,Moderate,6,Yes,Yes,Yes,2,140,No,Non-anginal Pain,1\n", "41,Male,192,131,87,Current,Heavy,5,Yes,Yes,Yes,5,126,Yes,Asymptomatic,0\n", "74,Male,279,92,86,Former,Moderate,3,No,Yes,Yes,7,189,Yes,Typical Angina,1\n", "40,Female,188,117,62,Former,Heavy,3,No,Yes,Yes,9,188,No,Asymptomatic,0\n", "32,Male,313,119,98,Never,Heavy,9,Yes,No,Yes,5,88,Yes,Asymptomatic,0\n", "75,Female,328,111,71,Former,None,5,No,Yes,Yes,4,95,No,Atypical Angina,1\n", "49,Female,280,175,90,Never,Heavy,3,Yes,Yes,No,6,82,No,Asymptomatic,0\n", "34,Male,319,98,84,Current,None,3,No,No,No,7,181,No,Atypical Angina,0\n", "75,Male,155,142,86,Former,None,1,No,No,Yes,6,100,No,Non-anginal Pain,0\n", "41,Male,228,98,96,Former,Heavy,4,Yes,Yes,No,1,194,No,Atypical Angina,0\n", "39,Male,212,177,99,Current,Heavy,5,Yes,Yes,No,8,85,Yes,Atypical Angina,0\n", "75,Male,310,101,81,Current,None,5,Yes,No,Yes,10,139,No,Asymptomatic,1\n", "76,Female,191,120,78,Never,None,3,Yes,No,No,6,103,No,Typical Angina,0\n", "26,Male,157,176,67,Current,Moderate,4,No,Yes,No,8,165,No,Typical Angina,0\n", "39,Female,318,129,67,Never,Heavy,7,Yes,No,No,7,95,Yes,Typical Angina,0\n", "77,Male,307,166,95,Former,Moderate,1,No,Yes,Yes,3,186,No,Asymptomatic,1\n", "66,Male,342,145,97,Current,Moderate,8,Yes,Yes,Yes,3,166,Yes,Typical Angina,1\n", "45,Female,256,126,65,Former,None,3,Yes,Yes,Yes,6,121,Yes,Non-anginal Pain,0\n", "52,Female,336,167,94,Never,None,2,No,No,No,7,73,Yes,Asymptomatic,1\n", "34,Female,231,152,68,Former,None,9,No,No,No,4,89,No,Non-anginal Pain,0\n", "62,Male,213,141,93,Current,Moderate,2,No,Yes,No,6,158,Yes,Non-anginal Pain,1\n", "63,Male,256,172,72,Current,Heavy,3,Yes,No,No,3,119,Yes,Atypical Angina,1\n", "76,Male,156,91,80,Former,None,0,No,Yes,No,7,74,Yes,Non-anginal Pain,0\n", "37,Female,209,99,99,Never,Moderate,0,Yes,No,Yes,4,85,No,Asymptomatic,0\n", "43,Male,307,116,78,Former,None,7,Yes,Yes,Yes,1,161,No,Non-anginal Pain,0\n", "55,Male,301,117,63,Current,Heavy,2,Yes,Yes,Yes,7,95,No,Typical Angina,1\n", "43,Male,303,171,72,Current,None,3,Yes,Yes,Yes,2,199,No,Asymptomatic,0\n", "47,Female,305,99,70,Former,Moderate,5,No,Yes,No,6,145,Yes,Non-anginal Pain,0\n", "68,Female,211,131,81,Never,Heavy,0,No,Yes,No,7,95,Yes,Non-anginal Pain,1\n", "26,Female,280,147,63,Former,Moderate,0,No,No,No,6,71,Yes,Typical Angina,0\n", "73,Male,346,124,80,Former,Moderate,0,Yes,Yes,Yes,8,90,No,Typical Angina,1\n", "75,Female,201,121,71,Never,None,3,No,No,No,7,83,No,Non-anginal Pain,1\n", "66,Male,320,147,74,Never,None,2,Yes,Yes,Yes,8,120,No,Typical Angina,1\n", "66,Male,227,143,82,Current,None,4,No,Yes,Yes,3,79,No,Asymptomatic,1\n", "65,Female,344,94,80,Former,Heavy,6,No,Yes,Yes,7,91,Yes,Typical Angina,1\n", "42,Female,298,114,69,Current,Heavy,0,Yes,Yes,No,3,156,No,Non-anginal Pain,0\n", "49,Female,226,103,75,Former,None,8,Yes,Yes,Yes,10,74,No,Atypical Angina,0\n", "61,Female,165,100,84,Current,Heavy,0,No,No,Yes,6,140,Yes,Atypical Angina,0\n", "76,Male,299,178,62,Current,Moderate,1,No,Yes,Yes,8,157,No,Atypical Angina,1\n", "25,Male,176,116,90,Current,Moderate,6,No,Yes,Yes,6,129,No,Typical Angina,0\n", "26,Male,152,165,61,Current,Heavy,8,No,Yes,No,2,186,Yes,Typical Angina,0\n", "29,Male,332,116,97,Former,None,3,No,Yes,No,7,84,Yes,Asymptomatic,0\n", "33,Female,333,108,68,Never,None,5,Yes,No,No,2,88,Yes,Asymptomatic,0\n", "43,Female,152,99,75,Current,Heavy,9,No,Yes,Yes,3,169,No,Non-anginal Pain,0\n", "49,Female,240,154,71,Current,None,8,Yes,Yes,Yes,10,165,Yes,Asymptomatic,0\n", "28,Female,280,151,77,Never,Moderate,7,No,No,Yes,9,167,Yes,Asymptomatic,0\n", "30,Male,150,165,72,Former,None,8,Yes,No,Yes,9,70,No,Non-anginal Pain,0\n", "63,Female,331,127,99,Former,None,8,No,Yes,No,1,73,Yes,Asymptomatic,1\n", "57,Female,178,113,93,Never,Heavy,4,Yes,Yes,Yes,9,81,Yes,Non-anginal Pain,0\n", "32,Male,237,172,83,Current,None,2,No,No,No,9,198,No,Atypical Angina,0\n", "69,Male,272,165,81,Former,Moderate,9,Yes,Yes,Yes,2,156,No,Non-anginal Pain,1\n", "37,Male,267,100,97,Current,Moderate,0,Yes,Yes,No,10,158,Yes,Non-anginal Pain,0\n", "36,Male,285,135,81,Current,Heavy,7,Yes,No,Yes,5,127,No,Atypical Angina,0\n", "47,Female,189,129,69,Former,None,8,No,Yes,Yes,4,90,No,Non-anginal Pain,0\n", "30,Female,340,171,91,Current,None,3,Yes,Yes,Yes,3,159,No,Asymptomatic,0\n", "76,Male,253,128,78,Current,Moderate,4,Yes,Yes,No,8,182,Yes,Typical Angina,1\n", "47,Male,177,166,97,Current,Heavy,5,Yes,Yes,Yes,1,82,No,Non-anginal Pain,0\n", "40,Female,323,117,80,Never,Heavy,9,Yes,Yes,No,1,187,No,Non-anginal Pain,0\n", "73,Female,216,117,81,Current,None,6,Yes,No,Yes,1,96,No,Atypical Angina,1\n", "69,Male,329,142,83,Former,Heavy,3,No,No,Yes,8,90,No,Asymptomatic,1\n", "46,Female,215,111,88,Current,Moderate,9,Yes,Yes,Yes,7,162,No,Typical Angina,0\n", "66,Female,278,176,75,Current,None,6,Yes,Yes,Yes,2,89,No,Asymptomatic,1\n", "42,Male,293,143,80,Never,None,6,Yes,No,Yes,10,127,No,Non-anginal Pain,0\n", "69,Male,329,150,78,Former,None,7,No,No,Yes,10,140,Yes,Non-anginal Pain,1\n", "53,Male,218,140,94,Never,Moderate,9,Yes,No,Yes,6,140,Yes,Asymptomatic,1\n", "42,Female,206,127,97,Current,None,2,Yes,Yes,Yes,4,163,No,Typical Angina,0\n", "58,Male,333,103,70,Never,Moderate,1,No,No,Yes,4,146,No,Non-anginal Pain,1\n", "27,Female,288,127,90,Current,Heavy,8,No,No,No,10,158,Yes,Typical Angina,0\n", "41,Female,286,91,65,Former,None,0,Yes,Yes,Yes,6,189,No,Atypical Angina,0\n", "51,Male,325,153,94,Never,None,6,No,No,No,2,161,Yes,Non-anginal Pain,1\n", "60,Female,208,170,70,Never,Heavy,4,No,No,No,6,147,No,Atypical Angina,1\n", "75,Female,193,142,80,Never,Moderate,1,No,Yes,Yes,9,96,No,Non-anginal Pain,0\n", "36,Male,341,93,87,Current,Heavy,3,No,Yes,No,2,117,Yes,Typical Angina,0\n", "50,Male,286,144,94,Former,None,6,No,Yes,No,5,149,No,Typical Angina,0\n", "66,Male,154,128,69,Former,Heavy,1,No,No,Yes,3,169,Yes,Non-anginal Pain,0\n", "25,Female,345,105,98,Former,Heavy,7,No,No,Yes,10,125,No,Non-anginal Pain,0\n", "74,Male,235,146,85,Never,Moderate,7,Yes,No,Yes,10,146,No,Atypical Angina,1\n", "25,Male,200,176,85,Current,Moderate,4,Yes,No,Yes,6,160,Yes,Typical Angina,0\n", "73,Male,282,165,60,Never,None,7,No,Yes,No,8,76,Yes,Non-anginal Pain,1\n", "72,Female,155,172,69,Current,Heavy,8,Yes,No,Yes,4,100,No,Non-anginal Pain,0\n", "45,Female,296,99,95,Never,None,2,No,No,Yes,7,120,Yes,Atypical Angina,0\n", "70,Male,295,135,88,Former,Moderate,0,Yes,Yes,No,7,147,Yes,Asymptomatic,1\n", "78,Male,212,161,87,Former,Moderate,4,Yes,No,No,9,121,Yes,Typical Angina,1\n", "47,Male,236,151,92,Current,Heavy,0,No,Yes,Yes,1,139,No,Asymptomatic,0\n", "71,Female,161,175,78,Never,Heavy,1,No,Yes,Yes,2,114,No,Non-anginal Pain,0\n", "47,Female,233,164,79,Former,None,3,Yes,Yes,No,7,134,Yes,Typical Angina,0\n", "50,Female,255,155,68,Former,Heavy,6,No,No,No,10,128,Yes,Atypical Angina,0\n", "40,Male,159,142,78,Former,Heavy,2,No,No,No,6,138,No,Atypical Angina,0\n", "50,Female,317,148,71,Current,Moderate,1,No,No,Yes,4,116,Yes,Typical Angina,0\n", "57,Female,288,104,71,Never,Moderate,6,No,Yes,Yes,2,81,No,Typical Angina,1\n", "36,Male,189,177,63,Never,Heavy,5,Yes,No,No,4,113,Yes,Non-anginal Pain,0\n", "25,Male,314,142,61,Former,None,7,Yes,No,No,10,190,No,Typical Angina,0\n", "40,Female,193,174,92,Never,Heavy,0,Yes,No,No,9,92,No,Non-anginal Pain,0\n", "68,Male,251,124,98,Never,Heavy,3,No,Yes,No,5,101,No,Asymptomatic,1\n", "70,Male,240,144,61,Never,Moderate,0,Yes,Yes,No,3,125,No,Non-anginal Pain,1\n", "32,Male,179,98,69,Former,Moderate,6,No,Yes,No,4,119,No,Non-anginal Pain,0\n", "53,Male,165,160,90,Never,Heavy,1,Yes,Yes,No,2,191,Yes,Typical Angina,0\n", "62,Male,284,122,65,Never,None,2,No,Yes,No,8,153,Yes,Non-anginal Pain,1\n", "63,Female,272,96,78,Current,None,4,Yes,No,Yes,7,101,Yes,Typical Angina,1\n", "67,Male,240,139,61,Never,Moderate,2,No,No,No,7,185,Yes,Asymptomatic,1\n", "44,Male,269,99,77,Former,Heavy,6,Yes,No,No,6,196,No,Typical Angina,0\n", "71,Male,168,138,88,Never,None,7,Yes,Yes,Yes,4,127,Yes,Asymptomatic,0\n", "50,Female,198,156,60,Current,None,7,No,No,Yes,10,76,No,Non-anginal Pain,0\n", "59,Female,333,90,75,Current,Moderate,3,No,Yes,No,6,177,No,Asymptomatic,1\n", "72,Female,280,139,62,Current,None,0,No,Yes,Yes,10,156,Yes,Typical Angina,1\n", "64,Male,232,144,79,Former,Heavy,5,No,No,Yes,7,104,No,Asymptomatic,1\n", "49,Male,201,172,75,Current,Heavy,2,Yes,No,Yes,5,162,No,Asymptomatic,0\n", "76,Female,225,97,72,Never,None,4,No,Yes,Yes,9,171,Yes,Non-anginal Pain,1\n", "54,Female,333,101,75,Current,Moderate,9,Yes,Yes,Yes,5,173,Yes,Typical Angina,1\n", "76,Male,231,93,77,Current,Moderate,0,No,No,Yes,9,184,No,Typical Angina,1\n", "74,Female,187,150,73,Never,None,9,No,No,No,1,111,No,Atypical Angina,0\n", "66,Female,321,168,95,Former,Heavy,2,No,Yes,Yes,4,199,Yes,Atypical Angina,1\n", "62,Female,200,170,66,Current,None,5,No,No,No,1,86,Yes,Asymptomatic,0\n", "62,Female,244,127,68,Current,None,4,Yes,Yes,No,10,137,Yes,Asymptomatic,1\n", "67,Female,333,92,86,Never,Heavy,8,No,No,No,5,117,Yes,Asymptomatic,1\n", "31,Male,343,144,62,Current,Moderate,3,Yes,No,Yes,9,165,Yes,Non-anginal Pain,0\n", "49,Female,259,143,94,Never,Moderate,5,Yes,No,Yes,1,172,No,Typical Angina,0\n", "27,Male,282,146,89,Never,Moderate,8,No,Yes,Yes,2,146,No,Typical Angina,0\n", "59,Female,164,104,70,Current,Heavy,9,Yes,No,Yes,7,195,Yes,Typical Angina,0\n", "70,Female,200,95,74,Former,None,8,Yes,Yes,Yes,5,107,No,Non-anginal Pain,0\n", "54,Male,346,90,82,Never,None,8,Yes,Yes,No,8,159,No,Asymptomatic,1\n", "66,Male,318,133,79,Current,Moderate,1,Yes,Yes,No,7,180,No,Atypical Angina,1\n", "37,Male,233,170,76,Current,None,0,Yes,Yes,No,9,196,Yes,Asymptomatic,0\n", "74,Female,270,163,61,Former,Moderate,0,No,No,Yes,3,99,Yes,Typical Angina,1\n", "74,Female,184,147,80,Current,Moderate,7,Yes,No,No,5,149,Yes,Atypical Angina,0\n", "33,Female,330,142,98,Current,Heavy,8,Yes,Yes,No,3,75,Yes,Atypical Angina,0\n", "43,Female,342,107,86,Current,Heavy,3,No,No,No,4,98,Yes,Atypical Angina,0\n", "49,Male,343,106,89,Former,Heavy,3,Yes,No,Yes,10,70,No,Asymptomatic,0\n", "31,Female,279,154,63,Current,None,0,No,No,No,8,79,Yes,Atypical Angina,0\n", "48,Male,342,158,71,Never,Heavy,6,Yes,Yes,Yes,7,138,No,Atypical Angina,0\n", "26,Female,319,131,85,Current,None,9,No,No,No,5,171,Yes,Typical Angina,0\n", "46,Male,169,125,74,Never,Moderate,4,Yes,Yes,Yes,7,111,Yes,Typical Angina,0\n", "51,Male,338,175,75,Never,Moderate,9,No,Yes,Yes,4,102,Yes,Typical Angina,1\n", "66,Male,297,178,75,Never,None,9,Yes,No,No,9,98,Yes,Atypical Angina,1\n", "77,Male,248,136,74,Current,Moderate,9,Yes,Yes,No,4,126,Yes,Atypical Angina,1\n", "58,Female,342,175,89,Former,None,4,No,Yes,No,1,194,Yes,Typical Angina,1\n", "68,Male,289,176,70,Former,Moderate,0,No,No,Yes,6,129,Yes,Typical Angina,1\n", "62,Female,198,133,93,Former,Moderate,2,No,No,No,2,78,Yes,Atypical Angina,0\n", "25,Male,304,177,82,Current,Moderate,5,Yes,No,No,9,170,Yes,Asymptomatic,0\n", "45,Male,305,160,77,Current,Heavy,9,No,No,Yes,3,135,No,Typical Angina,0\n", "37,Female,340,118,97,Current,Moderate,0,Yes,No,Yes,5,123,Yes,Non-anginal Pain,0\n", "68,Male,166,103,88,Never,Heavy,1,Yes,No,Yes,5,182,No,Typical Angina,0\n", "45,Female,187,115,86,Former,Heavy,0,No,Yes,No,7,157,No,Non-anginal Pain,0\n", "44,Female,185,148,64,Former,Moderate,9,Yes,Yes,No,3,120,No,Atypical Angina,0\n", "40,Female,194,159,83,Never,None,0,Yes,Yes,Yes,10,111,No,Atypical Angina,0\n", "30,Female,321,95,97,Former,None,7,No,No,Yes,8,135,Yes,Typical Angina,0\n", "59,Female,281,154,80,Never,None,0,Yes,Yes,No,6,177,No,Non-anginal Pain,1\n", "51,Male,273,179,71,Current,Heavy,4,No,Yes,No,10,71,No,Atypical Angina,1\n", "31,Female,226,163,69,Never,Moderate,7,Yes,Yes,No,10,110,No,Asymptomatic,0\n", "54,Female,313,108,79,Never,Moderate,7,No,No,Yes,8,122,No,Non-anginal Pain,1\n", "63,Female,284,120,71,Never,Moderate,7,No,No,No,2,74,No,Typical Angina,1\n", "67,Female,207,126,87,Former,None,9,No,No,No,1,88,Yes,Atypical Angina,1\n", "67,Female,296,90,82,Never,None,9,Yes,No,No,2,123,No,Atypical Angina,1\n", "49,Female,330,94,66,Former,None,0,Yes,Yes,No,4,129,Yes,Atypical Angina,0\n", "78,Male,331,169,86,Current,None,5,Yes,No,No,6,189,Yes,Atypical Angina,1\n", "32,Female,216,132,75,Never,Moderate,6,No,Yes,No,7,185,No,Atypical Angina,0\n", "43,Male,272,107,76,Current,Moderate,6,Yes,No,Yes,7,94,Yes,Atypical Angina,0\n", "49,Female,294,112,72,Never,Moderate,7,No,No,Yes,6,118,No,Typical Angina,0\n", "45,Male,171,174,93,Former,Moderate,6,Yes,No,Yes,7,118,Yes,Asymptomatic,0\n", "42,Male,182,138,74,Current,Moderate,0,No,Yes,No,1,192,Yes,Non-anginal Pain,0\n", "57,Female,289,123,99,Never,Moderate,1,Yes,No,Yes,6,189,Yes,Atypical Angina,1\n", "57,Female,185,126,94,Never,Moderate,1,No,Yes,No,5,106,No,Typical Angina,0\n", "56,Female,262,116,89,Former,Moderate,4,No,Yes,No,1,196,Yes,Non-anginal Pain,1\n", "29,Female,309,149,64,Former,Moderate,5,No,No,Yes,10,159,No,Atypical Angina,0\n", "73,Male,205,102,80,Former,Moderate,3,Yes,No,No,3,161,Yes,Non-anginal Pain,1\n", "52,Male,175,162,78,Current,None,8,Yes,No,No,8,132,Yes,Typical Angina,0\n", "64,Female,241,171,81,Current,None,6,Yes,No,No,7,176,No,Non-anginal Pain,1\n", "61,Female,228,124,97,Never,Moderate,8,Yes,No,No,3,179,Yes,Atypical Angina,1\n", "31,Female,333,168,93,Current,Moderate,4,No,No,No,6,184,No,Asymptomatic,0\n", "59,Female,178,110,93,Former,None,7,Yes,No,Yes,2,89,Yes,Typical Angina,0\n", "55,Female,187,117,75,Never,Moderate,5,Yes,No,Yes,8,172,No,Non-anginal Pain,0\n", "51,Male,150,91,79,Never,None,9,Yes,No,Yes,8,130,No,Atypical Angina,0\n", "79,Male,158,110,73,Never,Moderate,3,No,No,No,3,71,No,Atypical Angina,0\n", "76,Female,220,171,91,Former,None,3,Yes,Yes,Yes,5,135,Yes,Asymptomatic,1\n", "69,Female,272,122,97,Current,None,1,Yes,No,No,5,118,No,Atypical Angina,1\n", "60,Male,150,131,79,Current,None,3,No,Yes,No,5,169,No,Atypical Angina,0\n", "66,Male,297,130,72,Current,None,2,Yes,No,Yes,7,175,Yes,Typical Angina,1\n", "64,Female,243,124,77,Former,None,0,No,Yes,No,10,133,Yes,Typical Angina,1\n", "61,Female,163,101,93,Former,Heavy,6,Yes,Yes,No,6,163,No,Non-anginal Pain,0\n", "44,Female,297,155,70,Former,Heavy,1,No,No,No,5,111,Yes,Typical Angina,0\n", "69,Male,215,109,93,Current,Heavy,4,No,Yes,Yes,6,192,No,Typical Angina,1\n", "50,Female,167,115,79,Current,Heavy,5,No,Yes,Yes,10,91,No,Typical Angina,0\n", "67,Male,342,146,70,Former,Moderate,2,No,No,No,7,136,No,Asymptomatic,1\n", "51,Male,225,170,88,Former,Moderate,4,No,Yes,Yes,3,173,No,Typical Angina,1\n", "62,Male,229,155,97,Former,Heavy,5,No,No,No,5,101,Yes,Typical Angina,1\n", "31,Female,194,131,91,Never,Moderate,1,Yes,Yes,No,10,186,Yes,Non-anginal Pain,0\n", "42,Male,253,104,82,Former,Heavy,3,No,No,No,6,172,Yes,Non-anginal Pain,0\n", "46,Male,218,140,65,Former,Heavy,5,Yes,No,No,7,186,No,Asymptomatic,0\n", "53,Female,151,158,78,Current,None,9,No,No,Yes,8,122,No,Non-anginal Pain,0\n", "71,Female,269,120,63,Never,Heavy,7,Yes,No,Yes,3,116,No,Asymptomatic,1\n", "64,Male,328,178,72,Current,Heavy,9,No,Yes,No,6,144,Yes,Typical Angina,1\n", "28,Female,261,139,90,Never,Moderate,4,No,Yes,Yes,7,170,Yes,Atypical Angina,0\n", "63,Female,316,120,77,Current,Moderate,8,No,No,No,7,116,No,Typical Angina,1\n", "66,Female,215,116,66,Current,None,0,Yes,Yes,No,10,116,No,Asymptomatic,1\n", "51,Male,198,137,69,Never,Heavy,2,No,No,No,6,173,Yes,Asymptomatic,0\n", "29,Female,218,93,78,Never,Heavy,2,No,Yes,Yes,1,110,Yes,Typical Angina,0\n", "70,Male,254,157,76,Current,None,1,Yes,Yes,Yes,7,131,No,Asymptomatic,1\n", "52,Male,339,124,77,Former,Moderate,0,No,Yes,Yes,7,95,Yes,Typical Angina,1\n", "55,Female,265,109,83,Current,Moderate,7,Yes,No,No,10,183,Yes,Asymptomatic,1\n", "38,Female,224,93,67,Former,None,3,No,Yes,Yes,1,154,No,Typical Angina,0\n", "48,Male,163,128,93,Former,Moderate,2,No,No,No,8,117,Yes,Asymptomatic,0\n", "25,Female,167,137,93,Former,Heavy,9,Yes,No,No,5,87,No,Atypical Angina,0\n", "34,Male,308,94,64,Current,Moderate,3,Yes,Yes,Yes,7,183,No,Non-anginal Pain,0\n", "50,Male,222,91,90,Current,Moderate,7,Yes,Yes,Yes,4,99,No,Typical Angina,0\n", "31,Male,341,130,89,Current,None,9,No,No,Yes,6,127,No,Typical Angina,0\n", "25,Female,190,152,76,Current,Heavy,6,Yes,Yes,Yes,3,152,No,Asymptomatic,0\n", "59,Female,154,114,99,Former,None,6,No,No,Yes,7,182,Yes,Atypical Angina,0\n", "68,Female,223,170,71,Former,Moderate,4,No,Yes,No,7,104,No,Asymptomatic,1\n", "56,Male,243,115,71,Former,Heavy,3,No,Yes,Yes,2,72,No,Typical Angina,1\n", "59,Male,265,147,72,Never,Heavy,4,Yes,No,Yes,5,109,Yes,Asymptomatic,1\n", "28,Male,283,139,65,Never,Moderate,3,No,No,Yes,6,159,No,Non-anginal Pain,0\n", "79,Male,287,97,72,Never,Moderate,7,Yes,No,No,2,83,Yes,Atypical Angina,1\n", "63,Female,202,113,82,Current,Moderate,3,No,Yes,Yes,4,168,No,Typical Angina,1\n", "72,Female,314,103,92,Current,Heavy,7,No,Yes,Yes,2,81,Yes,Typical Angina,1\n", "39,Female,227,142,81,Former,None,9,No,Yes,Yes,7,139,No,Atypical Angina,0\n", "37,Female,283,115,80,Former,Moderate,6,Yes,Yes,No,4,86,No,Atypical Angina,0\n", "46,Male,189,112,71,Never,Heavy,6,No,No,Yes,3,129,Yes,Typical Angina,0\n", "53,Male,257,112,69,Former,Moderate,5,Yes,No,Yes,3,93,Yes,Atypical Angina,1\n", "27,Female,246,160,75,Never,None,2,No,Yes,Yes,5,94,No,Typical Angina,0\n", "50,Female,219,152,88,Current,Moderate,2,Yes,No,No,10,193,Yes,Atypical Angina,0\n", "62,Male,312,133,73,Never,Heavy,2,Yes,No,No,10,187,No,Non-anginal Pain,1\n", "72,Male,247,156,94,Never,None,8,Yes,No,Yes,5,119,Yes,Non-anginal Pain,1\n", "73,Female,317,171,79,Never,Moderate,9,No,No,Yes,8,139,Yes,Asymptomatic,1\n", "66,Male,164,154,85,Former,Heavy,2,No,Yes,Yes,9,71,No,Typical Angina,0\n", "57,Female,198,116,66,Former,None,9,No,No,No,9,111,No,Asymptomatic,0\n", "29,Female,324,174,77,Never,Heavy,2,Yes,Yes,No,3,99,No,Non-anginal Pain,0\n", "52,Male,198,142,68,Never,Heavy,0,No,Yes,No,4,136,Yes,Atypical Angina,0\n", "56,Male,191,172,70,Former,Heavy,5,Yes,Yes,No,10,148,Yes,Non-anginal Pain,0\n", "25,Female,201,111,72,Never,None,5,No,Yes,Yes,4,161,No,Atypical Angina,0\n", "36,Female,160,136,95,Former,None,5,No,Yes,Yes,4,116,Yes,Non-anginal Pain,0\n", "58,Female,165,166,65,Former,None,7,No,Yes,No,2,171,No,Asymptomatic,0\n", "44,Female,343,174,83,Never,None,9,No,Yes,No,7,146,Yes,Typical Angina,0\n", "28,Male,323,113,72,Former,Heavy,0,Yes,Yes,Yes,8,82,No,Non-anginal Pain,0\n", "37,Female,298,179,62,Current,Heavy,9,Yes,No,No,9,82,No,Typical Angina,0\n", "56,Male,247,113,76,Never,Heavy,1,Yes,No,No,9,86,Yes,Asymptomatic,1\n", "41,Female,328,96,69,Former,Moderate,0,No,Yes,No,8,190,Yes,Atypical Angina,0\n", "70,Female,180,168,72,Former,None,3,No,No,No,6,104,Yes,Non-anginal Pain,0\n", "79,Male,264,142,70,Current,None,4,Yes,Yes,No,6,111,No,Atypical Angina,1\n", "65,Male,182,157,94,Former,Heavy,0,No,No,No,1,184,Yes,Asymptomatic,0\n", "53,Female,193,164,89,Current,Moderate,4,No,No,Yes,10,152,No,Typical Angina,0\n", "37,Female,309,98,88,Current,Moderate,6,No,No,No,9,175,No,Asymptomatic,0\n", "78,Male,308,139,69,Never,Heavy,2,No,Yes,No,2,80,Yes,Asymptomatic,1\n", "40,Female,236,162,88,Former,Heavy,4,Yes,No,Yes,10,177,No,Non-anginal Pain,0\n", "64,Female,203,92,75,Current,Heavy,8,No,No,No,1,183,No,Non-anginal Pain,1\n", "55,Male,300,121,99,Never,Heavy,2,Yes,Yes,No,10,116,No,Atypical Angina,1\n", "53,Male,209,130,81,Former,Moderate,3,Yes,Yes,Yes,8,99,Yes,Typical Angina,1\n", "33,Female,273,104,87,Former,None,0,Yes,Yes,Yes,9,106,Yes,Atypical Angina,0\n", "54,Male,294,168,63,Never,Heavy,0,No,Yes,Yes,2,175,No,Asymptomatic,1\n", "47,Female,285,118,95,Never,Moderate,5,Yes,Yes,Yes,6,163,Yes,Asymptomatic,0\n", "40,Female,177,95,70,Former,Moderate,2,Yes,Yes,Yes,6,158,No,Typical Angina,0\n", "73,Female,252,175,80,Current,Heavy,6,Yes,No,Yes,7,192,Yes,Typical Angina,1\n", "52,Male,301,179,99,Current,Heavy,3,No,No,Yes,7,115,No,Atypical Angina,1\n", "65,Male,231,151,83,Never,None,3,No,No,No,3,103,No,Atypical Angina,1\n", "73,Male,184,107,81,Former,Moderate,9,No,No,Yes,4,140,Yes,Non-anginal Pain,0\n", "57,Male,320,99,83,Former,Heavy,8,Yes,Yes,No,9,184,No,Asymptomatic,1\n", "63,Female,302,134,98,Never,Heavy,4,Yes,Yes,Yes,4,167,No,Atypical Angina,1\n", "76,Female,309,116,70,Never,None,8,Yes,Yes,No,7,191,No,Typical Angina,1\n", "58,Female,242,95,63,Never,None,1,No,No,Yes,10,168,No,Typical Angina,1\n", "42,Female,343,102,87,Never,Moderate,9,Yes,Yes,Yes,8,196,Yes,Asymptomatic,0\n", "30,Male,315,161,92,Never,None,9,No,Yes,Yes,4,133,Yes,Typical Angina,0\n", "35,Male,328,148,79,Former,Moderate,2,Yes,No,Yes,8,128,Yes,Atypical Angina,0\n", "30,Male,159,98,65,Current,Moderate,4,Yes,Yes,No,6,174,No,Non-anginal Pain,0\n", "51,Female,218,114,62,Current,Moderate,2,No,Yes,Yes,7,176,No,Atypical Angina,1\n", "48,Female,339,164,63,Former,Heavy,0,No,No,Yes,2,98,No,Asymptomatic,0\n", "65,Male,151,107,64,Former,Moderate,4,Yes,Yes,Yes,10,70,No,Typical Angina,0\n", "64,Female,333,113,63,Current,None,2,Yes,Yes,No,3,95,Yes,Asymptomatic,1\n", "42,Female,261,122,92,Never,None,0,No,No,No,6,128,No,Atypical Angina,0\n", "42,Male,156,111,95,Current,Heavy,9,Yes,Yes,Yes,7,152,Yes,Asymptomatic,0\n", "48,Male,221,116,64,Never,Heavy,0,Yes,No,No,4,92,Yes,Asymptomatic,0\n", "26,Female,241,120,67,Current,None,5,No,Yes,Yes,6,172,No,Non-anginal Pain,0\n", "76,Male,216,139,64,Current,None,2,Yes,No,Yes,2,182,No,Asymptomatic,1\n", "36,Female,341,104,90,Never,Moderate,0,No,No,No,8,179,Yes,Typical Angina,0\n", "33,Male,212,120,78,Former,Heavy,9,Yes,Yes,No,2,150,Yes,Atypical Angina,0\n", "51,Male,227,147,61,Former,None,9,Yes,Yes,No,1,111,Yes,Non-anginal Pain,1\n", "68,Male,265,90,89,Never,Heavy,5,Yes,No,No,8,107,No,Asymptomatic,1\n", "45,Female,157,115,75,Current,Heavy,2,Yes,Yes,No,10,175,No,Asymptomatic,0\n", "58,Female,312,134,79,Current,Heavy,3,Yes,No,No,7,198,Yes,Atypical Angina,1\n", "35,Female,162,102,82,Never,None,5,No,Yes,No,8,149,No,Atypical Angina,0\n", "48,Female,231,153,65,Current,None,8,No,No,No,2,72,No,Atypical Angina,0\n", "33,Female,198,178,67,Current,Heavy,3,No,No,Yes,3,97,No,Non-anginal Pain,0\n", "65,Male,282,150,69,Never,Moderate,4,No,No,Yes,4,189,Yes,Typical Angina,1\n", "50,Female,227,161,95,Current,Moderate,9,Yes,Yes,Yes,10,97,No,Typical Angina,0\n", "34,Male,186,134,82,Current,Heavy,5,Yes,No,No,1,132,No,Atypical Angina,0\n", "37,Male,162,130,78,Former,Heavy,7,No,No,No,4,106,Yes,Atypical Angina,0\n", "62,Male,206,177,83,Former,Moderate,5,Yes,Yes,Yes,5,110,Yes,Non-anginal Pain,1\n", "33,Male,274,140,82,Former,None,5,Yes,No,No,7,147,Yes,Typical Angina,0\n", "41,Female,320,159,61,Former,Moderate,6,No,Yes,Yes,7,144,Yes,Asymptomatic,0\n", "37,Male,334,166,72,Current,None,9,No,No,Yes,10,82,No,Atypical Angina,0\n", "64,Female,152,145,87,Never,None,2,Yes,Yes,Yes,7,97,No,Atypical Angina,0\n", "41,Male,228,162,72,Current,None,4,Yes,No,No,4,139,Yes,Atypical Angina,0\n", "46,Male,341,158,73,Former,Moderate,8,No,No,Yes,8,193,Yes,Typical Angina,0\n", "29,Male,252,144,84,Never,Heavy,2,No,Yes,Yes,8,170,Yes,Typical Angina,0\n", "42,Male,347,141,61,Never,Heavy,7,No,Yes,No,1,155,No,Non-anginal Pain,0\n", "55,Male,305,110,62,Never,Heavy,9,No,No,Yes,5,163,Yes,Asymptomatic,1\n", "50,Female,281,120,92,Current,Heavy,7,No,Yes,Yes,6,106,Yes,Non-anginal Pain,0\n", "72,Male,242,175,71,Former,None,5,No,No,Yes,9,132,No,Non-anginal Pain,1\n", "55,Female,219,166,89,Former,None,5,Yes,No,No,8,113,No,Atypical Angina,1\n", "45,Male,284,91,71,Current,None,8,Yes,Yes,No,5,106,Yes,Non-anginal Pain,0\n", "65,Female,303,162,74,Never,Heavy,5,No,Yes,Yes,10,135,No,Typical Angina,1\n", "70,Female,253,138,61,Former,Moderate,0,No,No,Yes,9,179,No,Non-anginal Pain,1\n", "58,Female,166,161,70,Never,Heavy,1,No,No,No,1,150,Yes,Typical Angina,0\n", "74,Male,255,112,99,Former,Moderate,8,Yes,Yes,No,8,84,No,Non-anginal Pain,1\n", "63,Female,187,178,69,Current,Heavy,4,No,No,No,5,128,No,Non-anginal Pain,0\n", "25,Female,305,100,76,Current,Heavy,2,Yes,No,No,9,107,No,Asymptomatic,0\n", "36,Female,161,178,98,Never,Moderate,7,No,Yes,No,4,185,Yes,Typical Angina,0\n", "79,Male,245,132,71,Current,Moderate,6,Yes,No,No,2,185,No,Typical Angina,1\n", "73,Female,226,164,61,Never,Moderate,0,Yes,Yes,Yes,2,144,No,Non-anginal Pain,1\n", "28,Female,243,91,84,Current,None,8,Yes,No,Yes,9,138,No,Asymptomatic,0\n", "27,Female,239,143,87,Current,None,0,Yes,Yes,No,1,78,Yes,Typical Angina,0\n", "26,Female,298,162,67,Never,Moderate,3,Yes,Yes,Yes,10,98,No,Asymptomatic,0\n", "29,Male,224,118,69,Never,None,1,Yes,Yes,No,5,145,No,Non-anginal Pain,0\n", "69,Female,223,147,66,Former,None,4,Yes,Yes,Yes,1,118,No,Non-anginal Pain,1\n", "38,Female,217,104,65,Never,Moderate,2,Yes,Yes,Yes,2,75,Yes,Atypical Angina,0\n", "37,Female,349,148,62,Former,Moderate,5,No,No,No,6,144,Yes,Asymptomatic,0\n", "49,Male,315,144,77,Former,None,4,Yes,Yes,No,2,127,No,Atypical Angina,0\n", "54,Male,304,112,86,Former,None,8,Yes,No,Yes,6,111,No,Asymptomatic,1\n", "26,Female,215,100,74,Never,Heavy,7,No,Yes,No,10,135,No,Atypical Angina,0\n", "28,Female,220,102,73,Current,Moderate,7,Yes,Yes,Yes,10,102,No,Typical Angina,0\n", "70,Female,346,110,62,Never,None,1,Yes,Yes,No,8,130,Yes,Asymptomatic,1\n", "52,Male,248,159,76,Former,Moderate,9,No,Yes,Yes,2,152,Yes,Asymptomatic,1\n", "56,Female,269,111,86,Never,Heavy,5,No,Yes,Yes,10,120,No,Non-anginal Pain,1\n", "78,Female,334,145,76,Never,None,6,No,No,No,10,196,Yes,Typical Angina,1\n", "79,Male,151,179,81,Never,Moderate,4,Yes,No,Yes,8,189,Yes,Asymptomatic,0\n", "60,Female,326,151,68,Former,None,8,Yes,Yes,No,5,174,Yes,Atypical Angina,1\n", "53,Male,226,116,82,Current,None,6,No,No,Yes,5,161,Yes,Asymptomatic,1\"\"\"\n", "\n", "# Read the CSV data from the string\n", "df = pd.read_csv(StringIO(csv_data))\n", "\n", "# Encode categorical columns\n", "categorical_columns = ['Gender', 'Smoking', 'Alcohol Intake', 'Family History', \n", " 'Diabetes', 'Obesity', 'Exercise Induced Angina', 'Chest Pain Type']\n", "for col in categorical_columns:\n", " df[col] = df[col].astype('category').cat.codes\n", "\n", "# Split the dataset\n", "X = df.drop(columns=['Heart Disease'])\n", "y = df['Heart Disease']\n", "\n", "# Split the dataset\n", "X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)\n", "\n", "# Train a LightGBM model\n", "model = lgb.LGBMClassifier()\n", "model.fit(X_train, y_train)\n" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "from ydata_profiling import ProfileReport\n", "\n", "profile = ProfileReport(df, title=\"Profiling Report\")" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Summarize dataset: 100%|██████████| 74/74 [00:03<00:00, 24.16it/s, Completed] \n", "Generate report structure: 100%|██████████| 1/1 [00:01<00:00, 1.41s/it]\n", "Render HTML: 100%|██████████| 1/1 [00:00<00:00, 1.03it/s]\n" ] }, { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/plain": [] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "profile" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
LogisticRegression()
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.
" ], "text/plain": [ "LogisticRegression()" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from sklearn.linear_model import LogisticRegression\n", "\n", "# Select only Age and Cholesterol columns along with the target variable\n", "df = df[['Age', 'Cholesterol', 'Heart Disease']]\n", "\n", "# Split the dataset\n", "X = df[['Age', 'Cholesterol']]\n", "y = df['Heart Disease']\n", "\n", "# Split the dataset\n", "X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)\n", "\n", "# Train a logistic regression model\n", "model = LogisticRegression()\n", "model.fit(X_train, y_train)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Function to compute precision and recall\n", "def compute_precision_recall(threshold):\n", " y_prob = model.predict_proba(X_test)[:, 1]\n", " y_pred = (y_prob >= threshold).astype(int)\n", " precision = precision_score(y_test, y_pred)\n", " recall = recall_score(y_test, y_pred)\n", " return precision, recall" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(np.float64(1.0), np.float64(1.0))" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "compute_precision_recall(0.5)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "# import the precision_recall_curve function\n", "from sklearn.metrics import precision_recall_curve\n", "\n", "# use the precision_recall_curve function to compute precision and recall for all possible thresholds\n", "precisions, recalls, thresholds = precision_recall_curve(y_test, model.predict_proba(X_test)[:, 1])\n", "\n", "# put them into a dataframe\n", "df_pr = pd.DataFrame({\n", " 'precision': precisions,\n", " 'recall': recalls,\n", " 'threshold': np.concatenate([[0], thresholds])\n", "})\n" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "def plot_precision_recall(threshold):\n", "\n", " # Use the precision_recall_curve function to compute precision and recall for all possible thresholds\n", " precisions, recalls, thresholds = precision_recall_curve(y_test, model.predict_proba(X_test)[:, 1])\n", "\n", " # Create a DataFrame for precision and recall values\n", " df_pr = pd.DataFrame({\n", " 'threshold': np.concatenate([[0], thresholds]),\n", " 'precision': precisions,\n", " 'recall': recalls\n", " })\n", "\n", " # Create the plot with Plotly Express\n", " fig = px.line(df_pr, x='threshold', y='precision', title='Precision and Recall at Different Thresholds', labels={'threshold': 'Threshold', 'value': 'Score'})\n", " fig.add_scatter(x=df_pr['threshold'], y=df_pr['recall'], mode='lines', name='Recall')\n", "\n", " # Add a vertical line for the specified threshold\n", " fig.add_vline(x=threshold, line=dict(color='black', dash='dash'), annotation_text=f'Threshold: {threshold}', annotation_position=\"top right\")\n", "\n", " return fig" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "from sklearn.metrics import auc\n", "from sklearn.metrics import precision_recall_curve\n", "from sklearn.metrics import precision_score\n", "from sklearn.metrics import recall_score\n", "from sklearn.metrics import roc_curve\n", "\n", "# Function to plot the ROC curve\n", "def plot_roc_curve(threshold):\n", " # Compute ROC curve and AUC\n", " fpr, tpr, thresholds = roc_curve(y_test, model.predict_proba(X_test)[:, 1])\n", " roc_auc = auc(fpr, tpr)\n", "\n", " # Create a DataFrame for the ROC curve\n", " df_roc = pd.DataFrame({\n", " 'fpr': fpr,\n", " 'tpr': tpr,\n", " 'threshold': thresholds\n", " })\n", "\n", " # Create the plot with Plotly Express\n", " fig = px.line(df_roc, x='fpr', y='tpr', title=f'ROC Curve (AUC = {roc_auc:.2f})', labels={'fpr': 'False Positive Rate', 'tpr': 'True Positive Rate'})\n", " \n", " # Add a diagonal line for the random model\n", " fig.add_scatter(x=[0, 1], y=[0, 1], mode='lines', line=dict(color='gray', dash='dash'), name='Random Model')\n", "\n", " # Add a vertical line for the specified threshold\n", " threshold_index = (np.abs(thresholds - threshold)).argmin()\n", " fig.add_vline(x=fpr[threshold_index], line=dict(color='black', dash='dash'), annotation_text=f'Threshold: {threshold}', annotation_position=\"bottom right\")\n", "\n", " return fig" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "ename": "ValueError", "evalue": "Mime type rendering requires nbformat>=4.2.0 but it is not installed", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/IPython/core/formatters.py:925\u001b[0m, in \u001b[0;36mIPythonDisplayFormatter.__call__\u001b[0;34m(self, obj)\u001b[0m\n\u001b[1;32m 923\u001b[0m method \u001b[38;5;241m=\u001b[39m get_real_method(obj, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mprint_method)\n\u001b[1;32m 924\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m method \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[0;32m--> 925\u001b[0m \u001b[43mmethod\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 926\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m\n", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/plotly/basedatatypes.py:832\u001b[0m, in \u001b[0;36mBaseFigure._ipython_display_\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 829\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mplotly\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mio\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mpio\u001b[39;00m\n\u001b[1;32m 831\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m pio\u001b[38;5;241m.\u001b[39mrenderers\u001b[38;5;241m.\u001b[39mrender_on_display \u001b[38;5;129;01mand\u001b[39;00m pio\u001b[38;5;241m.\u001b[39mrenderers\u001b[38;5;241m.\u001b[39mdefault:\n\u001b[0;32m--> 832\u001b[0m \u001b[43mpio\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mshow\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 833\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 834\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;28mrepr\u001b[39m(\u001b[38;5;28mself\u001b[39m))\n", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/plotly/io/_renderers.py:394\u001b[0m, in \u001b[0;36mshow\u001b[0;34m(fig, renderer, validate, **kwargs)\u001b[0m\n\u001b[1;32m 389\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\n\u001b[1;32m 390\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mMime type rendering requires ipython but it is not installed\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 391\u001b[0m )\n\u001b[1;32m 393\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m nbformat \u001b[38;5;129;01mor\u001b[39;00m Version(nbformat\u001b[38;5;241m.\u001b[39m__version__) \u001b[38;5;241m<\u001b[39m Version(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m4.2.0\u001b[39m\u001b[38;5;124m\"\u001b[39m):\n\u001b[0;32m--> 394\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\n\u001b[1;32m 395\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mMime type rendering requires nbformat>=4.2.0 but it is not installed\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 396\u001b[0m )\n\u001b[1;32m 398\u001b[0m ipython_display\u001b[38;5;241m.\u001b[39mdisplay(bundle, raw\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n\u001b[1;32m 400\u001b[0m \u001b[38;5;66;03m# external renderers\u001b[39;00m\n", "\u001b[0;31mValueError\u001b[0m: Mime type rendering requires nbformat>=4.2.0 but it is not installed" ] }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "False Positive Rate=%{x}
True Positive Rate=%{y}", "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "", "orientation": "v", "showlegend": false, "type": "scatter", "x": [ 0, 0, 0, 0.00847457627118644, 0.00847457627118644, 0.025423728813559324, 0.025423728813559324, 0.0423728813559322, 0.0423728813559322, 0.05084745762711865, 0.05084745762711865, 0.06779661016949153, 0.06779661016949153, 0.07627118644067797, 0.07627118644067797, 0.0847457627118644, 0.0847457627118644, 0.1016949152542373, 0.1016949152542373, 0.11016949152542373, 0.11016949152542373, 0.11864406779661017, 0.11864406779661017, 0.11864406779661017, 0.13559322033898305, 0.13559322033898305, 0.1440677966101695, 0.1440677966101695, 0.211864406779661, 0.211864406779661, 0.3050847457627119, 0.3050847457627119, 0.3728813559322034, 0.3728813559322034, 0.423728813559322, 0.4406779661016949, 1 ], "xaxis": "x", "y": [ 0, 0.012195121951219513, 0.6097560975609756, 0.6097560975609756, 0.6463414634146342, 0.6463414634146342, 0.6707317073170732, 0.6707317073170732, 0.6829268292682927, 0.6829268292682927, 0.7073170731707317, 0.7073170731707317, 0.7560975609756098, 0.7560975609756098, 0.7804878048780488, 0.7804878048780488, 0.7926829268292683, 0.7926829268292683, 0.8414634146341463, 0.8414634146341463, 0.8902439024390244, 0.8902439024390244, 0.9146341463414634, 0.926829268292683, 0.926829268292683, 0.9390243902439024, 0.9390243902439024, 0.9634146341463414, 0.9634146341463414, 0.975609756097561, 0.975609756097561, 0.9878048780487805, 0.9878048780487805, 1, 1, 1, 1 ], "yaxis": "y" }, { "line": { "color": "gray", "dash": "dash" }, "mode": "lines", "name": "Random Model", "type": "scatter", "x": [ 0, 1 ], "y": [ 0, 1 ] } ], "layout": { "annotations": [ { "showarrow": false, "text": "Threshold: 0.5", "x": 0.11016949152542373, "xanchor": "left", "xref": "x", "y": 0, "yanchor": "bottom", "yref": "y domain" } ], "legend": { "tracegroupgap": 0 }, "shapes": [ { "line": { "color": "black", "dash": "dash" }, "type": "line", "x0": 0.11016949152542373, "x1": 0.11016949152542373, "xref": "x", "y0": 0, "y1": 1, "yref": "y domain" } ], "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "ROC Curve (AUC = 0.96)" }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "False Positive Rate" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "True Positive Rate" } } } }, "text/html": [ "
\n", "
" ], "text/plain": [ "Figure({\n", " 'data': [{'hovertemplate': 'False Positive Rate=%{x}
True Positive Rate=%{y}',\n", " 'legendgroup': '',\n", " 'line': {'color': '#636efa', 'dash': 'solid'},\n", " 'marker': {'symbol': 'circle'},\n", " 'mode': 'lines',\n", " 'name': '',\n", " 'orientation': 'v',\n", " 'showlegend': False,\n", " 'type': 'scatter',\n", " 'x': array([0. , 0. , 0. , 0.00847458, 0.00847458, 0.02542373,\n", " 0.02542373, 0.04237288, 0.04237288, 0.05084746, 0.05084746, 0.06779661,\n", " 0.06779661, 0.07627119, 0.07627119, 0.08474576, 0.08474576, 0.10169492,\n", " 0.10169492, 0.11016949, 0.11016949, 0.11864407, 0.11864407, 0.11864407,\n", " 0.13559322, 0.13559322, 0.1440678 , 0.1440678 , 0.21186441, 0.21186441,\n", " 0.30508475, 0.30508475, 0.37288136, 0.37288136, 0.42372881, 0.44067797,\n", " 1. ]),\n", " 'xaxis': 'x',\n", " 'y': array([0. , 0.01219512, 0.6097561 , 0.6097561 , 0.64634146, 0.64634146,\n", " 0.67073171, 0.67073171, 0.68292683, 0.68292683, 0.70731707, 0.70731707,\n", " 0.75609756, 0.75609756, 0.7804878 , 0.7804878 , 0.79268293, 0.79268293,\n", " 0.84146341, 0.84146341, 0.8902439 , 0.8902439 , 0.91463415, 0.92682927,\n", " 0.92682927, 0.93902439, 0.93902439, 0.96341463, 0.96341463, 0.97560976,\n", " 0.97560976, 0.98780488, 0.98780488, 1. , 1. , 1. ,\n", " 1. ]),\n", " 'yaxis': 'y'},\n", " {'line': {'color': 'gray', 'dash': 'dash'},\n", " 'mode': 'lines',\n", " 'name': 'Random Model',\n", " 'type': 'scatter',\n", " 'x': [0, 1],\n", " 'y': [0, 1]}],\n", " 'layout': {'annotations': [{'showarrow': False,\n", " 'text': 'Threshold: 0.5',\n", " 'x': np.float64(0.11016949152542373),\n", " 'xanchor': 'left',\n", " 'xref': 'x',\n", " 'y': 0,\n", " 'yanchor': 'bottom',\n", " 'yref': 'y domain'}],\n", " 'legend': {'tracegroupgap': 0},\n", " 'shapes': [{'line': {'color': 'black', 'dash': 'dash'},\n", " 'type': 'line',\n", " 'x0': np.float64(0.11016949152542373),\n", " 'x1': np.float64(0.11016949152542373),\n", " 'xref': 'x',\n", " 'y0': 0,\n", " 'y1': 1,\n", " 'yref': 'y domain'}],\n", " 'template': '...',\n", " 'title': {'text': 'ROC Curve (AUC = 0.96)'},\n", " 'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title': {'text': 'False Positive Rate'}},\n", " 'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title': {'text': 'True Positive Rate'}}}\n", "})" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "plot_roc_curve(0.5)" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "ename": "ValueError", "evalue": "Mime type rendering requires nbformat>=4.2.0 but it is not installed", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/IPython/core/formatters.py:925\u001b[0m, in \u001b[0;36mIPythonDisplayFormatter.__call__\u001b[0;34m(self, obj)\u001b[0m\n\u001b[1;32m 923\u001b[0m method \u001b[38;5;241m=\u001b[39m get_real_method(obj, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mprint_method)\n\u001b[1;32m 924\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m method \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[0;32m--> 925\u001b[0m \u001b[43mmethod\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 926\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;01mTrue\u001b[39;00m\n", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/plotly/basedatatypes.py:832\u001b[0m, in \u001b[0;36mBaseFigure._ipython_display_\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 829\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mplotly\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mio\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mpio\u001b[39;00m\n\u001b[1;32m 831\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m pio\u001b[38;5;241m.\u001b[39mrenderers\u001b[38;5;241m.\u001b[39mrender_on_display \u001b[38;5;129;01mand\u001b[39;00m pio\u001b[38;5;241m.\u001b[39mrenderers\u001b[38;5;241m.\u001b[39mdefault:\n\u001b[0;32m--> 832\u001b[0m \u001b[43mpio\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mshow\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[1;32m 833\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 834\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;28mrepr\u001b[39m(\u001b[38;5;28mself\u001b[39m))\n", "File \u001b[0;32m~/Dev/gradio-lite-apps/.venv/lib/python3.11/site-packages/plotly/io/_renderers.py:394\u001b[0m, in \u001b[0;36mshow\u001b[0;34m(fig, renderer, validate, **kwargs)\u001b[0m\n\u001b[1;32m 389\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\n\u001b[1;32m 390\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mMime type rendering requires ipython but it is not installed\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 391\u001b[0m )\n\u001b[1;32m 393\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m nbformat \u001b[38;5;129;01mor\u001b[39;00m Version(nbformat\u001b[38;5;241m.\u001b[39m__version__) \u001b[38;5;241m<\u001b[39m Version(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m4.2.0\u001b[39m\u001b[38;5;124m\"\u001b[39m):\n\u001b[0;32m--> 394\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\n\u001b[1;32m 395\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mMime type rendering requires nbformat>=4.2.0 but it is not installed\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 396\u001b[0m )\n\u001b[1;32m 398\u001b[0m ipython_display\u001b[38;5;241m.\u001b[39mdisplay(bundle, raw\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m)\n\u001b[1;32m 400\u001b[0m \u001b[38;5;66;03m# external renderers\u001b[39;00m\n", "\u001b[0;31mValueError\u001b[0m: Mime type rendering requires nbformat>=4.2.0 but it is not installed" ] }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "Threshold=%{x}
precision=%{y}", "legendgroup": "", "line": { "color": "#636efa", "dash": "solid" }, "marker": { "symbol": "circle" }, "mode": "lines", "name": "", "orientation": "v", "showlegend": false, "type": "scatter", "x": [ 0, 0.000034548194271006185, 0.00006453252589356062, 0.00007151044597071787, 0.00009910023653399782, 0.00014001154168286317, 0.00024470181907378774, 0.00028528786335298416, 0.00033498452552376695, 0.00034442025787430433, 0.0004353954766362508, 0.0004531423607039207, 0.0005584556833138502, 0.0006240686529474798, 0.0007187279612967197, 0.0008042268161956215, 0.0008481300427484978, 0.0009096939201249951, 0.0009603517903352543, 0.000987385260398712, 0.0010914457389143118, 0.0011021857621919976, 0.0011510103578073387, 0.0012391179075014434, 0.001266262255293708, 0.0013192077628531422, 0.0013845911067189166, 0.001537736369895739, 0.001730988566969585, 0.0019295093499422564, 0.00216611889181732, 0.0022896263501143736, 0.002328650186385384, 0.002503346163515589, 0.0026272640697428636, 0.002743460996802766, 0.00292438393030854, 0.003013676547703569, 0.0035982099914621526, 0.004441724403543251, 0.004866856591778282, 0.004954740555947143, 0.005435910508699533, 0.0066511374907596114, 0.006887865686925095, 0.008334789689003416, 0.008424935428795707, 0.009623110714497974, 0.010652649380166856, 0.011525671837817995, 0.012323724460071647, 0.012910458856041607, 0.013867970241471938, 0.015960362175515438, 0.0200202680278053, 0.02381789091861043, 0.025327451282909818, 0.026674353409753195, 0.02695746046505507, 0.027342034075189422, 0.032366023074241454, 0.03403975027133503, 0.03471571961179993, 0.03574092733638251, 0.03709661258139988, 0.03722943543894732, 0.03731479393231948, 0.03851231519320207, 0.03895516650574836, 0.04000890475136241, 0.040861880158557615, 0.043788393194223514, 0.04688036902643263, 0.04846579725257091, 0.053186689464403886, 0.06070964296278342, 0.06766559391763198, 0.07134532528464507, 0.0727257494444137, 0.07934044133748386, 0.0823095484557296, 0.0835761058659629, 0.08378055614425318, 0.08602056662732636, 0.09921202044374083, 0.10337837206558037, 0.1264308883256943, 0.12980037733364355, 0.1330920702973557, 0.1356491304777813, 0.13805450229964145, 0.14375602844325608, 0.17183224878025974, 0.17406446917721874, 0.18989419345944497, 0.20519965648489077, 0.21338801190839238, 0.2138359203876728, 0.2451993835523457, 0.26069641573877544, 0.2648997958069915, 0.27040279995256794, 0.2730202492401857, 0.28144764610823275, 0.2839177443209992, 0.2978925814407434, 0.2981714998401919, 0.30474397821765586, 0.3075537173387339, 0.3088523636366073, 0.32350006065787984, 0.33283624447480015, 0.38821753831462696, 0.40582528545289576, 0.4549609117589885, 0.4877914349703142, 0.49956544705594613, 0.5013495494567284, 0.5022775401673832, 0.5101510871353715, 0.5510606993273649, 0.5638545762211454, 0.5718409008513989, 0.6009137737042354, 0.6081256938909353, 0.6200995111417342, 0.6653328254659358, 0.6796669125835724, 0.68859179537547, 0.6924352054142089, 0.7270265078734721, 0.7279696788043669, 0.7301126717875657, 0.7446682902846677, 0.7508069486053491, 0.7601930930701734, 0.7775376768630032, 0.7781790927033897, 0.8003081806882765, 0.8016583121580312, 0.80391795969104, 0.8045024385897304, 0.8060396104397644, 0.8261196456580742, 0.8317864594636107, 0.8540095116481246, 0.8550623187746407, 0.8639427476360391, 0.8680289457985417, 0.8816366064984136, 0.8865986821612131, 0.8960776371854402, 0.905982045390041, 0.9109119565784357, 0.9139979537619973, 0.9261397393764456, 0.9276997312390163, 0.9395150749848132, 0.9412646070579443, 0.9460192646807146, 0.9487879799373393, 0.9499589150801312, 0.9514835590125791, 0.9539856384585967, 0.9550882352110298, 0.9572183279556133, 0.959199560015766, 0.9602732826901171, 0.961003720490224, 0.9626457570107576, 0.9633813003188959, 0.9647557302602627, 0.9650875329601932, 0.9667598805355383, 0.9668362392109016, 0.9689012543044571, 0.9701136145009539, 0.9721819529455317, 0.9788370614912307, 0.9812902763534186, 0.9823069778971736, 0.983208198090965, 0.9835626795862843, 0.9856643359367864, 0.9870147101541914, 0.9877080570381418, 0.9895652457579261, 0.991353186062814, 0.9925470673810072, 0.9957167633362015, 0.9958237758030367, 0.996005720237123, 0.9966295332684733, 0.9974112229628156, 0.9980406626591428, 0.9991355442549836, 0.9991500518258326, 0.9993931665638743 ], "xaxis": "x", "y": [ 0.41, 0.4120603015075377, 0.41414141414141414, 0.41624365482233505, 0.41836734693877553, 0.4205128205128205, 0.422680412371134, 0.42487046632124353, 0.4270833333333333, 0.4293193717277487, 0.43157894736842106, 0.43386243386243384, 0.43617021276595747, 0.4385026737967914, 0.44086021505376344, 0.44324324324324327, 0.44565217391304346, 0.44808743169398907, 0.45054945054945056, 0.4530386740331492, 0.45555555555555555, 0.4581005586592179, 0.4606741573033708, 0.4632768361581921, 0.4659090909090909, 0.4685714285714286, 0.47126436781609193, 0.47398843930635837, 0.47674418604651164, 0.47953216374269003, 0.4823529411764706, 0.48520710059171596, 0.4880952380952381, 0.49101796407185627, 0.4939759036144578, 0.49696969696969695, 0.5, 0.5030674846625767, 0.5061728395061729, 0.5093167701863354, 0.5125, 0.5157232704402516, 0.5189873417721519, 0.5222929936305732, 0.5256410256410257, 0.5290322580645161, 0.5324675324675324, 0.5359477124183006, 0.5394736842105263, 0.543046357615894, 0.5466666666666666, 0.5503355704697986, 0.5540540540540541, 0.5578231292517006, 0.5616438356164384, 0.5655172413793104, 0.5694444444444444, 0.5734265734265734, 0.5774647887323944, 0.5815602836879432, 0.5857142857142857, 0.5899280575539568, 0.5942028985507246, 0.5985401459854015, 0.6029411764705882, 0.6074074074074074, 0.6119402985074627, 0.6212121212121212, 0.6259541984732825, 0.6307692307692307, 0.6356589147286822, 0.640625, 0.6456692913385826, 0.6507936507936508, 0.648, 0.6532258064516129, 0.6585365853658537, 0.6639344262295082, 0.6694214876033058, 0.675, 0.680672268907563, 0.6864406779661016, 0.6923076923076923, 0.6896551724137931, 0.6956521739130435, 0.7017543859649122, 0.7079646017699115, 0.7142857142857143, 0.7207207207207207, 0.7272727272727273, 0.7339449541284404, 0.7407407407407407, 0.7476635514018691, 0.7547169811320755, 0.7619047619047619, 0.7596153846153846, 0.7669902912621359, 0.7745098039215687, 0.7821782178217822, 0.79, 0.797979797979798, 0.8061224489795918, 0.8144329896907216, 0.8229166666666666, 0.8210526315789474, 0.8191489361702128, 0.8279569892473119, 0.8260869565217391, 0.8351648351648352, 0.8444444444444444, 0.8426966292134831, 0.8390804597701149, 0.8488372093023255, 0.8470588235294118, 0.8452380952380952, 0.8433734939759037, 0.8414634146341463, 0.8518518518518519, 0.85, 0.8481012658227848, 0.8461538461538461, 0.8441558441558441, 0.8552631578947368, 0.8666666666666667, 0.8648648648648649, 0.8767123287671232, 0.8732394366197183, 0.8857142857142857, 0.8840579710144928, 0.8823529411764706, 0.8805970149253731, 0.8787878787878788, 0.8923076923076924, 0.90625, 0.9047619047619048, 0.9032258064516129, 0.9180327868852459, 0.9166666666666666, 0.9322033898305084, 0.9482758620689655, 0.9473684210526315, 0.9464285714285714, 0.9636363636363636, 0.9814814814814815, 0.9811320754716981, 0.9807692307692307, 0.9803921568627451, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "yaxis": "y" }, { "mode": "lines", "name": "Recall", "type": "scatter", "x": [ 0, 0.000034548194271006185, 0.00006453252589356062, 0.00007151044597071787, 0.00009910023653399782, 0.00014001154168286317, 0.00024470181907378774, 0.00028528786335298416, 0.00033498452552376695, 0.00034442025787430433, 0.0004353954766362508, 0.0004531423607039207, 0.0005584556833138502, 0.0006240686529474798, 0.0007187279612967197, 0.0008042268161956215, 0.0008481300427484978, 0.0009096939201249951, 0.0009603517903352543, 0.000987385260398712, 0.0010914457389143118, 0.0011021857621919976, 0.0011510103578073387, 0.0012391179075014434, 0.001266262255293708, 0.0013192077628531422, 0.0013845911067189166, 0.001537736369895739, 0.001730988566969585, 0.0019295093499422564, 0.00216611889181732, 0.0022896263501143736, 0.002328650186385384, 0.002503346163515589, 0.0026272640697428636, 0.002743460996802766, 0.00292438393030854, 0.003013676547703569, 0.0035982099914621526, 0.004441724403543251, 0.004866856591778282, 0.004954740555947143, 0.005435910508699533, 0.0066511374907596114, 0.006887865686925095, 0.008334789689003416, 0.008424935428795707, 0.009623110714497974, 0.010652649380166856, 0.011525671837817995, 0.012323724460071647, 0.012910458856041607, 0.013867970241471938, 0.015960362175515438, 0.0200202680278053, 0.02381789091861043, 0.025327451282909818, 0.026674353409753195, 0.02695746046505507, 0.027342034075189422, 0.032366023074241454, 0.03403975027133503, 0.03471571961179993, 0.03574092733638251, 0.03709661258139988, 0.03722943543894732, 0.03731479393231948, 0.03851231519320207, 0.03895516650574836, 0.04000890475136241, 0.040861880158557615, 0.043788393194223514, 0.04688036902643263, 0.04846579725257091, 0.053186689464403886, 0.06070964296278342, 0.06766559391763198, 0.07134532528464507, 0.0727257494444137, 0.07934044133748386, 0.0823095484557296, 0.0835761058659629, 0.08378055614425318, 0.08602056662732636, 0.09921202044374083, 0.10337837206558037, 0.1264308883256943, 0.12980037733364355, 0.1330920702973557, 0.1356491304777813, 0.13805450229964145, 0.14375602844325608, 0.17183224878025974, 0.17406446917721874, 0.18989419345944497, 0.20519965648489077, 0.21338801190839238, 0.2138359203876728, 0.2451993835523457, 0.26069641573877544, 0.2648997958069915, 0.27040279995256794, 0.2730202492401857, 0.28144764610823275, 0.2839177443209992, 0.2978925814407434, 0.2981714998401919, 0.30474397821765586, 0.3075537173387339, 0.3088523636366073, 0.32350006065787984, 0.33283624447480015, 0.38821753831462696, 0.40582528545289576, 0.4549609117589885, 0.4877914349703142, 0.49956544705594613, 0.5013495494567284, 0.5022775401673832, 0.5101510871353715, 0.5510606993273649, 0.5638545762211454, 0.5718409008513989, 0.6009137737042354, 0.6081256938909353, 0.6200995111417342, 0.6653328254659358, 0.6796669125835724, 0.68859179537547, 0.6924352054142089, 0.7270265078734721, 0.7279696788043669, 0.7301126717875657, 0.7446682902846677, 0.7508069486053491, 0.7601930930701734, 0.7775376768630032, 0.7781790927033897, 0.8003081806882765, 0.8016583121580312, 0.80391795969104, 0.8045024385897304, 0.8060396104397644, 0.8261196456580742, 0.8317864594636107, 0.8540095116481246, 0.8550623187746407, 0.8639427476360391, 0.8680289457985417, 0.8816366064984136, 0.8865986821612131, 0.8960776371854402, 0.905982045390041, 0.9109119565784357, 0.9139979537619973, 0.9261397393764456, 0.9276997312390163, 0.9395150749848132, 0.9412646070579443, 0.9460192646807146, 0.9487879799373393, 0.9499589150801312, 0.9514835590125791, 0.9539856384585967, 0.9550882352110298, 0.9572183279556133, 0.959199560015766, 0.9602732826901171, 0.961003720490224, 0.9626457570107576, 0.9633813003188959, 0.9647557302602627, 0.9650875329601932, 0.9667598805355383, 0.9668362392109016, 0.9689012543044571, 0.9701136145009539, 0.9721819529455317, 0.9788370614912307, 0.9812902763534186, 0.9823069778971736, 0.983208198090965, 0.9835626795862843, 0.9856643359367864, 0.9870147101541914, 0.9877080570381418, 0.9895652457579261, 0.991353186062814, 0.9925470673810072, 0.9957167633362015, 0.9958237758030367, 0.996005720237123, 0.9966295332684733, 0.9974112229628156, 0.9980406626591428, 0.9991355442549836, 0.9991500518258326, 0.9993931665638743 ], "y": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.9878048780487805, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.975609756097561, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9634146341463414, 0.9512195121951219, 0.9390243902439024, 0.9390243902439024, 0.926829268292683, 0.926829268292683, 0.926829268292683, 0.9146341463414634, 0.8902439024390244, 0.8902439024390244, 0.8780487804878049, 0.8658536585365854, 0.8536585365853658, 0.8414634146341463, 0.8414634146341463, 0.8292682926829268, 0.8170731707317073, 0.8048780487804879, 0.7926829268292683, 0.7926829268292683, 0.7926829268292683, 0.7804878048780488, 0.7804878048780488, 0.7560975609756098, 0.7560975609756098, 0.7439024390243902, 0.7317073170731707, 0.7195121951219512, 0.7073170731707317, 0.7073170731707317, 0.7073170731707317, 0.6951219512195121, 0.6829268292682927, 0.6829268292682927, 0.6707317073170732, 0.6707317073170732, 0.6707317073170732, 0.6585365853658537, 0.6463414634146342, 0.6463414634146342, 0.6463414634146342, 0.6341463414634146, 0.6219512195121951, 0.6097560975609756, 0.6097560975609756, 0.5975609756097561, 0.5853658536585366, 0.573170731707317, 0.5609756097560976, 0.5487804878048781, 0.5365853658536586, 0.524390243902439, 0.5121951219512195, 0.5, 0.4878048780487805, 0.47560975609756095, 0.4634146341463415, 0.45121951219512196, 0.43902439024390244, 0.4268292682926829, 0.4146341463414634, 0.4024390243902439, 0.3902439024390244, 0.3780487804878049, 0.36585365853658536, 0.35365853658536583, 0.34146341463414637, 0.32926829268292684, 0.3170731707317073, 0.3048780487804878, 0.2926829268292683, 0.2804878048780488, 0.2682926829268293, 0.25609756097560976, 0.24390243902439024, 0.23170731707317074, 0.21951219512195122, 0.2073170731707317, 0.1951219512195122, 0.18292682926829268, 0.17073170731707318, 0.15853658536585366, 0.14634146341463414, 0.13414634146341464, 0.12195121951219512, 0.10975609756097561, 0.0975609756097561, 0.08536585365853659, 0.07317073170731707, 0.06097560975609756, 0.04878048780487805, 0.036585365853658534, 0.024390243902439025, 0.012195121951219513, 0 ] } ], "layout": { "annotations": [ { "showarrow": false, "text": "Threshold: 0.5", "x": 0.5, "xanchor": "left", "xref": "x", "y": 1, "yanchor": "top", "yref": "y domain" } ], "legend": { "tracegroupgap": 0 }, "shapes": [ { "line": { "color": "black", "dash": "dash" }, "type": "line", "x0": 0.5, "x1": 0.5, "xref": "x", "y0": 0, "y1": 1, "yref": "y domain" } ], "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ], "sequentialminus": [ [ 0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Precision and Recall at Different Thresholds" }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "Threshold" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "precision" } } } }, "text/html": [ "
\n", "
" ], "text/plain": [ "Figure({\n", " 'data': [{'hovertemplate': 'Threshold=%{x}
precision=%{y}',\n", " 'legendgroup': '',\n", " 'line': {'color': '#636efa', 'dash': 'solid'},\n", " 'marker': {'symbol': 'circle'},\n", " 'mode': 'lines',\n", " 'name': '',\n", " 'orientation': 'v',\n", " 'showlegend': False,\n", " 'type': 'scatter',\n", " 'x': array([0.00000000e+00, 3.45481943e-05, 6.45325259e-05, 7.15104460e-05,\n", " 9.91002365e-05, 1.40011542e-04, 2.44701819e-04, 2.85287863e-04,\n", " 3.34984526e-04, 3.44420258e-04, 4.35395477e-04, 4.53142361e-04,\n", " 5.58455683e-04, 6.24068653e-04, 7.18727961e-04, 8.04226816e-04,\n", " 8.48130043e-04, 9.09693920e-04, 9.60351790e-04, 9.87385260e-04,\n", " 1.09144574e-03, 1.10218576e-03, 1.15101036e-03, 1.23911791e-03,\n", " 1.26626226e-03, 1.31920776e-03, 1.38459111e-03, 1.53773637e-03,\n", " 1.73098857e-03, 1.92950935e-03, 2.16611889e-03, 2.28962635e-03,\n", " 2.32865019e-03, 2.50334616e-03, 2.62726407e-03, 2.74346100e-03,\n", " 2.92438393e-03, 3.01367655e-03, 3.59820999e-03, 4.44172440e-03,\n", " 4.86685659e-03, 4.95474056e-03, 5.43591051e-03, 6.65113749e-03,\n", " 6.88786569e-03, 8.33478969e-03, 8.42493543e-03, 9.62311071e-03,\n", " 1.06526494e-02, 1.15256718e-02, 1.23237245e-02, 1.29104589e-02,\n", " 1.38679702e-02, 1.59603622e-02, 2.00202680e-02, 2.38178909e-02,\n", " 2.53274513e-02, 2.66743534e-02, 2.69574605e-02, 2.73420341e-02,\n", " 3.23660231e-02, 3.40397503e-02, 3.47157196e-02, 3.57409273e-02,\n", " 3.70966126e-02, 3.72294354e-02, 3.73147939e-02, 3.85123152e-02,\n", " 3.89551665e-02, 4.00089048e-02, 4.08618802e-02, 4.37883932e-02,\n", " 4.68803690e-02, 4.84657973e-02, 5.31866895e-02, 6.07096430e-02,\n", " 6.76655939e-02, 7.13453253e-02, 7.27257494e-02, 7.93404413e-02,\n", " 8.23095485e-02, 8.35761059e-02, 8.37805561e-02, 8.60205666e-02,\n", " 9.92120204e-02, 1.03378372e-01, 1.26430888e-01, 1.29800377e-01,\n", " 1.33092070e-01, 1.35649130e-01, 1.38054502e-01, 1.43756028e-01,\n", " 1.71832249e-01, 1.74064469e-01, 1.89894193e-01, 2.05199656e-01,\n", " 2.13388012e-01, 2.13835920e-01, 2.45199384e-01, 2.60696416e-01,\n", " 2.64899796e-01, 2.70402800e-01, 2.73020249e-01, 2.81447646e-01,\n", " 2.83917744e-01, 2.97892581e-01, 2.98171500e-01, 3.04743978e-01,\n", " 3.07553717e-01, 3.08852364e-01, 3.23500061e-01, 3.32836244e-01,\n", " 3.88217538e-01, 4.05825285e-01, 4.54960912e-01, 4.87791435e-01,\n", " 4.99565447e-01, 5.01349549e-01, 5.02277540e-01, 5.10151087e-01,\n", " 5.51060699e-01, 5.63854576e-01, 5.71840901e-01, 6.00913774e-01,\n", " 6.08125694e-01, 6.20099511e-01, 6.65332825e-01, 6.79666913e-01,\n", " 6.88591795e-01, 6.92435205e-01, 7.27026508e-01, 7.27969679e-01,\n", " 7.30112672e-01, 7.44668290e-01, 7.50806949e-01, 7.60193093e-01,\n", " 7.77537677e-01, 7.78179093e-01, 8.00308181e-01, 8.01658312e-01,\n", " 8.03917960e-01, 8.04502439e-01, 8.06039610e-01, 8.26119646e-01,\n", " 8.31786459e-01, 8.54009512e-01, 8.55062319e-01, 8.63942748e-01,\n", " 8.68028946e-01, 8.81636606e-01, 8.86598682e-01, 8.96077637e-01,\n", " 9.05982045e-01, 9.10911957e-01, 9.13997954e-01, 9.26139739e-01,\n", " 9.27699731e-01, 9.39515075e-01, 9.41264607e-01, 9.46019265e-01,\n", " 9.48787980e-01, 9.49958915e-01, 9.51483559e-01, 9.53985638e-01,\n", " 9.55088235e-01, 9.57218328e-01, 9.59199560e-01, 9.60273283e-01,\n", " 9.61003720e-01, 9.62645757e-01, 9.63381300e-01, 9.64755730e-01,\n", " 9.65087533e-01, 9.66759881e-01, 9.66836239e-01, 9.68901254e-01,\n", " 9.70113615e-01, 9.72181953e-01, 9.78837061e-01, 9.81290276e-01,\n", " 9.82306978e-01, 9.83208198e-01, 9.83562680e-01, 9.85664336e-01,\n", " 9.87014710e-01, 9.87708057e-01, 9.89565246e-01, 9.91353186e-01,\n", " 9.92547067e-01, 9.95716763e-01, 9.95823776e-01, 9.96005720e-01,\n", " 9.96629533e-01, 9.97411223e-01, 9.98040663e-01, 9.99135544e-01,\n", " 9.99150052e-01, 9.99393167e-01]),\n", " 'xaxis': 'x',\n", " 'y': array([0.41 , 0.4120603 , 0.41414141, 0.41624365, 0.41836735, 0.42051282,\n", " 0.42268041, 0.42487047, 0.42708333, 0.42931937, 0.43157895, 0.43386243,\n", " 0.43617021, 0.43850267, 0.44086022, 0.44324324, 0.44565217, 0.44808743,\n", " 0.45054945, 0.45303867, 0.45555556, 0.45810056, 0.46067416, 0.46327684,\n", " 0.46590909, 0.46857143, 0.47126437, 0.47398844, 0.47674419, 0.47953216,\n", " 0.48235294, 0.4852071 , 0.48809524, 0.49101796, 0.4939759 , 0.4969697 ,\n", " 0.5 , 0.50306748, 0.50617284, 0.50931677, 0.5125 , 0.51572327,\n", " 0.51898734, 0.52229299, 0.52564103, 0.52903226, 0.53246753, 0.53594771,\n", " 0.53947368, 0.54304636, 0.54666667, 0.55033557, 0.55405405, 0.55782313,\n", " 0.56164384, 0.56551724, 0.56944444, 0.57342657, 0.57746479, 0.58156028,\n", " 0.58571429, 0.58992806, 0.5942029 , 0.59854015, 0.60294118, 0.60740741,\n", " 0.6119403 , 0.62121212, 0.6259542 , 0.63076923, 0.63565891, 0.640625 ,\n", " 0.64566929, 0.65079365, 0.648 , 0.65322581, 0.65853659, 0.66393443,\n", " 0.66942149, 0.675 , 0.68067227, 0.68644068, 0.69230769, 0.68965517,\n", " 0.69565217, 0.70175439, 0.7079646 , 0.71428571, 0.72072072, 0.72727273,\n", " 0.73394495, 0.74074074, 0.74766355, 0.75471698, 0.76190476, 0.75961538,\n", " 0.76699029, 0.7745098 , 0.78217822, 0.79 , 0.7979798 , 0.80612245,\n", " 0.81443299, 0.82291667, 0.82105263, 0.81914894, 0.82795699, 0.82608696,\n", " 0.83516484, 0.84444444, 0.84269663, 0.83908046, 0.84883721, 0.84705882,\n", " 0.8452381 , 0.84337349, 0.84146341, 0.85185185, 0.85 , 0.84810127,\n", " 0.84615385, 0.84415584, 0.85526316, 0.86666667, 0.86486486, 0.87671233,\n", " 0.87323944, 0.88571429, 0.88405797, 0.88235294, 0.88059701, 0.87878788,\n", " 0.89230769, 0.90625 , 0.9047619 , 0.90322581, 0.91803279, 0.91666667,\n", " 0.93220339, 0.94827586, 0.94736842, 0.94642857, 0.96363636, 0.98148148,\n", " 0.98113208, 0.98076923, 0.98039216, 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ]),\n", " 'yaxis': 'y'},\n", " {'mode': 'lines',\n", " 'name': 'Recall',\n", " 'type': 'scatter',\n", " 'x': array([0.00000000e+00, 3.45481943e-05, 6.45325259e-05, 7.15104460e-05,\n", " 9.91002365e-05, 1.40011542e-04, 2.44701819e-04, 2.85287863e-04,\n", " 3.34984526e-04, 3.44420258e-04, 4.35395477e-04, 4.53142361e-04,\n", " 5.58455683e-04, 6.24068653e-04, 7.18727961e-04, 8.04226816e-04,\n", " 8.48130043e-04, 9.09693920e-04, 9.60351790e-04, 9.87385260e-04,\n", " 1.09144574e-03, 1.10218576e-03, 1.15101036e-03, 1.23911791e-03,\n", " 1.26626226e-03, 1.31920776e-03, 1.38459111e-03, 1.53773637e-03,\n", " 1.73098857e-03, 1.92950935e-03, 2.16611889e-03, 2.28962635e-03,\n", " 2.32865019e-03, 2.50334616e-03, 2.62726407e-03, 2.74346100e-03,\n", " 2.92438393e-03, 3.01367655e-03, 3.59820999e-03, 4.44172440e-03,\n", " 4.86685659e-03, 4.95474056e-03, 5.43591051e-03, 6.65113749e-03,\n", " 6.88786569e-03, 8.33478969e-03, 8.42493543e-03, 9.62311071e-03,\n", " 1.06526494e-02, 1.15256718e-02, 1.23237245e-02, 1.29104589e-02,\n", " 1.38679702e-02, 1.59603622e-02, 2.00202680e-02, 2.38178909e-02,\n", " 2.53274513e-02, 2.66743534e-02, 2.69574605e-02, 2.73420341e-02,\n", " 3.23660231e-02, 3.40397503e-02, 3.47157196e-02, 3.57409273e-02,\n", " 3.70966126e-02, 3.72294354e-02, 3.73147939e-02, 3.85123152e-02,\n", " 3.89551665e-02, 4.00089048e-02, 4.08618802e-02, 4.37883932e-02,\n", " 4.68803690e-02, 4.84657973e-02, 5.31866895e-02, 6.07096430e-02,\n", " 6.76655939e-02, 7.13453253e-02, 7.27257494e-02, 7.93404413e-02,\n", " 8.23095485e-02, 8.35761059e-02, 8.37805561e-02, 8.60205666e-02,\n", " 9.92120204e-02, 1.03378372e-01, 1.26430888e-01, 1.29800377e-01,\n", " 1.33092070e-01, 1.35649130e-01, 1.38054502e-01, 1.43756028e-01,\n", " 1.71832249e-01, 1.74064469e-01, 1.89894193e-01, 2.05199656e-01,\n", " 2.13388012e-01, 2.13835920e-01, 2.45199384e-01, 2.60696416e-01,\n", " 2.64899796e-01, 2.70402800e-01, 2.73020249e-01, 2.81447646e-01,\n", " 2.83917744e-01, 2.97892581e-01, 2.98171500e-01, 3.04743978e-01,\n", " 3.07553717e-01, 3.08852364e-01, 3.23500061e-01, 3.32836244e-01,\n", " 3.88217538e-01, 4.05825285e-01, 4.54960912e-01, 4.87791435e-01,\n", " 4.99565447e-01, 5.01349549e-01, 5.02277540e-01, 5.10151087e-01,\n", " 5.51060699e-01, 5.63854576e-01, 5.71840901e-01, 6.00913774e-01,\n", " 6.08125694e-01, 6.20099511e-01, 6.65332825e-01, 6.79666913e-01,\n", " 6.88591795e-01, 6.92435205e-01, 7.27026508e-01, 7.27969679e-01,\n", " 7.30112672e-01, 7.44668290e-01, 7.50806949e-01, 7.60193093e-01,\n", " 7.77537677e-01, 7.78179093e-01, 8.00308181e-01, 8.01658312e-01,\n", " 8.03917960e-01, 8.04502439e-01, 8.06039610e-01, 8.26119646e-01,\n", " 8.31786459e-01, 8.54009512e-01, 8.55062319e-01, 8.63942748e-01,\n", " 8.68028946e-01, 8.81636606e-01, 8.86598682e-01, 8.96077637e-01,\n", " 9.05982045e-01, 9.10911957e-01, 9.13997954e-01, 9.26139739e-01,\n", " 9.27699731e-01, 9.39515075e-01, 9.41264607e-01, 9.46019265e-01,\n", " 9.48787980e-01, 9.49958915e-01, 9.51483559e-01, 9.53985638e-01,\n", " 9.55088235e-01, 9.57218328e-01, 9.59199560e-01, 9.60273283e-01,\n", " 9.61003720e-01, 9.62645757e-01, 9.63381300e-01, 9.64755730e-01,\n", " 9.65087533e-01, 9.66759881e-01, 9.66836239e-01, 9.68901254e-01,\n", " 9.70113615e-01, 9.72181953e-01, 9.78837061e-01, 9.81290276e-01,\n", " 9.82306978e-01, 9.83208198e-01, 9.83562680e-01, 9.85664336e-01,\n", " 9.87014710e-01, 9.87708057e-01, 9.89565246e-01, 9.91353186e-01,\n", " 9.92547067e-01, 9.95716763e-01, 9.95823776e-01, 9.96005720e-01,\n", " 9.96629533e-01, 9.97411223e-01, 9.98040663e-01, 9.99135544e-01,\n", " 9.99150052e-01, 9.99393167e-01]),\n", " 'y': array([1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 1. , 1. , 1. , 1. ,\n", " 1. , 1. , 0.98780488, 0.98780488, 0.98780488, 0.98780488,\n", " 0.98780488, 0.98780488, 0.98780488, 0.98780488, 0.98780488, 0.97560976,\n", " 0.97560976, 0.97560976, 0.97560976, 0.97560976, 0.97560976, 0.97560976,\n", " 0.97560976, 0.97560976, 0.97560976, 0.97560976, 0.97560976, 0.96341463,\n", " 0.96341463, 0.96341463, 0.96341463, 0.96341463, 0.96341463, 0.96341463,\n", " 0.96341463, 0.96341463, 0.95121951, 0.93902439, 0.93902439, 0.92682927,\n", " 0.92682927, 0.92682927, 0.91463415, 0.8902439 , 0.8902439 , 0.87804878,\n", " 0.86585366, 0.85365854, 0.84146341, 0.84146341, 0.82926829, 0.81707317,\n", " 0.80487805, 0.79268293, 0.79268293, 0.79268293, 0.7804878 , 0.7804878 ,\n", " 0.75609756, 0.75609756, 0.74390244, 0.73170732, 0.7195122 , 0.70731707,\n", " 0.70731707, 0.70731707, 0.69512195, 0.68292683, 0.68292683, 0.67073171,\n", " 0.67073171, 0.67073171, 0.65853659, 0.64634146, 0.64634146, 0.64634146,\n", " 0.63414634, 0.62195122, 0.6097561 , 0.6097561 , 0.59756098, 0.58536585,\n", " 0.57317073, 0.56097561, 0.54878049, 0.53658537, 0.52439024, 0.51219512,\n", " 0.5 , 0.48780488, 0.47560976, 0.46341463, 0.45121951, 0.43902439,\n", " 0.42682927, 0.41463415, 0.40243902, 0.3902439 , 0.37804878, 0.36585366,\n", " 0.35365854, 0.34146341, 0.32926829, 0.31707317, 0.30487805, 0.29268293,\n", " 0.2804878 , 0.26829268, 0.25609756, 0.24390244, 0.23170732, 0.2195122 ,\n", " 0.20731707, 0.19512195, 0.18292683, 0.17073171, 0.15853659, 0.14634146,\n", " 0.13414634, 0.12195122, 0.1097561 , 0.09756098, 0.08536585, 0.07317073,\n", " 0.06097561, 0.04878049, 0.03658537, 0.02439024, 0.01219512, 0. ])}],\n", " 'layout': {'annotations': [{'showarrow': False,\n", " 'text': 'Threshold: 0.5',\n", " 'x': 0.5,\n", " 'xanchor': 'left',\n", " 'xref': 'x',\n", " 'y': 1,\n", " 'yanchor': 'top',\n", " 'yref': 'y domain'}],\n", " 'legend': {'tracegroupgap': 0},\n", " 'shapes': [{'line': {'color': 'black', 'dash': 'dash'},\n", " 'type': 'line',\n", " 'x0': 0.5,\n", " 'x1': 0.5,\n", " 'xref': 'x',\n", " 'y0': 0,\n", " 'y1': 1,\n", " 'yref': 'y domain'}],\n", " 'template': '...',\n", " 'title': {'text': 'Precision and Recall at Different Thresholds'},\n", " 'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'title': {'text': 'Threshold'}},\n", " 'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title': {'text': 'precision'}}}\n", "})" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import plotly.express as px\n", "import plotly.graph_objects as go\n", "\n", "plot_precision_recall(0.5)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "import gradio as gr\n", "import pandas as pd\n", "import seaborn as sns\n", "import matplotlib.pyplot as plt\n", "\n", "\n", "df = pd.read_csv(\"hf://datasets/merve/supersoaker-failures/supersoaker.csv\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": ".venv", "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.11.9" } }, "nbformat": 4, "nbformat_minor": 2 }