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

Function test_predict_regress

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

Source from the content-addressed store, hash-verified

1144
1145
1146def test_predict_regress(task_type):
1147 train_pool = Pool(TRAIN_FILE, column_description=CD_FILE)
1148 model = CatBoost({'iterations': 2, 'loss_function': 'RMSE', 'task_type': task_type, 'gpu_ram_part': TEST_GPU_RAM_PART, 'devices': '0'})
1149 model.fit(train_pool)
1150 assert (model.is_fitted())
1151 output_model_path = test_output_path(OUTPUT_MODEL_PATH)
1152 model.save_model(output_model_path)
1153 return compare_canonical_models(output_model_path)
1154
1155
1156def test_predict_sklearn_regress(task_type):

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected