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 7c6cc78

Browse files
Update README.md
1 parent 66b6419 commit 7c6cc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class ClassificationLinearCustom():
202202
if x.shape[1] != self.coefs_.shape[0]:
203203
return ValueError("The features of x do not have the same size as those to train")
204204
for xi in x:
205-
ypred_proba +=[1] if self.sigmoid(self.coefs_, xi) > 0.5 else [0]
205+
ypred_proba +=[1] if self.sigmoid(self.coefs_, xi) >= 0.5 else [0]
206206
return np.array(ypred_proba)
207207
```
208208

0 commit comments

Comments
(0)

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