NeuralNetworkBuilder implementation