neural_network::outputs()← Back to Class neural_network
Get the output layer of the model
neural_network::outputs()
There are no parameters.
matrix — Returns row matrix (vector) of the output layer
import neural
model = neural_network([784, 20, 10, 10], 0.01)
model.feed_forward(dataset.inputs(0))
outputs = model.outputs()
predicted = argmax(outputs)