deepsim-dskit - A Reusable Data Science Framework
deepsim-dskit is an installable Python package for reproducible, configuration-driven
data science pipelines. It provides reusable building blocks for loading data,
preprocessing, splitting, modeling, artifact management, and experiment runs.
Installation
pip install -e ".[dev]"
Optional extras:
pip install "deepsim-dskit[polars]"
pip install "deepsim-dskit[yaml]"
Quick Start
from dskit import load_dataset, create_split
df = load_dataset("data/advertising.csv", index_col=0)
split = create_split(df, target="sales", test_size=0.2, random_state=42)
Run a full experiment from a config dictionary:
from dskit import run_full_pipeline
config = {
"experiment_id": "advertising_baseline",
"seed": 42,
"data": {
"path": "data/advertising.csv",
"target": "sales",
"read_kwargs": {"index_col": 0},
},
"splitting": {"test_size": 0.2, "val_size": 0.1, "random_state": 42},
"preprocessing": {
"missing": {"strategies": {}, "indicator_columns": []},
"outliers": {"columns": [], "method": "iqr", "multiplier": 1.5},
"scaling": {"columns": ["TV", "radio", "newspaper"], "method": "standard"},
},
"models": {
"linear": {"class": "LinearRegression", "params": {}},
"ridge": {"class": "Ridge", "params": {"alpha": 1.0}},
},
"output": {
"experiments_dir": "experiments",
"registry_path": "registry/experiments.json",
},
}
result = run_full_pipeline(config)
print(result["best_model_name"])
print(result["metrics"]["test_r2"])
The
outputblock may also includelogs_dir(defaults to"logs").
CLI
dskit-run --version
dskit-run --config configs/advertising.json --dry-run
dskit-run --config configs/advertising.json --env production
What's Included
| Module | Purpose |
|---|---|
data_io |
Load, validate, and save datasets |
eda |
Exploratory summaries |
preprocessing |
Imputation, outlier treatment, scaling |
splitting |
Reproducible train/test/validation splits |
pipeline |
Fit/transform preprocessing pipeline |
feature_engineering |
Encoding and feature construction |
modeling |
Training, evaluation, and ModelRegistry |
persistence |
Save and load artifacts |
artifacts |
Experiment artifacts and registry helpers |
reproducibility |
Config-driven experiment execution |
config |
Config validation and environment profiles |
performance |
Profiling and optimization helpers |
License
MIT License. See LICENSE.
Author
Shouke Wei, PhD · Deepsim Press Author Page Affiliation: Deepsim Intelligence Technology Inc. deepsim.ca
Metadata
Release files for deepsim-dskit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepsim_dskit-1.0.0.tar.gz | 56.8 kB | Without provenance | Details for deepsim_dskit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepsim_dskit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for deepsim_dskit-1.0.0-py3-none-any.whl |
Total release size: 112.9 kB
Release files / deepsim_dskit-1.0.0.tar.gz
| Download URL | deepsim_dskit-1.0.0.tar.gz |
|---|---|
| Size | 56.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf0adba60eae5dfe41ba676efa6337ef91201aead15985d46a0d87a46b81bffb
|
|
BLAKE2b-256 checksum How to use checksums |
dda8a821a7cca7beef7e2b3bb079cfdf0e85f445390e8bf82e3502329c82bd85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / deepsim_dskit-1.0.0-py3-none-any.whl
| Download URL | deepsim_dskit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e2b95628eea1f6610ffc9f8fbd855f407e74f1929762c53ee227d5b9e2ec482
|
|
BLAKE2b-256 checksum How to use checksums |
858f50ff074fdef4fecc1518f1a10861eb3213a2d42c44b2fcd65e0790fac9e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for deepsim-dskit 1.0.0
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.