Add test case for pseudohubererror for XGBoost

This commit is contained in:
P. Sai Vinay 2021-08-07 02:29:48 +05:30 committed by GitHub
parent d3f8d7b8f6
commit 8f84a315be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,13 @@ class TestMLModel:
@pytest.mark.parametrize("compress_model_definition", [True, False])
@pytest.mark.parametrize(
"objective",
["reg:squarederror", "reg:squaredlogerror", "reg:linear", "reg:logistic"],
[
"reg:squarederror",
"reg:squaredlogerror",
"reg:linear",
"reg:logistic",
"reg:pseudohubererror",
],
)
@pytest.mark.parametrize("booster", ["gbtree", "dart"])
def test_xgb_regressor(self, compress_model_definition, objective, booster):