Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-gao-GY committed Oct 2, 2024
1 parent c17306f commit 7bcc7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/xgboost-comprehensive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It differs from the [xgboost-quickstart](https://github.com/adap/flower/tree/mai

## Training Strategies

This example provides two training strategies, **bagging aggregation** and **cyclic training**.
This example provides two training strategies, [**bagging aggregation**](https://flower.ai/docs/framework/tutorial-quickstart-xgboost.html#tree-based-bagging-aggregation) and [**cyclic training**](https://flower.ai/docs/framework/tutorial-quickstart-xgboost.html#cyclic_training).

### Bagging Aggregation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def evaluate_fn(
)
auc = round(float(eval_results.split("\t")[1].split(":")[1]), 4)

# Save results to disk.
# Note we add new entry to the same file with each call to this function.
with open(f"./centralised_eval.txt", "a", encoding="utf-8") as fp:
fp.write(f"Round:{server_round},AUC:{auc}\n")

return 0, {"AUC": auc}

return evaluate_fn
Expand Down

0 comments on commit 7bcc7d2

Please sign in to comment.