CLI Reference¶
Complete reference for all Pilz command-line commands.
Commands Overview¶
flowchart TD
A[pilz] --> B[train]
A --> C[eval]
A --> D[infer]
A --> E[create-dc]
B --> B1[Train models]
C --> C1[Evaluate + metrics]
D --> D1[Predictions only]
E --> E1[Generate DataCard]
style A fill:#e0f0ff
style B fill:#ccffcc
style C fill:#ffff99
style D fill:#ffff99
style E fill:#ccffcc
train¶
Train Pilz models.
Options¶
| Option | Description |
|---|---|
--datacard |
Path to DataCard YAML file |
--trainsettings |
Path to TrainSettings YAML file |
Example¶
eval¶
Evaluate trained models and generate ROC curves.
Options¶
| Option | Description |
|---|---|
--datacard |
Path to DataCard YAML file |
--evalsettings |
Path to EvalSettings YAML file |
Example¶
Output Files¶
{target}_roc.html- ROC curve per classall_roc.html- Combined ROC curvesmulti_class_result.html- Per-class accuracy{out_file}- Prediction scores (CSV/Parquet)
infer¶
Run inference only (no metrics).
Options¶
| Option | Description |
|---|---|
--datacard |
Path to DataCard YAML file |
--evalsettings |
Path to EvalSettings YAML file |
Example¶
Use Cases¶
- Fast prediction on new data
- Batch scoring in production
- When you only need scores, not metrics
create-dc¶
Generate a DataCard from a dataset.
Options¶
| Option | Description |
|---|---|
--src |
Path to CSV or Parquet file |
--out |
Output DataCard YAML file (optional, will prompt) |
Example¶
Interactive Prompts¶
- Select target column
- For each feature, choose type (categorial/numerical)
- Confirm missing value handling
Quick Reference¶
| Command | Purpose |
|---|---|
pilz train --datacard X --trainsettings Y |
Train models |
pilz eval --datacard X --evalsettings Y |
Evaluate with metrics |
pilz infer --datacard X --evalsettings Y |
Fast predictions |
pilz create-dc --src X --out Y |
Generate DataCard |