Computational & Machine Learning Charts

Publication-ready visualizations for machine learning, deep learning, clustering, and computational research. Every chart includes complete Python code you can copy and run.

Computational papers require figures that clearly communicate model performance, training dynamics, and data structure. From confusion matrices summarizing classification accuracy to t-SNE projections revealing cluster geometry, each chart type answers a specific analytical question. The code examples below follow formatting conventions expected by NeurIPS, ICML, JMLR, and similar venues, with proper axis labels, legends, and colorblind-accessible palettes.

Chart Type
Confusion Matrix
ROC Curve
Learning Curve
Loss Curve
Feature Importance Plot
t-SNE / UMAP Scatter
Precision-Recall Curve
Calibration Plot
Residual Plot
Parallel Coordinates
Elbow Plot
Silhouette Plot

Related Resources

Frequently Asked Questions

How do I create a confusion matrix heatmap in Python?

Compute the confusion matrix with sklearn.metrics.confusion_matrix, then visualize it using seaborn.heatmap or matplotlib.imshow with annotated cell values. Normalize rows to show per-class recall rates. Use a sequential colormap (e.g., Blues or Viridis) and include both raw counts and percentages. See our confusion matrix guide for complete code.

When should I use precision-recall curves instead of ROC curves?

Use precision-recall curves when your dataset has significant class imbalance (e.g., fraud detection, rare disease diagnosis). ROC curves can appear optimistic on imbalanced data because the false positive rate is diluted by the large negative class. Precision-recall curves focus on the minority class and provide a more informative assessment of model utility in such settings.

How do I choose between t-SNE and UMAP for dimensionality reduction?

UMAP generally preserves more global structure, runs faster on large datasets, and produces more reproducible layouts than t-SNE. t-SNE excels at revealing fine-grained local cluster structure but can distort inter-cluster distances. For exploratory analysis, try both and compare. UMAP also supports supervised and semi-supervised modes, making it more versatile for embedding tasks.

What figure formats do ML conferences accept?

NeurIPS, ICML, and ICLR accept PDF submissions, so vector-format figures (PDF, SVG) embedded directly in LaTeX are standard. Use matplotlib's savefig with PDF backend for crisp output at any resolution. Ensure fonts are embedded, minimum text size is 8 pt, and figures fit within the paper's column width. Avoid bitmap formats for line plots and charts.