neural_network::feed_forward()← Back to Class neural_network
Move forward the input matrix through the model's layers
neural_network::feed_forward(input)
input (matrix) — The input matrix. The matrix must be a row matrix (vector)
boolean — Always returns true
import neural
model = neural_network([784, 20, 10, 10], 0.01)
model.feed_forward(dataset.inputs(0))
model.back_propagation(dataset.outputs(0))
error = calculate_error(model.outputs(), expected)