We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we need to calc steps_per_epoch and specific this value
def fit(self, log=False, **kwargs): """kwargs: keyword arguments passed to `model.fit`""" if log: callbacks = [keras.callbacks.TensorBoard( log_dir='./log', histogram_freq=0, write_graph=True, write_images=False)] else: callbacks = [] callbacks += kwargs.get('callbacks', []) if 'callbacks' in kwargs: del kwargs['callbacks'] if 'batch_size' in kwargs: batch_size = kwargs['batch_size'] del kwargs['batch_size'] gen = self.train_data_generator(batch_size=batch_size) else: raise ValueError("Must Specify batch_size") gen = self.train_data_generator() m = self.graph.number_of_edges() steps_per_epoch = math.ceil(m / batch_size) self.model.fit_generator( gen, steps_per_epoch=steps_per_epoch, shuffle=True, callbacks=callbacks, **kwargs)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
advise
we need to calc steps_per_epoch and specific this value
The text was updated successfully, but these errors were encountered: