Skip to content

Commit

Permalink
Fixing lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
drivanov committed Jan 31, 2025
1 parent 56672c1 commit f0e415e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions examples/pytorch/metapath2vec/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
author_true = np.array(author_true)
file.close()
print("beging predicting")
clf_venue = LogisticRegression(
random_state=0, solver="lbfgs",
).fit(venue_training, venue_label)
clf_venue = LogisticRegression(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 f0e415e

Please sign in to comment.