MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / MSE

Class MSE

include/thundersvm/util/metric.h:38–49  ·  view source on GitHub ↗

* @brief Mean Squared Error */

Source from the content-addressed store, hash-verified

36 * @brief Mean Squared Error
37 */
38class MSE : public Metric {
39 string name() override;
40
41 /**
42 * \f$\text{MSE} = \frac{1}{n}\sum_{i}{(y_i-y^*_i)}^2\f$, where \f$y\f$ is predicted and \f$y^*\f$ is the ground
43 * truth, \f$n\f$ is the number of instances.
44 * @param predict_y
45 * @param ground_truth_y
46 * @return MSE
47 */
48 float_type score(const vector<float_type> &predict_y, const vector<float_type> &ground_truth_y) override;
49};
50
51#endif //THUNDERSVM_METRIC_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected