Skip to content

Broken plot_svm_scale_c.py example #4260

@ogrisel

Description

@ogrisel

Here is the exception:

Traceback (most recent call last):
  File "examples/svm/plot_svm_scale_c.py", line 133, in <module>
    grid.fit(X, y)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/grid_search.py", line 732, in fit
    return self._fit(X, y, ParameterGrid(self.param_grid))
  File "/volatile/ogrisel/code/scikit-learn/sklearn/grid_search.py", line 505, in _fit
    for parameters in parameter_iterable
  File "/volatile/ogrisel/code/scikit-learn/sklearn/externals/joblib/parallel.py", line 659, in __call__
    self.dispatch(function, args, kwargs)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/externals/joblib/parallel.py", line 406, in dispatch
    job = ImmediateApply(func, args, kwargs)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/externals/joblib/parallel.py", line 140, in __init__
    self.results = func(*args, **kwargs)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/cross_validation.py", line 1459, in _fit_and_score
    estimator.fit(X_train, y_train, **fit_params)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/svm/classes.py", line 198, in fit
    loss
  File "/volatile/ogrisel/code/scikit-learn/sklearn/svm/base.py", line 774, in _fit_liblinear
    solver_type = _get_liblinear_solver_type(multi_class, penalty, loss, dual)
  File "/volatile/ogrisel/code/scikit-learn/sklearn/svm/base.py", line 657, in _get_liblinear_solver_type
    % (error_string, penalty, loss, dual))
ValueError: Unsupported set of arguments: Loss L2 is not supported, Parameters: penalty='L1', loss='L2', dual=False

I found this pbm by building the documentation.

This might have reveal a change that broke backward compatibility. Need investigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEasyWell-defined and straightforward way to resolve

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions