Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!160Resolve "(CTTC) Forecaster component"
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment