84. Keras Model Hyper-parameter Tuning
One way to tune your keras model is using random search. Here is one example with sklearn. from scipy.stats import reciprocal from sklearn.model_selection import RandomizedSearchCV #Specify range for random initialization param_distribs = { “n_hidden”: [0, 1, 2, 3], “n_neurons”: np.arange(1,…