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

Stop logging during training #558

Open
jonasboh opened this issue Sep 11, 2024 · 5 comments
Open

Stop logging during training #558

jonasboh opened this issue Sep 11, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@jonasboh
Copy link

Feature request

What is the expected behavior?
Train Tabnet without logging epoch, loss etc.

What is motivation or use case for adding/changing the behavior?
I would like to use it in a pipeline with a processbar to show the training state. Loggig the information during training increses the size of the log file and makes it very confusing.

How should this be implemented in your opinion?
Give an option for logging on different level like Info, Warning, Error and let the use decide what gets printed.

Are you willing to work on this yourself?
yes

@jonasboh jonasboh added the enhancement New feature or request label Sep 11, 2024
@Optimox
Copy link
Collaborator

Optimox commented Sep 11, 2024

I guess you can play with the verbose parameter and set it for example to the maximum number of epochs. This would reduce the training logs to the first and last epochs...

@jonasboh
Copy link
Author

Thank you for the suggestion. Unfortunately it is still confusion the log, as I am training quite a few models.
Is there no option to turn the printing completely off?

@Optimox
Copy link
Collaborator

Optimox commented Sep 12, 2024

I am not sure actually, what happens if you set the verbosity to 0? or -1 ?

@jonasboh
Copy link
Author

I set verbosity to 0 and to -1 but always get the first epoch. Is there no way to stop this?

@Optimox
Copy link
Collaborator

Optimox commented Sep 16, 2024

This comes from the History Callback :

class History(Callback):

You could change this to remove prints. You would have to change the source code, but it is an easy change.

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

No branches or pull requests

3 participants