Medial Code Documentation
|
Functions | |
None | validate_leaf_output (np.ndarray leaf, int num_parallel_tree) |
None | validate_data_initialization (Type dmatrix, Type[xgb.XGBModel] model, ArrayLike X, ArrayLike y) |
np.ndarray | get_feature_weights (ArrayLike X, ArrayLike y, np.ndarray fw, str parser_path, str tree_method, Type[xgb.XGBModel] model=xgb.XGBRegressor) |
Testing code shared by other tests.
np.ndarray xgboost.testing.shared.get_feature_weights | ( | ArrayLike | X, |
ArrayLike | y, | ||
np.ndarray | fw, | ||
str | parser_path, | ||
str | tree_method, | ||
Type[xgb.XGBModel] | model = xgb.XGBRegressor |
||
) |
Get feature weights using the demo parser.
None xgboost.testing.shared.validate_data_initialization | ( | Type | dmatrix, |
Type[xgb.XGBModel] | model, | ||
ArrayLike | X, | ||
ArrayLike | y | ||
) |
Assert that we don't create duplicated DMatrix.
None xgboost.testing.shared.validate_leaf_output | ( | np.ndarray | leaf, |
int | num_parallel_tree | ||
) |
Validate output for predict leaf tests.