{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\sklearn\\ensemble\\weight_boosting.py:29: DeprecationWarning: numpy.core.umath_tests is an internal NumPy module and should not be imported. It will be removed in a future NumPy release.\n", " from numpy.core.umath_tests import inner1d\n" ] } ], "source": [ "import pandas as pd\n", "from sklearn.model_selection import train_test_split\n", "from sklearn.linear_model import LogisticRegression\n", "from sklearn.tree import DecisionTreeClassifier\n", "from sklearn.svm import SVC\n", "from sklearn.metrics import f1_score,precision_score,recall_score,roc_auc_score,accuracy_score,roc_curve,confusion_matrix\n", "import matplotlib.pyplot as plt\n", "from sklearn.ensemble import RandomForestClassifier\n", "from sklearn.ensemble import GradientBoostingClassifier\n", "from xgboost.sklearn import XGBClassifier\n", "import lightgbm as lgb\n", "from sklearn.preprocessing import MinMaxScaler\n", "import os \n", "import pandas as pd\n", "import lightgbm as lgb\n", "from sklearn.preprocessing import Imputer\n", "import math\n", "from sklearn.model_selection import learning_curve\n", "from sklearn.model_selection import ShuffleSplit\n", "%matplotlib inline\n", "from sklearn.preprocessing import Imputer\n", "from sklearn import preprocessing\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | AGE | \n", "SEX | \n", "BMI | \n", "OPEN_LAP | \n", "DM | \n", "TUMOR.SIZE | \n", "AFP | \n", "RAS | \n", "WBC | \n", "HB | \n", "... | \n", "CR | \n", "ALB | \n", "AST | \n", "ALT | \n", "GLU | \n", "CHOLESTEROL | \n", "CRYSTALLOID | \n", "PRBC | \n", "DURATION.OF.SURG | \n", "KDIGO | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
count | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.00000 | \n", "1173.000000 | \n", "1173.000000 | \n", "... | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "1173.000000 | \n", "
mean | \n", "55.692242 | \n", "0.810742 | \n", "24.228218 | \n", "0.210571 | \n", "0.063939 | \n", "4.562905 | \n", "9705.797506 | \n", "0.15601 | \n", "5.418755 | \n", "13.939386 | \n", "... | \n", "0.827707 | \n", "3.804774 | \n", "39.797101 | \n", "37.061381 | \n", "118.454390 | \n", "163.468031 | \n", "2263.495311 | \n", "0.212276 | \n", "271.051151 | \n", "0.065644 | \n", "
std | \n", "10.241783 | \n", "0.391881 | \n", "2.852874 | \n", "0.407888 | \n", "0.244748 | \n", "3.760153 | \n", "63458.181606 | \n", "0.36302 | \n", "1.774143 | \n", "1.589594 | \n", "... | \n", "0.172007 | \n", "0.412324 | \n", "30.632353 | \n", "28.115765 | \n", "47.178794 | \n", "35.242844 | \n", "983.263559 | \n", "1.129100 | \n", "81.163567 | \n", "0.247764 | \n", "
min | \n", "22.000000 | \n", "0.000000 | \n", "16.400000 | \n", "0.000000 | \n", "0.000000 | \n", "-3.684874 | \n", "-139164.762800 | \n", "0.00000 | \n", "1.000000 | \n", "8.200000 | \n", "... | \n", "0.350000 | \n", "2.000000 | \n", "9.000000 | \n", "3.000000 | \n", "55.000000 | \n", "51.000000 | \n", "200.000000 | \n", "0.000000 | \n", "86.000000 | \n", "0.000000 | \n", "
25% | \n", "49.000000 | \n", "1.000000 | \n", "22.400000 | \n", "0.000000 | \n", "0.000000 | \n", "2.200000 | \n", "3.500000 | \n", "0.00000 | \n", "4.200000 | \n", "12.900000 | \n", "... | \n", "0.700000 | \n", "3.600000 | \n", "25.000000 | \n", "21.000000 | \n", "93.000000 | \n", "141.000000 | \n", "1620.000000 | \n", "0.000000 | \n", "217.000000 | \n", "0.000000 | \n", "
50% | \n", "56.000000 | \n", "1.000000 | \n", "24.100000 | \n", "0.000000 | \n", "0.000000 | \n", "3.500000 | \n", "12.600000 | \n", "0.00000 | \n", "5.200000 | \n", "14.000000 | \n", "... | \n", "0.800000 | \n", "3.800000 | \n", "32.000000 | \n", "30.000000 | \n", "103.000000 | \n", "162.000000 | \n", "2100.000000 | \n", "0.000000 | \n", "261.000000 | \n", "0.000000 | \n", "
75% | \n", "63.000000 | \n", "1.000000 | \n", "25.900000 | \n", "0.000000 | \n", "0.000000 | \n", "5.800000 | \n", "231.000000 | \n", "0.00000 | \n", "6.400000 | \n", "15.100000 | \n", "... | \n", "0.920000 | \n", "4.100000 | \n", "43.000000 | \n", "44.000000 | \n", "128.000000 | \n", "182.000000 | \n", "2700.000000 | \n", "0.000000 | \n", "309.000000 | \n", "0.000000 | \n", "
max | \n", "84.000000 | \n", "1.000000 | \n", "36.100000 | \n", "1.000000 | \n", "1.000000 | \n", "24.000000 | \n", "886000.000000 | \n", "1.00000 | \n", "17.200000 | \n", "20.600000 | \n", "... | \n", "1.460000 | \n", "5.700000 | \n", "392.000000 | \n", "318.000000 | \n", "487.000000 | \n", "437.000000 | \n", "11500.000000 | \n", "18.000000 | \n", "661.000000 | \n", "1.000000 | \n", "
8 rows × 21 columns
\n", "