Skip to main content

linlear is a python package for machine learning with linear methods, including robust methods

Project description

Build Status Documentation Status PyPI - Python Version PyPI - Wheel GitHub stars GitHub issues GitHub license Coverage Status


linlearn: linear methods in Python

LinLearn is scikit-learn compatible python package for machine learning with linear methods. It includes in particular alternative "strategies" for robust training, including median-of-means for classification and regression.

Documentation | Reproduce experiments |

LinLearn simply stands for linear learning. It is a small scikit-learn compatible python package for linear learning with Python. It provides :

  • Several strategies, including empirical risk minimization (which is the standard approach), median-of-means for robust regression and classification
  • Several loss functions easily accessible from a single class (BinaryClassifier for classification and Regressor for regression)
  • Several penalization functions, including standard L1, ridge and elastic-net, but also total-variation, slope, weighted L1, among many others
  • All algorithms can use early stopping strategies during training
  • Supports dense and sparse format, and includes fast solvers for large sparse datasets (using state-of-the-art stochastic optimization algorithms)
  • It is accelerated thanks to numba, leading to a very concise, small, but very fast library


The easiest way to install linlearn is using pip

pip install linlearn

But you can also use the latest development from github directly with

pip install git+


Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for linlearn, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size linlearn-0.1-py3-none-any.whl (28.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size linlearn-0.1.tar.gz (26.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page