Skip to main content

Machine learning tools for running repeated nested leave-one-dataset-out validation and more.

Project description

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.

Project details


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.3.1.tar.gz (119.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generalize-0.3.1-py3-none-any.whl (150.7 kB view details)

Uploaded Python 3

File details

Details for the file generalize-0.3.1.tar.gz.

File metadata

  • Download URL: generalize-0.3.1.tar.gz
  • Upload date:
  • Size: 119.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.9.6 Darwin/25.4.0

File hashes

Hashes for generalize-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ffa3ccd3262623123579794fd5f4c869323f046bb94861bf0cbcf48f91442be3
MD5 ffff8c375ca559fca231331c26efe30f
BLAKE2b-256 95affd77f2647d500c652b4a18e788524875ecee669309b17867506df35d849f

See more details on using hashes here.

File details

Details for the file generalize-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: generalize-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 150.7 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

Hashes for generalize-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7a8620676aa4e1f89a86743492ba6af90494fb7906ac8b5396727c2993c2ee
MD5 a39d05fa4dd806cbb08ea6aa6e2ffd2b
BLAKE2b-256 317ea9915305a29a77419cc888d86cc03c4818b5b067f57bff7d5386196ff7f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page