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

Formatted callback.py to render correctly #16765

Merged
merged 4 commits into from
Jul 12, 2022

Conversation

jvishnuvardhan
Copy link
Contributor

Updated some formatting to render the code block correctly

Updated some formatting to render the code block correctly
@gbaned gbaned requested a review from rchao July 7, 2022 15:43
@google-ml-butler google-ml-butler bot added the keras-team-review-pending Pending review by a Keras team member. label Jul 7, 2022
@rchao
Copy link
Contributor

rchao commented Jul 7, 2022

Thanks for the PR! The code change will be problematic because it's using doctest which attempts to run the example code, but it's actually not runnable. Can you do the couple things instead: 1) add 'python' after the initial '```' and 2) fix the indentation.

@jvishnuvardhan
Copy link
Contributor Author

Thanks for the PR! The code change will be problematic because it's using doctest which attempts to run the example code, but it's actually not runnable. Can you do the couple things instead: 1) add 'python' after the initial '```' and 2) fix the indentation.

Updated based on your suggestion. Please review

Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. LGTM.

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jul 7, 2022
@fchollet
Copy link
Member

fchollet commented Jul 7, 2022

Please fix the code formatting:

keras/callbacks.py:643:1: W293 blank line contains whitespace
keras/callbacks.py:[6](https://github.com/keras-team/keras/runs/7238487569?check_suite_focus=true#step:6:7)59:1: W293 blank line contains whitespace

@gbaned gbaned removed keras-team-review-pending Pending review by a Keras team member. ready to pull Ready to be merged into the codebase labels Jul 8, 2022
@jvishnuvardhan
Copy link
Contributor Author

Please fix the code formatting:

keras/callbacks.py:643:1: W293 blank line contains whitespace
keras/callbacks.py:[6](https://github.com/keras-team/keras/runs/7238487569?check_suite_focus=true#step:6:7)59:1: W293 blank line contains whitespace

Updated. Please review. Thanks

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jul 8, 2022
Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the black formatting test.

@@ -654,7 +654,8 @@ class Callback:
callbacks.on_epoch_end(epoch, epoch_logs)
final_logs=...
callbacks.on_train_end(final_logs)
```
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove whitespace.

@fchollet fchollet removed the ready to pull Ready to be merged into the codebase label Jul 8, 2022
@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jul 12, 2022
@copybara-service copybara-service bot merged commit bbeae09 into master Jul 12, 2022
@jvishnuvardhan jvishnuvardhan deleted the jvishnuvardhan-patch-1 branch July 21, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to pull Ready to be merged into the codebase size:S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants