Hyperparameter optimization for neural networks