Last active
August 16, 2018 11:45
-
-
Save jpmallette/c4ad6b21acaed514f8e7eacc3d45b474 to your computer and use it in GitHub Desktop.
ParameterGrid Class Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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