def training(self, c, g): self.model = SVR(kernel= 'rbf', C= c, gamma= g) self.model.fit(self.train_date, self.train_price) # fitting the data points in the models