|
NNFS
Neural network library from scratch
|
Abstract base class for the model in a neural network. More...
#include <Model.hpp>
Public Member Functions | |
| virtual | ~Model ()=default |
| Basic destructor. | |
| virtual void | fit (const Eigen::MatrixXd &examples, const Eigen::MatrixXd &labels, const Eigen::MatrixXd &test_examples, const Eigen::MatrixXd &test_labels, int epochs, int batch_size, bool verbose=false)=0 |
| Evaluate the model on the given examples. | |
Abstract base class for the model in a neural network.
This class is the abstract base class for the model in a neural network. It provides the interface for all models.
|
virtualdefault |
Basic destructor.
|
pure virtual |
Evaluate the model on the given examples.
| [in] | examples | Examples to evaluate the model on |
| [in] | labels | Labels of the examples |
| [in] | test_examples | Examples to validate the model on |
| [in] | test_labels | Labels of the validation examples |
| [in] | epochs | The number of epochs to train for |
| [in] | batch_size | The batch size, i.e. the number of examples to train on in each batch |
| [in] | verbose | Whether to print out information about the training process |
Implemented in NNFS::NeuralNetwork.