An example of optimizing the hyperparameters using the hyperopt library

http://conference.scipy.org/proceedings/scipy2013/pdfs/bergstra_hyperopt.pdf