| 152 | } |
| 153 | |
| 154 | EvalType objective_function::get_mean_value(execution_mode mode) const |
| 155 | { |
| 156 | if (m_statistics.count(mode) == 0 || |
| 157 | m_statistics.at(mode).get_num_samples() == 0) { |
| 158 | std::stringstream err; |
| 159 | err << __FILE__ << " " << __LINE__ << " :: " |
| 160 | << "attempted to get mean objective function value with no samples for " |
| 161 | "statistics"; |
| 162 | throw lbann_exception(err.str()); |
| 163 | } |
| 164 | return m_statistics.at(mode).get_mean(); |
| 165 | } |
| 166 | |
| 167 | int objective_function::get_statistics_num_samples(execution_mode mode) const |
| 168 | { |
nothing calls this directly
no test coverage detected