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.2.3.tar.gz (118.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.2.3-py3-none-any.whl (150.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for generalize-0.2.3.tar.gz
Algorithm Hash digest
SHA256 18d856f4f8bec851b321b2ac36ea2405f55890a6f33e68e1a69db561ac041705
MD5 35bd3dc3257f2facdafeea5bb38ec6b4
BLAKE2b-256 64f639dab450cace64baf94c40b5736a188ae5a7c5052809977d6b9050e79805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: generalize-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 150.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.9.6 Darwin/23.6.0

File hashes

Hashes for generalize-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ae8a63005e9cdf79c9e033feb36aa6b03aaff19f722056675bbf9d5fec45136
MD5 d3f6fdd69ffd2c5f12068075d10857b3
BLAKE2b-256 b8fadfb3772f5a41c74587f88733fe439ece9c47e978e241c55c4fbf064468d9

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