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

Method _check_delimiter

catboost/python-package/catboost/core.py:880–884  ·  view source on GitHub ↗
(self, delimiter)

Source from the content-addressed store, hash-verified

878 raise CatBoostError("Invalid {} path='{}': file does not exist.".format(name, item))
879
880 def _check_delimiter(self, delimiter):
881 if not isinstance(delimiter, STRING_TYPES):
882 raise CatBoostError("Invalid delimiter type={} : must be str.".format(type(delimiter)))
883 if len(delimiter) < 1:
884 raise CatBoostError("Invalid delimiter length={} : must be > 0.".format(len(delimiter)))
885
886 def _check_column_description_type(self, column_description):
887 """

Callers 1

_readMethod · 0.95

Calls 5

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

Tested by

no test coverage detected