LinearSVC Implemented

This commit is contained in:
2023-02-08 20:52:43 +05:30
parent 7746f998d6
commit 37860d832a
2 changed files with 9 additions and 11 deletions

View File

@@ -1326,7 +1326,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
@@ -1346,7 +1346,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 40,
"metadata": {},
"outputs": [
{
@@ -1355,8 +1355,8 @@
"text": [
"######################################################### PROGRAM STARTED #########################################################\n",
"\n",
"Array 0 = [17272 0 110 126 6985 1315 5 2 1 1 1]\n",
"Model predicts STROKE = [1]\n",
"Array 0 = [22197 0 126 162 12137 1320 2 3 1 1 1]\n",
"Model predicts Disease = [1]\n",
"######################################################### PROGRAM FINISHED #########################################################\n"
]
}
@@ -1390,10 +1390,10 @@
" predictionOutcome = model.predict([array])\n",
" \n",
" if predictionOutcome == 0:\n",
" print(\"Model predicts NO STROKE = \", predictionOutcome)\n",
" print(\"Model predicts NO Disease = \", predictionOutcome)\n",
" print(\"###################################################################################################################################\")\n",
" else:\n",
" print(\"Model predicts STROKE = \", predictionOutcome)\n",
" print(\"Model predicts Disease = \", predictionOutcome)\n",
" \n",
" count+=1\n",
"else:\n",