Generalize 
Author: Ludvig R. Olsen ( r-pkgs@ludvigolsen.dk )
The ultimate goal of training machine learning models is to generalize to new, unseen data. This package contains tools for measuring model performance across multiple datasets via cross-dataset-validation (aka. leave-one-dataset-out).
Under development!
- Not generalized enough for general usage (ironic, I know)
- Relies on an old version of scikit-learn, needs updating
- Linear regression is not currently implemented
- Help strings are likely not up-to-date
Main functions and classes
| Function | Description |
|---|---|
nested_cross_validate() |
Run (repeated) nested cross-validation. |
train_full_model() |
Train model on all data and save to disk. |
evaluate_univariate_models() |
Evaluate prediction potential of every predictor separately. |
PipelineDesigner |
Design a scikit-learn pipeline for use in cross-validation. |
ROCCurve, ROCCurves |
ROC curve containers with various utility methods. |
select_samples() |
Utility for selecting samples based on (collapsed) labels. |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
generalize-0.4.1.tar.gz
(120.2 kB
view details)
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
generalize-0.4.1-py3-none-any.whl
(151.0 kB
view details)
File details
Details for the file generalize-0.4.1.tar.gz.
File metadata
- Download URL: generalize-0.4.1.tar.gz
- Upload date:
- Size: 120.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2fa02f052993f949fb4db33be967b28d850aa5a3a0b13d5039e1fe49175d2d9
|
|
| MD5 |
4c6b98957d793a5db240db109f13933b
|
|
| BLAKE2b-256 |
745aa04e32358dbd79496f2f2b2dfd2ae1651e60f2237d4492deea644034c914
|
File details
Details for the file generalize-0.4.1-py3-none-any.whl.
File metadata
- Download URL: generalize-0.4.1-py3-none-any.whl
- Upload date:
- Size: 151.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55c08e847fed536683d24bc361005cbacc4b68d7bc96a52f327969ad9422311d
|
|
| MD5 |
bd72f3c0917d6529291b639abc2c13a2
|
|
| BLAKE2b-256 |
620a2b62ad5ae862bab98689e4524f6b2c34af1b88f383a13924df97a7a2e4b5
|