Metrics class.
More...
#include <Metrics.hpp>
|
static void | accuracy (double &accuracy, const Eigen::MatrixXd &predicted, const Eigen::MatrixXd &labels) |
| Calculates the accuracy of the model.
|
|
static void | onehotdecode (Eigen::VectorXi &decoded, const Eigen::MatrixXd &onehot) |
| Decodes one-hot encoded data.
|
|
Metrics class.
This class implements the metrics used to evaluate the performance of the model.
◆ accuracy()
static void NNFS::Metrics::accuracy |
( |
double & |
accuracy, |
|
|
const Eigen::MatrixXd & |
predicted, |
|
|
const Eigen::MatrixXd & |
labels |
|
) |
| |
|
inlinestatic |
Calculates the accuracy of the model.
- Parameters
-
[out] | accuracy | The accuracy of the model. |
[in] | predicted | The predicted data. |
[in] | labels | The labels. |
◆ onehotdecode()
static void NNFS::Metrics::onehotdecode |
( |
Eigen::VectorXi & |
decoded, |
|
|
const Eigen::MatrixXd & |
onehot |
|
) |
| |
|
inlinestatic |
Decodes one-hot encoded data.
- Parameters
-
[out] | decoded | The decoded data. |
[in] | onehot | The one-hot encoded data. |
The documentation for this class was generated from the following file: