Skip to content

Commit

Permalink
Fixing lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
drivanov committed Sep 27, 2024
1 parent a7f502e commit 8f5db0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/pytorch/metapath2vec/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
random_state=0, solver="lbfgs"
).fit(venue_training, venue_label)
y_pred_venue = clf_venue.predict(venue_testing)
clf_author = LogisticRegression(
random_state=0, solver="lbfgs"
).fit(author_training, author_label)
clf_author = LogisticRegression(random_state=0, solver="lbfgs").fit(
author_training, author_label
)
y_pred_author = clf_author.predict(author_testing)
macro_average_venue += f1_score(
venue_true, y_pred_venue, average="macro"
Expand Down
6 changes: 3 additions & 3 deletions examples/pytorch/node2vec/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def evaluate(self, x_train, y_train, x_val, y_val):

x_train, y_train = x_train.cpu().numpy(), y_train.cpu().numpy()
x_val, y_val = x_val.cpu().numpy(), y_val.cpu().numpy()
lr = LogisticRegression(
solver="lbfgs", max_iter=150
).fit(x_train, y_train)
lr = LogisticRegression(solver="lbfgs", max_iter=150).fit(
x_train, y_train
)

return lr.score(x_val, y_val)

Expand Down

0 comments on commit 8f5db0d

Please sign in to comment.