Skip to main content

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.

Metadata

Release files for generalize 0.4.2

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

Source distribution (sdist)

Source distribution for generalize 0.4.2
File Size Uploaded Provenance Actions
generalize-0.4.2.tar.gz 120.4 kB Without provenance Details for generalize-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 271.5 kB

Release files / generalize-0.4.2.tar.gz

Download URL generalize-0.4.2.tar.gz
Size 120.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f4fc148d589174f55c59979dc7aa5de9304afac795b3d68f5d7bad0838755dd3
BLAKE2b-256 checksum
How to use checksums
23193a0432a019adeed5286dcc1bd475b7d06a99c5469563dd6fa03d3459ac4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0

Release files / generalize-0.4.2-py3-none-any.whl

Download URL generalize-0.4.2-py3-none-any.whl
Size 151.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26008877c89ca578b257c75953e8e10db7bb32c7d62c633e09bd8c68bb4fff37
BLAKE2b-256 checksum
How to use checksums
d4282ed177b5f1ebbc5b2185ff66e37bdbd8bc5bcc7d35fd752c052cc45339f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0

Security for generalize 0.4.2

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.

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