|
Cosan
1.0
Data Analytics Library
|
Go to the documentation of this file.
36 template<Numeric NumericType>
111 template<Numeric NumericType>
121 this->
error = (yPredict - yTrue).array().abs().sum() / yPredict.rows();
131 template<Numeric NumericType>
141 this->
error = (yTrue - yPredict).squaredNorm() / yTrue.rows();
151 template<Numeric NumericType>
162 this->
error = 1 - (yTrue - yPredict).squaredNorm() / (yTrue.array() - yTrue.mean()).matrix().squaredNorm();
170 template<Numeric NumericType>
181 this->
error = (yTrue - yPredict).array().abs().maxCoeff();
bool LabelShape(const CosanMatrix< NumericType > &m)
Cosan::InvalidLabelShapeException InvalidLabelShape
NumericType GetError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue) override
CosanMetric(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
R2Score(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
Eigen::Matrix< NumericType, Eigen::Dynamic, Eigen::Dynamic > CosanMatrix
NumericType GetError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue) override
MeanSquareError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
void setAttr(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
NumericType GetError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue) override
NumericType GetError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue) override
MaxError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
MeanAbsError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
bool SameSize(const CosanMatrix< NumericType > &m1, const CosanMatrix< NumericType > &m2)
Cosan::DiffSizeException DiffSize
virtual NumericType GetError(const CosanMatrix< NumericType > &yPredict, const CosanMatrix< NumericType > &yTrue)
CosanMetric class for metric functionality.