8000 MAINT add missing space in error message in SVM by precondition · Pull Request #25913 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT add missing space in error message in SVM #25913

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

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sklearn/svm/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ def fit(self, X, y, sample_weight=None):
dual_coef_finiteness = np.isfinite(dual_coef).all()
if not (intercept_finiteness and dual_coef_finiteness):
raise ValueError(
"The dual coefficients or intercepts are not finite. "
"The input data may contain large values and need to be"
"preprocessed."
"The dual coefficients or intercepts are not finite."
" The input data may contain large values and need to be"
" preprocessed."
)

# Since, in the case of SVC and NuSVC, the number of models optimized by
Expand Down
0