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

Method _check_files

catboost/python-package/catboost/core.py:869–878  ·  view source on GitHub ↗

Check files existence.

(self, data, column_description, pairs, graph)

Source from the content-addressed store, hash-verified

867 super(Pool, self).__init__()
868
869 def _check_files(self, data, column_description, pairs, graph):
870 """
871 Check files existence.
872 """
873 for item, name in zip((data, column_description, pairs, graph), ('data', 'column_description', 'pairs', 'graph')):
874 item = fspath(item)
875 if item is None:
876 continue
877 if item.find('://') == -1 and not os.path.isfile(item):
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):

Callers 1

_readMethod · 0.95

Calls 3

CatBoostErrorClass · 0.50
findMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected