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

Method pop

catboost/python-package/catboost/core.py:171–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 self._stack.append((cout, cerr))
170
171 def pop(self):
172 with self._lock:
173 if self._owning_thread_id != threading.current_thread().ident:
174 # because push from other threads does nothing
175 return
176 if not self._stack:
177 raise RuntimeError('Attempt to pop from an empty stack')
178
179 _reset_logger()
180 if len(self._stack) != 1:
181 _set_logger(*self._stack[-2])
182 else:
183 self._owning_thread_id = None
184 self._stack.pop()
185
186
187_custom_loggers_stack = _CustomLoggersStack()

Callers 13

model_etcMethod · 0.45
log_fixupFunction · 0.45
quantizeMethod · 0.45
__init__Method · 0.45
set_paramsMethod · 0.45
quantizeFunction · 0.45
PopIfNonEmptyFunction · 0.45
EndElementMethod · 0.45
model_etcMethod · 0.45
colorize_pytest_errorFunction · 0.45

Calls 1

lenFunction · 0.85

Tested by 2

model_etcMethod · 0.36
model_etcMethod · 0.36