MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / _callback

Function _callback

python-package/lightgbmmt/callback.py:70–73  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

68 The callback that prints the evaluation results every ``period`` iteration(s).
69 """
70 def _callback(env):
71 if period > 0 and env.evaluation_result_list and (env.iteration + 1) % period == 0:
72 result = '\t'.join([_format_eval_result(x, show_stdv) for x in env.evaluation_result_list])
73 print('[%d]\t%s' % (env.iteration + 1, result))
74 _callback.order = 10
75 return _callback
76

Callers

nothing calls this directly

Calls 10

_format_eval_resultFunction · 0.85
_initFunction · 0.85
_final_iteration_checkFunction · 0.85
EarlyStopExceptionClass · 0.85
joinMethod · 0.80
appendMethod · 0.80
formatMethod · 0.80
reset_parameterMethod · 0.80
updateMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected