| 285 | } |
| 286 | |
| 287 | std::string Config::ToString() const { |
| 288 | std::stringstream str_buf; |
| 289 | str_buf << "[boosting: " << boosting << "]\n"; |
| 290 | str_buf << "[objective: " << objective << "]\n"; |
| 291 | str_buf << "[metric: " << Common::Join(metric, ",") << "]\n"; |
| 292 | str_buf << "[tree_learner: " << tree_learner << "]\n"; |
| 293 | str_buf << "[device_type: " << device_type << "]\n"; |
| 294 | str_buf << SaveMembersToString(); |
| 295 | return str_buf.str(); |
| 296 | } |
| 297 | |
| 298 | } // namespace LightGBM |