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

Function _make_subsample_params

python-package/xgboost/testing/multi_target.py:752–763  ·  view source on GitHub ↗
(device: Device, sampling_method: str)

Source from the content-addressed store, hash-verified

750
751
752def _make_subsample_params(device: Device, sampling_method: str) -> dict:
753 params = {
754 "device": device,
755 "tree_method": "hist",
756 "multi_strategy": "multi_output_tree",
757 "subsample": 0.5,
758 "sampling_method": sampling_method,
759 "max_depth": 6,
760 "debug_synchronize": True,
761 "seed": 2026,
762 }
763 return params
764
765
766def run_subsample(device: Device, sampling_method: str) -> None:

Callers 3

run_subsampleFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected