Skip to content

Commit

Permalink
Chang SGDClassifier loss from 'log' to 'log_loss' (#9113)
Browse files Browse the repository at this point in the history
scikit-learn/scikit-learn/pull/23046 Introduces `'log_loss'` in
`SGDClassifier` and deprecates `'log'`. This PR addresses this issue in
the repository (no other files in the repo need to be modified for this
issue)
  • Loading branch information
luckynozomi authored Mar 27, 2024
1 parent 2fcd29d commit 08eb6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/graph_sage_unsup_ppi.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test():
# Train classifier on training set:
x, y = encode(train_loader)

clf = MultiOutputClassifier(SGDClassifier(loss='log', penalty='l2'))
clf = MultiOutputClassifier(SGDClassifier(loss='log_loss', penalty='l2'))
clf.fit(x, y)

train_f1 = f1_score(y, clf.predict(x), average='micro')
Expand Down

0 comments on commit 08eb6b9

Please sign in to comment.