Skip to main content

Advanced ML data processing with 5 patterns: QUANTUM, RELEVANCE, REDACT, SCAFFOLD, BOW

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.1.tar.gz (53.4 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.1-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chalkml-1.0.1.tar.gz
  • Upload date:
  • Size: 53.4 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.1.tar.gz
Algorithm Hash digest
SHA256 19f47353cab3ba9e6eed35aaadef57a2d6443fb401ae91f74b1dc1dc9d6d1d46
MD5 386b185c83c04fe695aa91c98cc92d4f
BLAKE2b-256 26c481412a0f8805b4d26d6320fe0669769f2a2f7b15d9509d1c8504d2ba6c28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chalkml-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b85aec8f6dccd871b8b6967389387b1f7c16ac4b27dae04b1dd176b326a59a5
MD5 6ddc4f084e4954f84a749c655e896ff1
BLAKE2b-256 1b80cf645d5d6f4fed446eb5a656a273463ce14666991e58b6114464498570ac

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