Пример #1
0
 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)
Пример #2
0
 def __initData(self):
     self.__paintBoard = PaintBoard(self)
     self.__model = NeuralNetwork()
Пример #3
0
 def __initData(self):
     self.__paintBoard = PaintBoard(self)
     self.__model = DigitClassifier()
Пример #4
0
 def __initData(self):
     self.__paintBoard = PaintBoard(self)
     self.model = NaiveBayes()