+ if self._config['FEATURES'].getboolean('holidays'):
+ holidays = Holidays(config_file =
+ eval(self._config['FEATURE_CONFIG']['holidays']))
+
+ holidays.start = self._start
+ holidays.end = self._end
+
+ dated_features = holidays.dated_features
+ for date in dated_features:
+ self._X.setdefault(date,{}).update(dated_features[date])
+
+
+ def add_target(self):
+ self._target = Target(config_file = eval(self._config['TARGET']['config']),
+ start = self._start, end = self._end,
+ timestep = self._timestep)
+
+
+ def add_preprocessing(self):
+ self._preproc = Preprocessing(config_file = self._config,
+ dict_features = self.X,
+ dict_target = self.y)
+
+
+ def learn(self):
+ history = self._config['HISTORY_KNOWLEDGE'].getint('nb_lines')
+ self._learner = Learning(config_file = eval(self._config['LEARNER']['config']),
+ X = self._preproc.dataframe, y = list(self.y.values())[history:])
+