def __init__(self,data,forecastMessure,p,d,q): Modelling.__init__(self,data,forecastMessure) self.data=data self.p=p self.d=d self.q=q self.forecastMessure=forecastMessure
def __init__(self, data, forecastMessure, seasonal_periods, WStRMSEOpt, WMAPEOpt, product): Modelling.__init__(self, data, forecastMessure) self.data = data self.forecastMessure = forecastMessure self.seasonal_periods = seasonal_periods self.WStRMSEOpt = WStRMSEOpt self.WMAPEOpt = WMAPEOpt self.product = product
def __init__(self, data, forecastMessure, hidden_layers=[20, 15], activation_functions=['relu', 'relu'], optimizer=SGD(), loss='mean_absolute_error'): Modelling.__init__(self, df, forecastMessure) self.data = data self.forecastMessure = forecastMessure self.hidden_layers = hidden_layers self.activation_functions = activation_functions self.optimizer = optimizer self.loss = loss if len(self.hidden_layers) != len(self.activation_functions): raise Exception( "hidden_layers size must match activation_functions size")