* @brief metric for evaluation model */
| 11 | * @brief metric for evaluation model |
| 12 | */ |
| 13 | class Metric { |
| 14 | public: |
| 15 | virtual string name() = 0; |
| 16 | |
| 17 | virtual float_type score(const vector<float_type> &predict_y, const vector<float_type> &ground_truth_y) = 0; |
| 18 | }; |
| 19 | |
| 20 | /** |
| 21 | * @brief Accuracy |
nothing calls this directly
no outgoing calls
no test coverage detected