|
std::string | _name |
|
metric_t | _last_training_metric |
|
◆ Model()
◆ fit()
train this model on x and y.
- Parameters
-
x | model input data |
y | ground truth data |
metric_out | [out] a metric_t struct in which the model run metrics are stored. |
verbose | if true then training info is printed every couple iterations |
- Returns
- magmadnn_error_t 0 on success; non-zero otherwise
Implemented in magmadnn::model::NeuralNetwork< T >.
◆ get_accuracy()
Gets the training accuracy of the last run.
- Returns
- double training accuracy of last run.
◆ get_loss()
Gets the loss of the last run.
- Returns
- double loss of last run.
◆ get_name()
name of this model
- Returns
- std::string
◆ get_training_time()
Gets training time of last run.
- Returns
- double training time of last run.
◆ predict()
◆ predict_class()
This is equivalent to math::argmax(predict(sample)), where the one-hot encoded predict value is used.
- Parameters
-
- Returns
- unsigned int the index of the predicted class.
Implemented in magmadnn::model::NeuralNetwork< T >.
The documentation for this class was generated from the following file: