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

Model progress with event. #18773

Closed
MayukhSobo opened this issue Nov 6, 2020 · 2 comments
Closed

Model progress with event. #18773

MayukhSobo opened this issue Nov 6, 2020 · 2 comments

Comments

@MayukhSobo
Copy link

MayukhSobo commented Nov 6, 2020

Hello, I am stuck with a weird problem. I have a setup where based on the options selected in the web, I am choosing multiple algorithms like Neaural networks and sometimes Logistic Regression using SGDClassifier. I can always write a custom callback function where I can transmitt the values like epoch, validation loss and training progress to the web backend in case of neural network. But I want to achieve the same thing with logistic regression using SGDClassifer. I know that it works on multiple iterations. So if I can somehow get the current iteration and after every iter, if I can call a custom function, it would be really great.

@MayukhSobo MayukhSobo changed the title Model progress with event. Hello, I am stuck with a weird problem. I have a setup where based on the options selected in the web, I am choosing multiple algorithms like Neaural networks and sometimes Logistic Regression using SGDClassifier. I can always write a custom callback function where I can transmitt the values like epoch, validation loss and training progress to the web backend in case of neural network. But I want to achieve the same thing with logistic regression using SGDClassifer. I know that it works on multiple iterations. So if I can somehow get the current iteration and after every iter, if I can call a custom function, it would be really great. Model progress with event. Nov 6, 2020
@rth
Copy link
Member

rth commented Nov 6, 2020

There is WIP Pull Request to add callbacks which would allow doing this in #16925

@glemaitre
Copy link
Member

I am closing this issue since we already have a PR and associated issue and an entry in the scikit-learn road map.

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

No branches or pull requests

3 participants