KMDS modeling pipeline package for KMDS lifecycle and model selection.
Project description
KMDS Modeling
kmds-modeling is a lightweight supporting package for KMDS modeling workflows. It provides the runtime plumbing, evaluation orchestration, and artifact export utilities needed to bridge KMDS feature outputs and production-ready model assets.
Overview
- Supports KMDS workspace modeling without embedding domain-specific business logic.
- Provides a generic
ExperimentRunnerengine for cross-validation, transformer orchestration, and candidate model evaluation. - Includes a CLI for standard evaluation and production export flows.
- Keeps workspace-specific examples and artifacts outside the installable package.
Key Features
- Config-driven modeling pipeline via
modeling_config.yaml - Safe cross-validation with fold-specific transformer fitting
- Uniform candidate wrapper support for any model implementation
- Export of serialized model weights, feature pipeline, and metadata
- Path coordination for KMDS workspace layout handling
Installation
pip install kmds-modeling
CLI
The package exposes a command-line interface for model evaluation and export.
kmds-modeling evaluate --config /path/to/modeling_config.yaml
kmds-modeling export --config /path/to/modeling_config.yaml
Configuration
The package expects a YAML configuration file that defines:
projectsettings such as name, version, and target variabledatasettings including working directory and index columnexperiment_settingsfor cross-validation and metricscandidateslisting candidate models and their hyperparametersproduction_targetfor champion export paths
The PathCoordinator resolves workspace-relative paths and ensures the package operates on KMDS-generated modeling artifacts.
Recommended Workflow
- Generate feature-engineered data with KMDS upstream tools such as
kmds-featurization. - Author a
modeling_config.yamlwith the correct workspace layout and candidate definitions. - Run
kmds-modeling evaluateto compare candidate models and generate a leaderboard. - Select the champion candidate and run
kmds-modeling exportto produce model artifacts.
Project Structure
src/kmds_modeling/— installable package sourcesrc/kmds_modeling/cli.py— CLI entrypointsrc/kmds_modeling/core/runner.py— evaluation and export orchestrationsrc/kmds_modeling/core/path_coordinator.py— workspace path resolutionsrc/kmds_modeling/core/notebook_utils.py— notebook-friendly utilities
Contribution Notes
- Keep core modeling logic generic and focused on KMDS pipeline support.
- Add workspace-specific examples or experimental workflows outside the installable source tree.
- Avoid coupling the package to any single KMDS project domain.
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 kmds_modeling-0.2.1.tar.gz.
File metadata
- Download URL: kmds_modeling-0.2.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a50d595274bc1c01e1b649c3540e7850224a478befce945dcae485a626d4bc
|
|
| MD5 |
af49333ed3a7e3beee662d6c227decd0
|
|
| BLAKE2b-256 |
4b89b7cf24b78d6c891a7f96a3179df506754f65f8b48212532b00993a556f71
|
File details
Details for the file kmds_modeling-0.2.1-py3-none-any.whl.
File metadata
- Download URL: kmds_modeling-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7367677adc4d49a5131ac7d7bbc2ad7e514faef7fe275ea67828103f182d0b5e
|
|
| MD5 |
faf076f289cac04ed7792c1acdf5ba5c
|
|
| BLAKE2b-256 |
568d83f1f8595d26b8f70ab2989f98c8bc9696b0c713bafe1c6c52b768fa66f3
|