I would like to maximize a function: func(minCount, wordNgrams, lr, epoch, loss)
with GridSearch on only these values:
`{'minCount': [2, 3],
'wordNgrams': [1, 2, 3, 4, 5],
'lr': [0.1, 0.01, 0.001, 0.0001],
'epoch': [5, 10, 15, 20, 25, 30],
'loss': [hs, ns, softmax]}`
I have read about sklearn.model_selection.GridSearchCV(estimator, param_grid, ...)
But, I don't know, to where I should put my func(minCount, wordNgrams, lr, epoch, loss)
By the way, I've read about bayesian optimization (https://github.com/fmfn/BayesianOptimization), but don't have any understanding of how to use this with string
and int
parameters