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

Function check_equality

catboost/python-package/ut/medium/test.py:1360–1363  ·  view source on GitHub ↗
(model1, model2)

Source from the content-addressed store, hash-verified

1358 output_model_path = test_output_path(OUTPUT_MODEL_PATH)
1359
1360 def check_equality(model1, model2):
1361 assert model1 == model2
1362 for attr in ('best_score_', 'evals_result_', 'best_iteration_'):
1363 assert compare_with_limited_precision(getattr(model1, attr), getattr(model2, attr))
1364
1365 def check_load_from_stream(model):
1366 cb_stream = CatBoost()

Callers 2

check_load_from_streamFunction · 0.85
check_load_from_stringFunction · 0.85

Calls 2

getattrFunction · 0.85

Tested by

no test coverage detected