Learning with Subset Stacking (LESS)
LESS is a supervised learning algorithm that is based on training many local estimators on subsets of a given dataset, and then passing their predictions to a global estimator. You can find the details about LESS in our manuscript.
Installation
Install LESS from PyPI:
pip install less-learn
Getting Started
Below is a simplified example of how to use LESS
from sklearn.datasets import make_regression
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from less import LESSBRegressor
# Generate a synthetic regression dataset
X, y = make_regression(n_samples=1000, n_features=20, random_state=42)
# Split into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.3, random_state=42
)
# Initialize and train the LESS model
less_model = LESSBRegressor(random_state=42)
less_model.fit(X_train, y_train)
# Make predictions and evaluate performance
y_pred = less_model.predict(X_test)
mse = mean_squared_error(y_test, y_pred)
print(f"Test MSE of LESS: {mse:.2f}")
Note: LESS employs Euclidean distances combined with a radial basis function (RBF) kernel by default. It is therefore highly recommended to scale or normalize input features prior to model training to ensure optimal performance.
Citation
Our software can be cited as:
@misc{LESS,
author = "Ilker Birbil and Samet Copur",
title = "LESS: Learning with Subset Stacking",
year = 2025,
url = "https://github.com/sibirbil/LESS/"
}
Metadata
Release files for less-learn 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| less_learn-0.5.0.tar.gz | 24.6 kB | Without provenance | Details for less_learn-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| less_learn-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for less_learn-0.5.0-py3-none-any.whl |
Total release size: 48.0 kB
Release files / less_learn-0.5.0.tar.gz
| Download URL | less_learn-0.5.0.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abd13ac1d3a9d7ebb301e8485afb5af344436e5491398792031e93ae8665ced8
|
|
BLAKE2b-256 checksum How to use checksums |
583c7693ed3a6c82dbadd70b650648f8b54ca253b0c34b99c20c1be76637a0a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / less_learn-0.5.0-py3-none-any.whl
| Download URL | less_learn-0.5.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b40dafcfc182243b82e008692c11919ac6e2183cc134ffb07d5c5ddfb980599
|
|
BLAKE2b-256 checksum How to use checksums |
6ba832d593ed364fa406dfb85e0a0af6139acb31cae1ce9e94ffd5a9660dab7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for less-learn 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.