The NeuralNet_2L companion object provides factory methods for creating two-layer (no hidden layer) neural networks. Note, 'scale' is defined in Scaling.
Create a NeuralNet_2L with automatic rescaling from a data matrix and response vector. As the number of output nodes is one in this case, it is effectively a perceptron.
Create a NeuralNet_2L with automatic rescaling from a data matrix and response vector. As the number of output nodes is one in this case, it is effectively a perceptron.
Value parameters
f
the activation function family for layers 1->2 (input to output)