From 08eb6b99815020fbbb73ab679de48c757b0a1812 Mon Sep 17 00:00:00 2001 From: Manbish Date: Wed, 27 Mar 2024 08:37:12 -0400 Subject: [PATCH] Chang SGDClassifier loss from 'log' to 'log_loss' (#9113) 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) --- examples/graph_sage_unsup_ppi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/graph_sage_unsup_ppi.py b/examples/graph_sage_unsup_ppi.py index 87a53a15287c..dd085dfe5d98 100644 --- a/examples/graph_sage_unsup_ppi.py +++ b/examples/graph_sage_unsup_ppi.py @@ -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')