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

Function check_load_from_string

catboost/python-package/ut/medium/test.py:1371–1374  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

1369 check_equality(model, cb_stream)
1370
1371 def check_load_from_string(model):
1372 cb_blob = CatBoost()
1373 cb_blob.load_model(blob=open(output_model_path, 'rb').read())
1374 check_equality(model, cb_blob)
1375
1376 def fill_check_model(params, train_file, test_file, cd_file):
1377 model, _ = fit_from_file(params, train_file, test_file, cd_file)

Callers 1

fill_check_modelFunction · 0.85

Calls 5

load_modelMethod · 0.95
CatBoostClass · 0.90
check_equalityFunction · 0.85
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected