Skip to main content

ChalkML is a deterministic data processing framework with advanced data design patterns

Project description

ChalkML

Production-grade ML data processing framework with exceptional determinism

PyPI version Python 3.8+ License: MIT

Overview

ChalkML is a data preprocessing framework for machine learning to assist researchers and engineers with advanced data processing which are missing from Pandas. In addition to its innovative positional notation, ChalkML comes with advanced data processing design patterns. Each pattern addresses critical gaps in production ML systems: deterministic reproducibility, feature selection, privacy preservation, synthetic data generation, and regulatory compliance.

Installation

pip install chalkml

Position Notation

ChalkML uses intuitive position notation for columns:

Notation Meaning
01N 1st from left
02N 2nd from left
N01 Last (1st from right)
N02 2nd last
# Examples
chalkml -rm col 01N data.csv              # Remove 1st column
chalkml -mv col 02N N01 data.csv          # Move 2nd to last
chalkml -fillsmart col 03N mean data.csv  # Fill with mean

Core Operations

# Data manipulation
chalkml -rm col 01N data.csv                    # Remove
chalkml -mv col 01N 03N data.csv                # Move
chalkml -rn col 02N "Age" data.csv              # Rename

# Imputation
chalkml -fillsmart col 03N mean data.csv        # Mean
chalkml -fillsmart col 04N knn data.csv         # KNN

# Feature engineering
chalkml -derive "BMI" "col:weight/col:height**2" data.csv
chalkml -onehot col 05N data.csv
chalkml -scale col 03N data.csv --method standard

5 Design Patterns

MAP - Transform each element

chalkml -map col 05N "x*2" data.csv
chalkml -map col 06N "x**2" data.csv

REDUCE - Aggregate columns

chalkml -reduce col 01N,02N,03N sum Total data.csv

STENCIL - Sliding windows

chalkml -stencil col 03N 5 rolling_mean data.csv

SCAN - Cumulative operations

chalkml -scan col 03N cumsum data.csv

FARM - Parallel operations

chalkml -farm col range 01N:10N "x*2" data.csv

5 Advanced Patterns

QUANTUM - Schema-based compression (70-90% reduction)

chalkml -quantum compress --schema medical patients.csv
chalkml -quantum decompress --schema medical compressed.csv

RELEVANCE - Feature selection (95-98% reduction)

chalkml -relevance select --target 01N --threshold 0.1 data.csv
chalkml -relevance rank --target outcome --top 10 data.csv

REDACT - Privacy preservation (HIPAA, GDPR)

chalkml -redact hipaa --identifiers all patients.csv
chalkml -redact differential --epsilon 1.0 sensitive.csv

SCAFFOLD - Synthetic data generation

chalkml -scaffold sequence --type fibonacci --count 100
chalkml -scaffold distribution --dist normal --count 10000

BOW - Compliance standardization

chalkml -bow standard --standard GAAP financial.csv
chalkml -bow format --column date --type date --pattern "YYYY-MM-DD" data.csv

Python API

from chalkml import get_chalkml_engine
from chalkml.quantum_engine import get_quantum_engine

# Core operations
engine = get_chalkml_engine()
engine.remove_column("data.csv", "01N")
engine.fill_smart("data.csv", "03N", "mean")

# Advanced patterns
quantum = get_quantum_engine()
quantum.compress_file("data.csv", "schema", "out.csv")

License

MIT License

Authors

Hope Mogale & MY Pitsane
Mankind Research Labs (mankindlabs@protonmail.com)

Version 1.0.0 | Production-ready | 15+ validated use cases

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

chalkml-1.0.3.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

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

chalkml-1.0.3-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file chalkml-1.0.3.tar.gz.

File metadata

  • Download URL: chalkml-1.0.3.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for chalkml-1.0.3.tar.gz
Algorithm Hash digest
SHA256 081b59cb426d7fd15a62ce779834026e2f53287b0d7ad73073bfa6efb3653409
MD5 df614824f8d0433da8eb0d200da38099
BLAKE2b-256 7b9a7a040349a91994080d501162f18b86967723c292cbce087be021fe493d15

See more details on using hashes here.

File details

Details for the file chalkml-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: chalkml-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for chalkml-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1fb56c7cb66b49026f5a53c2fbc22b5b45300c815dd5844a803d5aaf751fe3
MD5 8269e286bd42d4acda341a0f87fbe5f4
BLAKE2b-256 dc5015a1c8fb104e5ddc9a6e9733f275323e2abe454bb0eaf171e6025daa0f6d

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