Getting Started
Quick Start
Get up and running with the SDK and CLI in under 5 minutes
Featuresmith is designed to serve identical, deterministic results whether you are running scripted pipelines in Python, exploring interactive Jupyter notebooks, or triggering quality gates in the terminal.
Interactive Tutorial Notebooks (Recommended)
The fastest way to master Featuresmith v0.4.0 is through our official hands-on Jupyter notebook series in examples/notebooks/:
Dataset loading (fs.load), statistical profiling (fs.profile), automated review (fs.review), and readiness scoring (fs.score).
01_getting_started.ipynbDeep dive into the 10 automated reviewers, finding severities, and section categories.
02_dataset_review.ipynbUnderstanding 0–100 scorecards, mathematical dimension weights, and actionable remediation suggestions.
03_ml_readiness_score.ipynbCatching target correlations, future timestamps, identifier shapes, and duplicate target copies.
04_leakage_detection.ipynbComparing dataset versions (fs.diff) to detect schema drift, missingness spikes, and quality regressions.
05_dataset_diff.ipynbBuilding a production Python pre-training quality gate function to protect model training jobs.
06_end_to_end_workflow.ipynbExplore all interactive tutorials on the Examples & Tutorials Page or on GitHub.
Python SDK Quick Start
Run a dataset review using the pre-packaged titanic.csv dataset:
import featuresmith as fs# 1. Load the dataset (CSV, Parquet, Excel, pandas/Polars DataFrame)dataset = fs.load("examples/data/processed/titanic.csv")print(f"Loaded {dataset.row_count} rows across {dataset.column_count} columns.")# 2. Extract deterministic statistical profileprofile = fs.profile(dataset)print(f"Missingness: {profile.dataset_summary.missing_percentage:.2f}%")# 3. Perform automated dataset code review with 10 reviewersreview_result = fs.review(dataset, target_column="survived")print(review_result.overall_summary)# 4. Extract explainable 0–100 ML Readiness Scorecardscorecard = fs.score(review_result)if scorecard: print(f"ML Readiness Score: {scorecard.overall:.1f}/100")CLI Quick Start
Verify dataset issues inside your shell:
# Run a complete review report with scorecardfeaturesmith review examples/data/processed/titanic.csv --target survived# Run target leakage and quality rule analysisfeaturesmith analyze examples/data/processed/titanic.csv --target survived# Compare two snapshot profiles (Dataset Diff Engine)featuresmith diff examples/data/processed/titanic.csv examples/data/processed/titanic.csv --target survivedThe diff example compares the bundled titanic.csv against itself, returning an unchanged verdict. Point featuresmith diff at two different snapshots to detect schema and quality drift.
CLI Exit Codes
The CLI uses precise exit codes to facilitate pipeline integration and gating:
| Exit Code | Description |
|---|---|
| 0 | Clean — no rule violations detected at or above the threshold. |
| 1 | Findings detected — one or more rules triggered at or above threshold. |
| 2 | Invalid input — bad flags, missing arguments, or columns not in schema. |
| 3 | File load failure — file does not exist, or parser error. |
| 4 | Unexpected internal error (use --verbose for traceback). |