Introduction - CLI¶
Ever feel like your standard charts are missing the full story?
Welcome to k-diagram—a powerful suite of command-line tools
designed to give you a fresh, insightful perspective on your models
and data. We leverage the power of polar coordinates to turn
complex diagnostics into beautiful, intuitive visualizations. Think of
it as a new set of lenses for spotting patterns in performance,
uncertainty, and feature relationships that you might otherwise miss.
This page is your starting point. We’ll cover the core concepts that apply to all commands and then give you a guided tour to help you find the perfect plot for your task.
Tip
A Note on Command Naming
Throughout this documentation, you will see the main command written
as k-diagram (with a hyphen). However, a convenient alias
kdiagram (without a hyphen) is also configured.
Feel free to use whichever you prefer—they are completely interchangeable! For example, the following two commands are identical:
k-diagram plot-time-series data.csv --savefig plot.png
kdiagram plot-time-series data.csv --savefig plot.png
Find the Right Tool: A Tour of the Commands¶
The commands are organized into thematic groups based on the questions they help you answer. Many of these visualizations are rooted in specific statistical concepts like forecast verification, calibration, and error analysis. For a deeper dive into the theory behind the plots, please refer to our detailed User Guide.
Where would you like to begin?
General & Contextual Plots¶
Start here. These are your essential, first-look tools for visualizing raw time series, checking correlations, and getting a baseline understanding of your model’s errors. Effective visualization is the cornerstone of data analysis [1].
CLI Reference: Context plots
User Guide: Contextual Diagnostic Plots
Examples Gallery: Contextual Diagnostic Plots
Model Evaluation¶
Ready to see which model wins? These plots go beyond a single score, offering classic evaluation metrics like ROC/PR curves [2], confusion matrices, and the famous Taylor diagram [3] for a holistic performance summary.
CLI Reference: Evaluation Plots and Taylor Diagram
User Guide: Evaluating Classification Models and Taylor Diagrams
Examples Gallery: Model Evaluation Gallery and Taylor Diagrams
Comparison & Calibration¶
How trustworthy are your model’s predictions? This group includes tools like reliability diagrams to check if your forecast probabilities are well-calibrated, alongside radar charts for direct, multi-metric model comparisons.
CLI Reference: Comparison & Calibration
User Guide: Model Comparison Visualization
Examples Gallery: Model Comparison Gallery
Probabilistic Forecast Diagnostics¶
When a single number isn’t enough. A great probabilistic forecast is both reliable (calibrated) and precise (sharp) [4]. These advanced tools let you check if your model’s uncertainty estimates are actually trustworthy using methods like PIT histograms and CRPS comparisons [5].
CLI Reference: Probabilistic Diagnostics
User Guide: Evaluating Probabilistic Forecasts
Examples Gallery: Probabilistic Diagnostics Gallery
Uncertainty Analysis¶
How does your model’s uncertainty behave? Does it drift over time? Are you capturing the outcomes you expect? These commands are dedicated to diagnosing the quality and characteristics of your prediction intervals, a key feature of modern forecasting systems [6][7].
CLI Reference: Uncertainty & Diagnostics
User Guide: Visualizing Forecast Uncertainty
Examples Gallery: Uncertainty Visualizations
Relationship & Error Analysis¶
Dive deep into the mistakes. A truly “good” forecast requires a thorough understanding of its errors [8]. These plots help you uncover hidden biases and systematic patterns by exploring the relationships between your model’s errors, its predictions, and the true values.
CLI Reference: Relationship Commands and Error Diagnostics
User Guide: Visualizing Relationships and Visualizing Forecast Errors
Examples Gallery: Relationship Visualization and Error Visualizations
Feature-Based Visualization¶
Look beyond predictions to the features themselves. Organizing your data effectively is crucial [9]. These commands leverage that structure to help you understand which features are most important with “fingerprint” charts and how different features interact to influence the outcome.
CLI Reference: Feature-Based Plots
User Guide: Feature Importance Visualization
Examples Gallery: Feature-Based Visualization Gallery
Ready to Dive In?¶
You now have a map of the entire k-diagram CLI. The best way to
learn is to try one out! Pick a section that matches your current task
and explore the commands within.
Tip
Don’t forget, you can get a full list of options and detailed help
for any command by running it with the -h or --help flag.
kdiagram plot-time-series --help
References