Here some python code which can be used on a jupyter notebook, to estimate time required for a non parralel GridSearchCV.

Its handy for calculating remaining time.

As with no paralel usage, it matches the combinations to irritate as in verbose log output.

learn_rate = [0.001, 0.01, 0.1] dropout_rate = [0.0, 0.2, 0.1] neuron1 = [4,8,16] neuron2 = [2,4,8] activation =['softmax','relu','tanh','linear'] init = ['uniform','normal','zero'] #make dictionary of the grid search parameters #param_grid = dict(batch_size=batch_size,epochs=epochs) param_grid =dict(learn_rate = learn_rate, dropout_rate = dropout_rate, neuron1 = neuron1, neuron2 = neuron2, activation = activation, init = init) print("Calculation time estimation for the param_grid combinations of :") print() import pprint pprint.pprint(param_grid) print() import itertools as it allNames = sorted(param_grid) combinations = it.product(*(param_grid[Name] for Name in allNames)) mminutes = 2.2 # estimation of time in minutes per combination of param_grid print ("based upon estimated time per paramgrid combination of : ",mminutes) time_estimation = len(list(combinations))*mminutes combinations = it.product(*(param_grid[Name] for Name in allNames)) print("the total time required would be",time_estimation,"in minutes") print() iterate=0 print("count time remaining combination") for combo in combinations: iterate=iterate+1 minutes_remaining = int((time_estimation- iterate*mminutes)) time_display = '{:02d}:{:02d}'.format(*divmod(minutes_remaining, 60)) print('{num:04d}'.format(num=iterate),time_display," [CV]",combo) <span id="mce_SELREST_start" style="overflow:hidden;line-height:0;"></span>

output of above code :

Calculation time estimation for the param_grid combinations of : {'activation': ['softmax', 'relu', 'tanh', 'linear'], 'dropout_rate': [0.0, 0.2, 0.1], 'init': ['uniform', 'normal', 'zero'], 'learn_rate': [0.001, 0.01, 0.1], 'neuron1': [4, 8, 16], 'neuron2': [2, 4, 8]} based upon estimated time per paramgrid combination of : 2.2 the total time required would be 2138.4 in minutes count time remaining combination 0001 35:36 [CV] ('softmax', 0.0, 'uniform', 0.001, 4, 2) 0002 35:34 [CV] ('softmax', 0.0, 'uniform', 0.001, 4, 4) 0003 35:31 [CV] ('softmax', 0.0, 'uniform', 0.001, 4, 8) 0004 35:29 [CV] ('softmax', 0.0, 'uniform', 0.001, 8, 2) 0005 35:27 [CV] ('softmax', 0.0, 'uniform', 0.001, 8, 4) 0006 35:25 [CV] ('softmax', 0.0, 'uniform', 0.001, 8, 8) 0007 35:23 [CV] ('softmax', 0.0, 'uniform', 0.001, 16, 2) 0008 35:20 [CV] ('softmax', 0.0, 'uniform', 0.001, 16, 4) 0009 35:18 [CV] ('softmax', 0.0, 'uniform', 0.001, 16, 8) .... .. .