Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Oct 2, 2024
1 parent 49a5f45 commit bcbc8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/L0_e2e/generate_example_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def serialize_model(model, directory, output_format="xgboost"):
model.save_model(model_path)
new_model_path = os.path.join(directory, "xgboost.model")
os.rename(model_path, new_model_path)
return model_path
return new_model_path
if output_format == "xgboost_json":
model_path = os.path.join(directory, "xgboost.json")
model.save_model(model_path)
Expand Down

0 comments on commit bcbc8db

Please sign in to comment.