MCPcopy Create free account
hub / github.com/catboost/catboost / test_invalid_loss_regressor

Function test_invalid_loss_regressor

catboost/python-package/ut/medium/test.py:2523–2527  ·  view source on GitHub ↗
(task_type)

Source from the content-addressed store, hash-verified

2521
2522
2523def test_invalid_loss_regressor(task_type):
2524 pool = Pool(TRAIN_FILE, column_description=CD_FILE)
2525 model = CatBoostRegressor(loss_function="fee", task_type=task_type, gpu_ram_part=TEST_GPU_RAM_PART, devices='0')
2526 with pytest.raises(CatBoostError):
2527 model.fit(pool)
2528
2529
2530def test_invalid_loss_ranker(task_type):

Callers

nothing calls this directly

Calls 3

fitMethod · 0.95
PoolClass · 0.90
CatBoostRegressorClass · 0.90

Tested by

no test coverage detected