Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 855914f

Browse files
Update Classification Linear.ipynb
1 parent 7c6cc78 commit 855914f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Classification Linear.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
" if x.shape[1] != self.coefs_.shape[0]:\n",
270270
" return ValueError(\"The features of x do not have the same size as those to train\")\n",
271271
" for xi in x:\n",
272-
" ypred_proba +=[1] if self.sigmoid(self.coefs_, xi) > 0.5 else [0]\n",
272+
" ypred_proba +=[1] if self.sigmoid(self.coefs_, xi) >= 0.5 else [0]\n",
273273
" return np.array(ypred_proba)"
274274
]
275275
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /