scikit-plots
Machine Learning Visualization in Python
- Open source, commercially usable - BSD license
Plotting the reducing the number of random variables to consider.
Applications: Visualization, increased efficiency. Algorithms: Plots the 2-dimensional projection of PCA, Plots PCA components’ explained variance ratios, and more...
Model Evaluation: Metrics Performance Analysis.
Applications: Spam detection, image recognition. Metrics: Feature Importances, ROC AUC Curves, Precision-Recall Curves, and more...
Model Evaluation: Decile-Based Performance Analysis.
Applications: Spam detection, image recognition. Algorithms: Generates the KS Statistic plot, Generates the Cumulative Gains plot, Generates the Cumulative Gains plot, and more...
Elegant quantitative analysis tools for clear, intuitive, and insightful data visualization and interpretation.
Applications: Selecting the bin width of histograms, Model Selection, Time Series Analysis... Algorithms: Astrostatistics Tools, Tweedie Family, and more...
The array API standard and specific compatibility functions for Numpy, CuPy and PyTorch is provided through `array-api-compat`.
Applications: Using the Array API standard to accelerate ML and DL model visualization. Algorithms: and more...
Visualize Keras (either standalone or included in tensorflow) neural network architectures.
Applications: ANN, CNN, NLP Tasks... Algorithms: Graphical Visualization plot, Layered Visualization plot, and more...
# Example code to try:
import micropip; await micropip.install("ipywidgets")
import io
import ipywidgets as widgets
import pandas as pd
from IPython.display import display
from sklearn.datasets import (
load_breast_cancer as data_2_classes,
load_iris as data_3_classes,
load_digits as data_10_classes,
make_classification,
)
upload = widgets.FileUpload(accept=".csv", multiple=False)
display(upload)
def process_file(change=None):
if not upload.value:
return
file_info = next(iter(upload.value))
return pd.read_csv(io.BytesIO(file_info["content"]))
upload.observe(
process_file,
names="value",
)
# Load the data
X, y = data_3_classes(return_X_y=True, as_frame=True)
X
To try the examples in the browser:
Shift + Enter to eRun button in the toolbarmicropip.list() to view installed packages.# Check installed packages:
# import micropip; micropip.list()
df = process_file()
df