Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

generate all parameters combination python

from sklearn.model_selection import ParameterGrid

# Example of parameters and their values to be combined
param_grid = {'parameter_A': [1, 2], 'parameter_B': [True, False]}

print(list(ParameterGrid(param_grid)))
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #generate #parameters #combination #python
ADD COMMENT
Topic
Name
4+4 =