DEVELOPMENT... OpenML
Flow
sklearn.linear_model._ridge.RidgeClassifier

sklearn.linear_model._ridge.RidgeClassifier

Visibility: public Uploaded 23-03-2023 by Rhonda Barnett sklearn==1.2.2 numpy>=1.17.3 scipy>=1.3.2 joblib>=1.1.1 threadpoolctl>=2.0.0 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_1.2.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Classifier using Ridge regression. This classifier first converts the target values into ``{-1, 1}`` and then treats the problem as a regression task (multi-output regression in the multiclass case).

Parameters

alphaRegularization strength; must be a positive float. Regularization improves the conditioning of the problem and reduces the variance of the estimates. Larger values specify stronger regularization Alpha corresponds to ``1 / (2C)`` in other linear models such as :class:`~sklearn.linear_model.LogisticRegression` or :class:`~sklearn.svm.LinearSVC`default: 1.0
class_weightWeights associated with classes in the form ``{class_label: weight}`` If not given, all classes are supposed to have weight one The "balanced" mode uses the values of y to automatically adjust weights inversely proportional to class frequencies in the input data as ``n_samples / (n_classes * np.bincount(y))`` solver : {'auto', 'svd', 'cholesky', 'lsqr', 'sparse_cg', 'sag', 'saga', 'lbfgs'}, default='auto' Solver to use in the computational routines: - 'auto' chooses the solver automatically based on the type of data - 'svd' uses a Singular Value Decomposition of X to compute the Ridge coefficients. It is the most stable solver, in particular more stable for singular matrices than 'cholesky' at the cost of being slower - 'cholesky' uses the standard scipy.linalg.solve function to obtain a closed-form solution - 'sparse_cg' uses the conjugate gradient solver as found in scipy.sparse.linalg.cg. As an iterative algorithm, this solver...default: null
copy_XIf True, X will be copied; else, it may be overwrittendefault: true
fit_interceptWhether to calculate the intercept for this model. If set to false, no intercept will be used in calculations (e.g. data is expected to be already centered)default: true
max_iterMaximum number of iterations for conjugate gradient solver The default value is determined by scipy.sparse.linalgdefault: null
positiveWhen set to ``True``, forces the coefficients to be positive Only 'lbfgs' solver is supported in this casedefault: false
random_stateUsed when ``solver`` == 'sag' or 'saga' to shuffle the data See :term:`Glossary ` for details.default: null
solverdefault: "auto"
tolPrecision of the solution. Note that `tol` has no effect for solvers 'svd' and 'cholesky' .. versionchanged:: 1.2 Default value changed from 1e-3 to 1e-4 for consistency with other linear modelsdefault: 0.0001

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table