Skip to content

Commit

Permalink
Updated xgboost with eval_set
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertSamoilescu committed Jul 4, 2024
1 parent 73a921e commit d350dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtimes/xgboost/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def classifier_uri(tmp_path) -> str:
clf = xgb.XGBClassifier(
num_class=c, use_label_encoder=False, objective="multi:softprob"
)
clf.fit(X_train, y_train, eval_metric="mlogloss")
clf.fit(X_train, y_train, eval_set=[(X_train, y_train)])

model_uri = os.path.join(tmp_path, "xgboost-model.json")
clf.save_model(model_uri)
Expand Down

0 comments on commit d350dac

Please sign in to comment.