MCPcopy Create free account
hub / github.com/LBANN/lbann / get_mean_value

Method get_mean_value

src/objective_functions/objective_function.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154EvalType 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
167int objective_function::get_statistics_num_samples(execution_mode mode) const
168{

Callers

nothing calls this directly

Calls 4

lbann_exceptionClass · 0.85
countMethod · 0.80
get_meanMethod · 0.80
get_num_samplesMethod · 0.45

Tested by

no test coverage detected