MCPcopy Create free account
hub / github.com/dmlc/xgboost / main

Function main

demo/guide-python/external_memory.py:173–183  ·  view source on GitHub ↗

Entry point for training.

(work_dir: str, cli_args: argparse.Namespace)

Source from the content-addressed store, hash-verified

171
172
173def main(work_dir: str, cli_args: argparse.Namespace) -> None:
174 """Entry point for training."""
175
176 # generate some random data for demo
177 files = make_batches(
178 n_samples_per_batch=1024, n_features=17, n_batches=31, work_dir=work_dir
179 )
180 it = Iterator(cli_args.device, files)
181
182 hist_train(it)
183 approx_train(it)
184
185
186def setup_async_pool() -> None:

Callers 1

external_memory.pyFile · 0.70

Calls 4

approx_trainFunction · 0.85
make_batchesFunction · 0.70
IteratorClass · 0.70
hist_trainFunction · 0.70

Tested by

no test coverage detected