Skip to content

Bug: OvO Multi-class coef_ Diverges from sklearn OneVsOneClassifier Despite Matching Accuracy #33

@statmlben

Description

@statmlben

@Leona-LYT

When using plq_Ridge_Classifier with multi_class='ovo', the fitted coefficients (coef_) diverge significantly from those produced by sklearn's OneVsOneClassifier(LinearSVC(...)), even though both classifiers achieve identical test accuracy. The maximum per-coefficient absolute difference reaches 4.24 (far above the expected tolerance of 1e-3), indicating a numerical or algorithmic discrepancy in the OvO subproblem setup.

Image

Steps to Reproduce

python tests/_test_multiclass.py

Maybe there is some post-processing on solution for LinearSVC; please fix/figure it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions