9.2
2 Examples
Each example below is a literate program: the prose and the code you see are the same source that lives in the package’s "xgboost/examples/" directory and is exercised by the test suite, so the walkthroughs never drift from working code. Every example provides a run-example thunk; its companion harness in "xgboost/examples/test/" drives it and checks the result (run with raco test).
The examples build up in arcs. The core tasks start from the
DMatrix container and the high-level train/predict
loop. Later arcs —