modbot.training.training.grid_search
- modbot.training.training.grid_search(data, y, model)[source]
Do parameter sweep to opitimize hyperparameters
- Parameters
data (list) – List of texts to use for training
y (list) – List of targets for the corresponding texts
model (Initialized scikit-learn model) –
dict – Dictionary containing result of grid search