scikit-learn / scikit-learn/scikit-learn

Automatically force_all_finite=False in non-initial warm_start runs

Open
#10,600 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Python
Stars
67.3k
Forks
27.4k
Avg merge
1d 15h
Merged PRs (30d)
58

Description

For estimators that have a warm_start option, we generally expect that the same data is passed in for each call to fit as was done in the first. I think we can save a little on runtime by using check_array with force_all_finite=False in the case that warm_start=True and the model has already been fitted.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating estimators that support warm_start and the check_array calls used during fit. Trace the initial and subsequent fit paths, then add focused tests showing the intended finite-value checking behavior for repeated warm-start fits and confirming existing initial-fit behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.