Skip to main content

No project description provided

Project description

rank2plan

Tests

Implementation of constraint generation and column generation for solving large L1-RankSVMs with hinge loss (with pair-specific gaps) and sample weights. This is based on the work by Dedieu et al (2022) on solving large L1-SVMs with hinge loss. See documents/theory.pdf for how we extend their work. The "2plan" part of the package name comes from the tool being used to learn heuristics for planning.

Installation

Install with

pip install rank2plan

The PyPI release only supports 3.8 <= python <= 3.10 for now.

Examples

See under tests for examples.

Todo

  • Support for sparse matrices and vectors
  • Bayesian optimisation for tuning the C value.
  • We log pretty aggressively, probably should add a verbosity control

References

  • A. Dedieu, R. Mazumder, and H. Wang. Solving L1-regularized SVMs and Related Linear Programs: Revisiting the Effectiveness of Column and Constraint Generation. J. Mach. Learn. Res., 23:164:1–164:41, 2022. [URL].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rank2plan-0.2.0.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

rank2plan-0.2.0-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page