changed optimize() to optimizeHyperparameters()