Skip to content
New issue

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

2 mistakes found #39

Open
owenliang opened this issue Dec 11, 2020 · 1 comment
Open

2 mistakes found #39

owenliang opened this issue Dec 11, 2020 · 1 comment

Comments

@owenliang
Copy link

in linearregression,

# Create a callback that saves the model's weights every 5 epochs
checkpointCallback = tf.keras.callbacks.ModelCheckpoint(
    filepath=checkpoint_path, 
    verbose=1, 
    save_weights_only=True,
    save_freq=n_samples_save)

save_freq should be number of epochs(not batches):

# Create a callback that saves the model's weights every 5 epochs
checkpointCallback = tf.keras.callbacks.ModelCheckpoint(
    filepath=checkpoint_path, 
    verbose=1, 
    save_weights_only=True,
    save_freq=n_epochs_log)
# Return unique list elements
checkpoints =list(set(checkpoints))
print('checkpoints:',checkpoints)

to make the figures understood, the checkpoints file list should be sorted by created order:

# Return unique list elements
checkpoints = sorted(list(set(checkpoints)))
print('checkpoints:',checkpoints)
@astorfi
Copy link
Member

astorfi commented Aug 13, 2021

Thank @owenliang. Please kindly make a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants