| 493 | } |
| 494 | |
| 495 | virtual inline std::string training_info() const { |
| 496 | std::stringstream ss; |
| 497 | ss << "model: " << model << std::endl; |
| 498 | ss << optimizer.info() << std::endl; |
| 499 | ss << "#epoch: " << num_epoch << ", batch size: " << batch_size << std::endl; |
| 500 | ss << "resume: " << pretty::yes_no(resume) << std::endl; |
| 501 | ss << "positive reuse: " << positive_reuse << ", negative weight: " << negative_weight; |
| 502 | return ss.str(); |
| 503 | } |
| 504 | |
| 505 | /** Return information about the solver */ |
| 506 | std::string info() const { |