Skip to content

n_iters_ in SVR is always saved as 10,000 #1712

Open
@caspimoshe

Description

@caspimoshe

Describe the bug
The n_iter_ that is saved seems to be constant 10000

To Reproduce
import numpy as np
from sklearnex import patch_sklearn

patch_sklearn()
from sklearn.svm import SVR

svr = SVR()
X = np.random.randn(100, 5)
y = np.mean(X, axis=1)
svr.fit(X, y)
print('svr.n_iter_: ', svr.n_iter_)

Expected behavior
Describe what your are expecting from steps above

Output/Screenshots
import numpy as np
from sklearnex import patch_sklearn

patch_sklearn()
from sklearn.svm import SVR

svr = SVR()
X = np.random.randn(100, 5)
y = np.mean(X, axis=1)
svr.fit(X, y)
print(svr.n_iter_)

Environment:

  • OS: [Windows 11]
  • Compiler: [python 3.8]
  • scikit-learn==1.2.2
  • Version: [2024.1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions