metrics=['accuracy'])
def sente_stone(self,X_train,Y_train):
- X,Y = np.array(X_train),np.array(Y_train)
+ X,Y = np.array([X_train]),np.array([Y_train])
self.model1.fit(X,Y)
hdf5_file = './sente-model.hdf5'
self.model1.save_weights(hdf5_file)
return [res % 8, res // 8]
def gote_stone(self,X_train,Y_train):
- X,Y=np.array(X_train),np.array(Y_train)
+ X,Y=np.array([X_train]),np.array([Y_train])
self.model2.fit(X,Y)
hdf5_file ='./gote-model.hdf5'
self.model2.save_weights(hdf5_file)