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

Function _check_model

catboost/python-package/catboost/monoforest.py:11–13  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

9
10
11def _check_model(model):
12 if not isinstance(model, CatBoost):
13 raise CatBoostError("Model should be CatBoost")
14
15
16def to_polynom(model):

Callers 3

to_polynomFunction · 0.85
to_polynom_stringFunction · 0.85
explain_featuresFunction · 0.85

Calls 2

CatBoostErrorClass · 0.90
isinstanceFunction · 0.85

Tested by

no test coverage detected