Loading src/forecaster/Config.py +7 −0 Original line number Diff line number Diff line Loading @@ -12,3 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. import os # FORECAST_TO_HISTORY_RATIO indicates the size of the trainset. # For example a history ratio of 10 would imply that the train-set will be 10 times bigger # than the forecast period and the test-set. DEFAULT_FORECAST_TO_HISTORY_RATIO = 10 FORECAST_TO_HISTORY_RATIO = int(os.environ.get('FORECAST_TO_HISTORY_RATIO', DEFAULT_FORECAST_TO_HISTORY_RATIO)) Loading
src/forecaster/Config.py +7 −0 Original line number Diff line number Diff line Loading @@ -12,3 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. import os # FORECAST_TO_HISTORY_RATIO indicates the size of the trainset. # For example a history ratio of 10 would imply that the train-set will be 10 times bigger # than the forecast period and the test-set. DEFAULT_FORECAST_TO_HISTORY_RATIO = 10 FORECAST_TO_HISTORY_RATIO = int(os.environ.get('FORECAST_TO_HISTORY_RATIO', DEFAULT_FORECAST_TO_HISTORY_RATIO))