Update regresja logistyczna/regresja_logistyczna_NMI_2023.ipynb
This commit is contained in:
parent
58844dfe25
commit
7b864ff67d
@ -640,7 +640,7 @@
|
|||||||
" m.fit(Xargs, y)\n",
|
" m.fit(Xargs, y)\n",
|
||||||
" d = pd.DataFrame(list(zip(*value_to_predict_column_list)))\n",
|
" d = pd.DataFrame(list(zip(*value_to_predict_column_list)))\n",
|
||||||
" v = m.predict_proba(d)[:,1]\n",
|
" v = m.predict_proba(d)[:,1]\n",
|
||||||
" c = classify(v, 0.5)[0]\n",
|
" c = classify(v, threshold)[0]\n",
|
||||||
" print(\"Probability: \" + str(v[0]))\n",
|
" print(\"Probability: \" + str(v[0]))\n",
|
||||||
" print(\"Class: \" + str(c))\n",
|
" print(\"Class: \" + str(c))\n",
|
||||||
" return c\n",
|
" return c\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user