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

Progress bar crash when empty dataset #19687

Open
stridge-cruxml opened this issue May 8, 2024 · 2 comments
Open

Progress bar crash when empty dataset #19687

stridge-cruxml opened this issue May 8, 2024 · 2 comments
Assignees
Labels
keras-team-review-pending Pending review by a Keras team member. type:Bug

Comments

@stridge-cruxml
Copy link

I accidentally filtered out all examples and tried to evaluate on an empty dataset.
Was getting a confusing crash in the progress bar code as self.target == 0.

See here

@sachinprasadhs
Copy link
Collaborator

Could you please share an example to reproduce the reported behavior. Thanks

@stridge-cruxml
Copy link
Author

stridge-cruxml commented May 20, 2024

So self.target was set to 0 in keras/src/utils/progbar.py, as i passed in a dataset with all examples filtered out 😮‍💨.

numdigits = int(math.log10(self.target)) + 1 then tries to take log of 0.

@chunduriv chunduriv added the keras-team-review-pending Pending review by a Keras team member. label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keras-team-review-pending Pending review by a Keras team member. type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants