EarlyStopping: Implicit Regularisation for Iterative Learning Procedures in Python
Project description
Early stopping
Early stopping is a python library implementing computationally efficient model selection methods for iterative estimation procedures based on the theory in
-
G. Blanchard, M. Hoffmann, M. Reiß. "Early stopping for statistical inverse problems via truncated SVD estimation" . In: Electronic Journal of Statistics 12(2): 3204-3231 (2018).
-
G. Blanchard, M. Hoffmann, M. Reiß. "Optimal adaptation for early stopping in statistical inverse problems" . In: SIAM/ASA Journal of Uncertainty Quantification 6(3), 1043–1075 (2018).
-
B. Stankewitz. "Early stopping for L2-boosting in high-dimensional linear models" . arXiv:2210.07850 [math.ST] (2022).
-
J. Kueck, Y. Luo, M. Spindler, Z. Wang. "Estimation and inference of treatment effects with L2-boosting in high-dimensional settings" . In: Journal of Econometrics 234(2), 714-731 (2023).
-
L. Hucker, M. Reiß. "Early stopping for conjugate gradients in statistical inverse problems" . arXiv:2406.15001 [math.ST] (2024).
-
R. Miftachov, M. Reiß. "Early Stopping for Regression Trees" . arXiv:2502.04709 [math.ST] (2025).
Check out the documentation for more information.
Development notes
Installation for development
Required dependencies: git, Python3, JupyterNotebooks.
Manual setup:
python3 -m pip install build virtualenv # Install build tools
git clone https://github.com/ESFIEP/EarlyStopping.git # Clone git repository
python3 -m build # Build package
python3 -m venv myenv # Create virtual environment
source myenv/bin/activate # Activate virtual environment
python3 -m pip install numpy ipykernel # Install python packages to the environment
python3 -m pip install -e . # Install the EarlyStopping package in editable mode
python3 -m ipykernel install --user --name=myenv # Create Jupyter kernel from the environment
From the notebooks directory open the Jupyter notebook example.ipynb with the kernel myenv and run the code!
Installation from Python Package Index
https://test.pypi.org/project/EarlyStopping
Creating documentation locally
The online documentation is not built until it has been merged into main. To build documentation locally and check how things look run
sphinx-build -M html docs/source docs/build
in the EarlyStopping directory. The documentation will be generated in docs/build/html. To view them locally open index.html with firefox or another browser. Information about about documenting projects with sphinx.
Under Linux, it was necessary to include
import os
import sys
sys.path.insert(0, os.path.abspath('../../src'))
in docs/source/conf.py. Please only include this locally and never push the change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file earlystoppingpy-0.0.4.tar.gz.
File metadata
- Download URL: earlystoppingpy-0.0.4.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dca54824a326963a1b6f66e88365db42a09dcf0c77dbb61a1c7621d228856eb
|
|
| MD5 |
fcc7b06d878d49df8249b2ca7f6e92c1
|
|
| BLAKE2b-256 |
758be8af115a890959ff14cd92736b1736326d5f127f78148dd02e6cedf82915
|
Provenance
The following attestation bundles were made for earlystoppingpy-0.0.4.tar.gz:
Publisher:
pypi.yaml on EarlyStop/EarlyStopping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
earlystoppingpy-0.0.4.tar.gz -
Subject digest:
6dca54824a326963a1b6f66e88365db42a09dcf0c77dbb61a1c7621d228856eb - Sigstore transparency entry: 201429913
- Sigstore integration time:
-
Permalink:
EarlyStop/EarlyStopping@b26f80698e21bcd545342061d1e72e082c173f38 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/EarlyStop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@b26f80698e21bcd545342061d1e72e082c173f38 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file earlystoppingpy-0.0.4-py3-none-any.whl.
File metadata
- Download URL: earlystoppingpy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec497d2267c5b27945d082f5c3e72a8220f57f2cc3591ff85157c7be5acfc063
|
|
| MD5 |
845a2cf01fce5d0260767630a955d491
|
|
| BLAKE2b-256 |
cbb0f06c5b25d26d12f40e6edb1d277844549aacf6c97452a56a04109a4032e1
|
Provenance
The following attestation bundles were made for earlystoppingpy-0.0.4-py3-none-any.whl:
Publisher:
pypi.yaml on EarlyStop/EarlyStopping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
earlystoppingpy-0.0.4-py3-none-any.whl -
Subject digest:
ec497d2267c5b27945d082f5c3e72a8220f57f2cc3591ff85157c7be5acfc063 - Sigstore transparency entry: 201429918
- Sigstore integration time:
-
Permalink:
EarlyStop/EarlyStopping@b26f80698e21bcd545342061d1e72e082c173f38 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/EarlyStop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@b26f80698e21bcd545342061d1e72e082c173f38 -
Trigger Event:
workflow_dispatch
-
Statement type: