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

Method _check_thread_count

catboost/python-package/catboost/core.py:1131–1133  ·  view source on GitHub ↗
(self, thread_count)

Source from the content-addressed store, hash-verified

1129 raise CatBoostError("Invalid length of feature_names={} : must be equal to the number of columns in data={}".format(len(feature_names), num_col))
1130
1131 def _check_thread_count(self, thread_count):
1132 if not isinstance(thread_count, INTEGER_TYPES):
1133 raise CatBoostError("Invalid thread_count type={} : must be an integer".format(type(thread_count)))
1134
1135 def slice(self, rindex):
1136 if not isinstance(rindex, ARRAY_TYPES):

Callers 1

_readMethod · 0.95

Calls 4

isinstanceFunction · 0.85
CatBoostErrorClass · 0.50
typeClass · 0.50
formatMethod · 0.45

Tested by

no test coverage detected