def __initData(self): self.__paintBoard = PaintBoard(self) mint = tf.keras.datasets.mnist (X, y), (X_test, y_test) = mint.load_data() self.model = NaiveBayesScratch() X = np.array(X).reshape(60000, 784) self.__xtest = np.array(X_test).reshape(10000, 784) self.__ytest = y_test self.model.fit(X, y)
def __initData(self): self.__paintBoard = PaintBoard(self) self.__model = NeuralNetwork()
def __initData(self): self.__paintBoard = PaintBoard(self) self.__model = DigitClassifier()
def __initData(self): self.__paintBoard = PaintBoard(self) self.model = NaiveBayes()