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

Function check

catboost/python-package/ut/medium/test.py:655–665  ·  view source on GitHub ↗
(pool1, data2)

Source from the content-addressed store, hash-verified

653 pool1.set_feature_names(list(data.columns))
654
655 def check(pool1, data2):
656 pool2 = Pool(
657 data2,
658 labels,
659 cat_features=cat_features,
660 text_features=text_features,
661 embedding_features=embedding_features,
662 group_id=group_ids
663 )
664 assert _have_equal_features(pool1, pool2)
665 assert _check_data([float(label) for label in pool1.get_label()], pool2.get_label())
666
667 if len(embedding_features):
668 for embedding_array_ctor in [np.array, list]:

Callers 3

Y_UNIT_TESTFunction · 0.50

Calls 4

PoolClass · 0.90
get_labelMethod · 0.80
_check_dataFunction · 0.70
floatFunction · 0.50

Tested by

no test coverage detected