7 #ifndef UNITY_TOOLKITS_NEURAL_NET_MODEL_BACKEND_HPP_ 8 #define UNITY_TOOLKITS_NEURAL_NET_MODEL_BACKEND_HPP_ 14 #include <ml/neural_net/float_array.hpp> 17 namespace neural_net {
47 virtual float_array_map
predict(
const float_array_map& inputs)
const = 0;
66 virtual float_array_map
train(
const float_array_map& inputs) = 0;
72 #endif // UNITY_TOOLKITS_NEURAL_NET_MODEL_BACKEND_HPP_ virtual void set_learning_rate(float lr)=0
virtual float_array_map export_weights() const =0
virtual float_array_map train(const float_array_map &inputs)=0
virtual float_array_map predict(const float_array_map &inputs) const =0