Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SCML: Add warm_start parameter #345

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

Open
maxi-marufo wants to merge 7 commits into scikit-learn-contrib:master
base: master
Choose a base branch
Loading
from maxi-marufo:SCML-warm-start

Conversation

@maxi-marufo
Copy link

@maxi-marufo maxi-marufo commented Dec 8, 2021

Because SCML optimization procedure is based on stochastic subgradient descent, we can save the weights after fitting the model, and use them in a following fit call (with a different set of triplets). The decision to use the warm_start parameter instead of a new partial_fit method is because partial_fit in scikit-learn will only fit 1 epoch, whereas fit will fit for multiple epochs (until the loss converges or max_iter is reached), which is the case also for SCML.

@maxi-marufo maxi-marufo changed the title (削除) [WIP] Add warm_start parameter to SCML (削除ここまで) (追記) SCML: Add warm_start parameter (追記ここまで) Mar 28, 2022
Copy link
Contributor

This change looks fine to me, though I'm not sure when this warm-start option is useful in practice. Sorry for the extreme delay in reviewing!

@grudloff want to take a look?

Copy link
Contributor

LGTM!

Copy link
Member

@bellet bellet left a comment

Choose a reason for hiding this comment

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

Thanks @maxi-marufo !
Maybe it is possible to design a better test, something in the spirit https://github.com/scikit-learn/scikit-learn/blob/80598905e517759b4696c74ecc35c6e2eb508cff/sklearn/linear_model/tests/test_sgd.py#L274
where the idea is to check that calling warm_start=True is equivalent to manually setting the parameters?

maxi-marufo reacted with thumbs up emoji
Copy link
Member

@bellet bellet left a comment

Choose a reason for hiding this comment

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

LGTM @maxi-marufo, but I would like to rerun the CIs, not sure how to do this - @perimosocordiae @terrytangyuan do you know?

One simple way sould be for you @maxi-marufo to update your branch to the current state of master and push an empty commit

Copy link
Contributor

grudloff commented Jan 7, 2025

@bellet For a manual run you need to have a trigger on workflow_dispatch but currently it is only set up with push and pull requests to master. So it would not be possible rn
(see https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow)

Copy link
Member

This just needs a rebase to trigger the CI.

Copy link
Member

CI triggered

Copy link
Member

bellet commented Apr 9, 2025

@maxi-marufo @terrytangyuan well looks like checks have been cancelled and/or failed?

Copy link
Member

I think some failed which triggered cancellation of the rest.

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

Reviewers

@bellet bellet Awaiting requested review from bellet

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /