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

Method open

catboost/python-package/catboost/eval/_fold_storage.py:113–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 [self.add(line) for line in lines]
112
113 def open(self):
114 if self._file is None:
115 self._file = open(self._file_path, mode='a')
116 else:
117 raise CatBoostError("File already opened {}".format(self._file_path))
118
119 def is_opened(self):
120 return self._file is not None

Callers 3

_extractFunction · 0.45
_write_foldsMethod · 0.45
msrankFunction · 0.45

Calls 3

CatBoostErrorClass · 0.90
openFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected