#include <mlp.h>
Public Member Functions | |
MLP (size_t n_in, std::vector< size_t > n_outs) | |
const std::vector< Layer > & | layers () const |
const std::vector< std::vector< Variable > > & | results () const |
const std::vector< Variable > & | parameters () const |
std::vector< Variable > & | mutable_parameters () |
std::vector< Variable > & | forward (const std::vector< double > &inputs) |
This class represents a Multi-Layer Perceptron (MLP) neural network.
|
inline |
Constructs an MLP with the specified number of input connections and output connections for each layer.
n_in | The number of input connections. |
n_outs | The number of output connections for each layer. |
std::vector< Variable > & MLP::forward | ( | const std::vector< double > & | inputs | ) |
|
inline |
Returns the layers in the MLP.
|
inline |
Returns a mutable reference to the parameters of the MLP.
|
inline |
Returns all parameters of the MLP, including parameters of all layers.
|
inline |
Returns the output results for each layer in the MLP.