Skip to content

Instantly share code, notes, and snippets.

@jpmallette
Last active August 16, 2018 11:45
Show Gist options
  • Save jpmallette/c4ad6b21acaed514f8e7eacc3d45b474 to your computer and use it in GitHub Desktop.
Save jpmallette/c4ad6b21acaed514f8e7eacc3d45b474 to your computer and use it in GitHub Desktop.
ParameterGrid Class Example
# Create params grid object
from sklearn.model_selection import ParameterGrid
param_grid = {
'model' : [m]
, 'initial' : ['730 days','500 days']
, 'period' : ['180 days']
, 'horizon' : ['365 days']
}
>>> list(ParameterGrid(param_grid))
[{'model': <fbprophet.forecaster.Prophet at 0x11cd0bba8>,
'initial': '730 days',
'period': '180 days',
'horizon': '365 days'},
{'model': <fbprophet.forecaster.Prophet at 0x11cd0bba8>,
'initial': '500 days',
'period': '180 days',
'horizon': '365 days'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment