Get human-readable string describing current batch step. */
| 78 | |
| 79 | /** Get human-readable string describing current batch step. */ |
| 80 | std::string batch_step_string(const model& m) |
| 81 | { |
| 82 | const auto& c = |
| 83 | dynamic_cast<const SGDExecutionContext&>(m.get_execution_context()); |
| 84 | std::stringstream msg; |
| 85 | const auto& mode = c.get_execution_mode(); |
| 86 | msg << to_string(mode) << " batch " << c.get_step(); |
| 87 | msg << " (epoch " << c.get_epoch() << ")"; |
| 88 | return msg.str(); |
| 89 | } |
| 90 | |
| 91 | } // namespace |
| 92 |
no test coverage detected