def bayes(self): self.mnb = MultinomialNB() self.y_train=self.y_train.astype('int') self.mnb.fit(self.x_trainvect,self.y_train)