Skip to main content

KMDS modeling pipeline package for KMDS lifecycle and model selection.

Project description

KMDS Modeling

kmds-modeling is a lightweight modeling package designed to work inside the KMDS ecosystem. It provides generic modeling infrastructure and pipeline utilities for KMDS-style workflows, while leaving domain-specific examples and workspace-specific implementations separate.

What this package provides

  • src/kmds_modeling/core — generic modeling package infrastructure
  • src/kmds_modeling/core/path_coordinator.py — workspace-rooted path resolution for KMDS modeling
  • src/kmds_modeling/core/notebook_utils.py — notebook-friendly workspace resolver
  • src/kmds_modeling/cli.py — installable CLI glue for evaluation and export
  • models/sba_example — an example SBA-specific modeling workflow kept outside the installed package

Intended usage

This package is meant to be installed into a KMDS workspace and used against modeling artifacts generated by KMDS tools such as kmds-featurization. The package does not embed any domain-specific SBA implementation in the installable distribution.

Installation

pip install kmds-modeling

CLI commands

After installing, the package exposes the kmds-modeling CLI:

kmds-modeling evaluate --config /path/to/modeling_config.yaml
kmds-modeling export --config /path/to/modeling_config.yaml

Working directory and configuration

KMDS modeling expects a working_dir and a modeling_config.yaml that defines the workspace layout. The package resolves paths using the PathCoordinator and writes modeling outputs into the workspace models/ directory by default.

Example workflow

  1. Use KMDS featurization to generate model_ready_numeric_data.csv under data/featurization/.
  2. Create modeling_config.yaml with a working_dir pointing to your KMDS workspace.
  3. Run the package CLI to evaluate and export model artifacts.

Packaging note

The published PyPI package should only contain the generic package code under src/kmds_modeling/. Workspace-specific examples such as models/sba_example/ are intentionally kept outside the installable package source tree.

Contributing

If you want to add another KMDS modeling example, put it under models/<example_name>/ and leave the core package unchanged.

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

kmds_modeling-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

kmds_modeling-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file kmds_modeling-0.1.0.tar.gz.

File metadata

  • Download URL: kmds_modeling-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 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

Hashes for kmds_modeling-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cba34b49c2d9a91ce09bedfed915e77b70479a93711520ce284ddd68625c68fd
MD5 e11274eb2f9669f0bf2dceb9cfa69d08
BLAKE2b-256 3d9d1d0ce0a196b61495f7905a81c51376314dd60817e89a99c441fc8490755f

See more details on using hashes here.

File details

Details for the file kmds_modeling-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kmds_modeling-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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

Hashes for kmds_modeling-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441c56465455f040b43a8a1607877205911c088ede88f7059f77764a58d9e750
MD5 9995fb1345dfca64f4580874a9219a2d
BLAKE2b-256 bbe486e0783f2322f0a977c05a3764d57deeeaf14092b1822b3b22ec0f5ec08e

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