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

Function check_load_from_stream

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

Source from the content-addressed store, hash-verified

1363 assert compare_with_limited_precision(getattr(model1, attr), getattr(model2, attr))
1364
1365 def check_load_from_stream(model):
1366 cb_stream = CatBoost()
1367 with open(output_model_path, 'rb') as stream:
1368 cb_stream.load_model(stream=stream)
1369 check_equality(model, cb_stream)
1370
1371 def check_load_from_string(model):
1372 cb_blob = CatBoost()

Callers 1

fill_check_modelFunction · 0.85

Calls 4

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

Tested by

no test coverage detected