HAMA-770: fix regularization for SmallLayeredNeuralNetwork