Skip to content

Improve doc on C vs alpha equivalence between estimators #6919

Closed
@TomDLT

Description

@TomDLT

screenshot - 06222016 - 03 13 56 pm

There is an error in the doc:
The doc claims the equivalence C = n_samples / alpha, yet we don't know which alpha.

  • If it's Ridge's alpha, it seems to me that C = 1 / alpha
  • if it's SGD's alpha, it seems to me that C = 1 / (alpha * n_samples)

In both cases, the doc is not correct.

A quick overview gave me the equivalence : 1 / C_svc ~ 1 / C_logistic ~ alpha_ridge
~ alpha_elastic_net * n_samples ~ alpha_lasso * n_samples ~ alpha_sgd * n_samples

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationEasyWell-defined and straightforward way to resolve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions