* @brief Mean Squared Error */
| 36 | * @brief Mean Squared Error |
| 37 | */ |
| 38 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected