Commit 7bd57779 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Forecaster component:

- Added FORECAST_TO_HISTORY_RATIO config setting
parent 4de71f91
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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))