You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Repair the online AdaBoost training path
The vendored River source under /app/vendor/project contains a regression in its online AdaBoost classifier. Repair the existing implementation and run the frozen streaming-training workflow.
The repaired behavior must satisfy all of the following:
Derive each weak learner's error from its wrong prediction mass divided by its total observed mass.
Convert that error into the OzaBoost learner weight, using a neutral weight for untrained learners and learners whose error exceeds one half.
Normalize every weak learner probability dictionary before weighting it, aggregate all learners rather than selecting one, and normalize the final distribution.
Add a reusable dictionary-value scaling utility. Its inplace=False mode must return an independent copy and must not mutate the input.
Preserve graceful normalization for zero or NaN factors unless the caller requests an exception.
Do not replace the source tree, bypass the streaming parser, batch-fit the data, or modify the frozen dataset and workload support files.
Produce the artifact
After repairing the source, run:
bash
cd /app/vendor/project
python3 run_training.py --output /app/training_report.json
The required artifact is /app/training_report.json with schema version river.adaboost.training_report.v1.