(env)
| 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 |
nothing calls this directly
no test coverage detected