Turi Create
4.0
|
#include <ml/neural_net/model_backend.hpp>
Public Member Functions | |
virtual float_array_map | export_weights () const =0 |
virtual float_array_map | predict (const float_array_map &inputs) const =0 |
virtual void | set_learning_rate (float lr)=0 |
virtual float_array_map | train (const float_array_map &inputs)=0 |
A pure virtual interface for neural networks, used to abstract across model architectures and backend implementations.
Definition at line 23 of file model_backend.hpp.
|
pure virtual |
Exports the network weights.
Implemented in turi::neural_net::mps_od_backend.
|
pure virtual |
Performs a forward pass.
inputs | A map containing all the named inputs required by the model. |
Implemented in turi::neural_net::mps_od_backend.
|
pure virtual |
Sets the learning rate to be used for future calls to train.
Implemented in turi::neural_net::mps_od_backend.
|
pure virtual |
Performs one forward-backward pass.
inputs | A map containing all the named inputs and labels required by the model. |
Implemented in turi::neural_net::mps_od_backend.