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

Runtime estimation #41

Open
yonikremer opened this issue Aug 31, 2021 · 3 comments
Open

Runtime estimation #41

yonikremer opened this issue Aug 31, 2021 · 3 comments
Assignees
Labels

Comments

@yonikremer
Copy link

When I'm training a model using keras, I always calculate the runtime by hand (Using the estimated time per epoch)
It would be great if when I use mlnotify the estimated runtime will appear too (next to the time since the start of training)
You can do that using the ETA provided by keras times the number of epochs.

@SnirShechter
Copy link
Contributor

@yoni12345678
Hey, it sounds great, however I'm not sure it fits all scenarios since not all ml libraries have this feature and the manual API certainly can't get it.

Do you think we should implement a best-effort estimation?

@yonikremer
Copy link
Author

In my experience with TensorFlow, the time estimation is pretty accurate, so I think best effort estimation should give accurate results.

@100rab-S
Copy link

Would love to have this feature. Another use case example:

Let's say we need to run a long for loop for some purpose. Other than just knowing it is completed, it is also good to know the expected ETA. The 'tqdm' library does provide the second functionality of displaying the ETA but does not notice as we have in MLNotify. So a merger of these functionalities will be great.

Yeah, there is no ML happening here, but will be useful for a general Python programmer too... If possible it can be included in the manual API.

One API usage example would be

a_long_list = [...]
mlnotify.start(total=len(a_long_list))

for i in a_long_list:
    # do something time consuming
     mlnotify.update(1)   # update by 1 after every iteration 

mlnotify.end()

If there is already some library supporting such a feature, please do let me know.

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

No branches or pull requests

3 participants