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

Function fit_from_file

catboost/python-package/ut/medium/test.py:1465–1472  ·  view source on GitHub ↗
(params, learn_file, test_file, cd_file)

Source from the content-addressed store, hash-verified

1463
1464
1465def fit_from_file(params, learn_file, test_file, cd_file):
1466 learn_pool = Pool(learn_file, column_description=cd_file)
1467 test_pool = Pool(test_file, column_description=cd_file)
1468
1469 model = CatBoost(params)
1470 model.fit(learn_pool)
1471
1472 return model, model.predict(test_pool)
1473
1474
1475@pytest.mark.parametrize('problem_type', ['binclass', 'multiclass', 'regression', 'multiregression'])

Callers 2

fill_check_modelFunction · 0.85
test_fit_with_textsFunction · 0.85

Calls 4

fitMethod · 0.95
predictMethod · 0.95
PoolClass · 0.90
CatBoostClass · 0.90

Tested by

no test coverage detected