Skip to main content

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

linlearn

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

Installation

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+https://github.com/linlearn/linlearn.git

References

Release files for linlearn 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linlearn 0.1
File Size Uploaded
linlearn-0.1.tar.gz 26.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linlearn 0.1
File Interpreter ABI Platform
linlearn-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 54.9 kB

Release files / linlearn-0.1.tar.gz

Download URL linlearn-0.1.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bf72a4a9537a2e97ae45f208fca7b260de0b956e30b3e49da494be97dba37347
BLAKE2b-256 checksum
How to use checksums
f1850c93ee983c81868818201e47e157ebeb3ec509c056c653257adc0f4abae8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.9 Darwin/20.1.0

Release files / linlearn-0.1-py3-none-any.whl

Download URL linlearn-0.1-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebe5c2894eef248b3f2c39aebae0456aee3eb98e4e0280dd07b24df670dd59d1
BLAKE2b-256 checksum
How to use checksums
feb656a4beda168e1d373fb34c9532cf05629fbfd11fdce48d4a2c4a3fbf5285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.7.9 Darwin/20.1.0

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page