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

Function test_predict_sklearn_regress

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

Source from the content-addressed store, hash-verified

1154
1155
1156def test_predict_sklearn_regress(task_type):
1157 train_pool = Pool(TRAIN_FILE, column_description=CD_FILE)
1158 model = CatBoostRegressor(iterations=2, learning_rate=0.03, task_type=task_type, gpu_ram_part=TEST_GPU_RAM_PART, devices='0')
1159 model.fit(train_pool)
1160 assert (model.is_fitted())
1161 output_model_path = test_output_path(OUTPUT_MODEL_PATH)
1162 model.save_model(output_model_path)
1163 return compare_canonical_models(output_model_path)
1164
1165
1166def test_predict_sklearn_class(task_type):

Callers

nothing calls this directly

Calls 7

fitMethod · 0.95
PoolClass · 0.90
CatBoostRegressorClass · 0.90
test_output_pathFunction · 0.85
compare_canonical_modelsFunction · 0.85
is_fittedMethod · 0.80
save_modelMethod · 0.80

Tested by

no test coverage detected