def train(self, X, Y, nepochs, callbacks): y = to_categorical(Y) BaseKeras.train(self,X,y,nepochs, callbacks)