! * \brief Get bin info */
| 179 | * \brief Get bin info |
| 180 | */ |
| 181 | inline std::string bin_info() const { |
| 182 | if (bin_type_ == BinType::CategoricalBin) { |
| 183 | return Common::Join(bin_2_categorical_, ":"); |
| 184 | } else { |
| 185 | std::stringstream str_buf; |
| 186 | str_buf << std::setprecision(std::numeric_limits<double>::digits10 + 2); |
| 187 | str_buf << '[' << min_val_ << ':' << max_val_ << ']'; |
| 188 | return str_buf.str(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | private: |
| 193 | /*! \brief Number of bins */ |