FlawX turns a saved Keras or scikit-learn model into an interactive visual explorer: architecture, health diagnostics and a neuron level galaxy view. Runs in your browser. Your model never leaves your machine.
Every FlawX file ships all three modes. Switch with the tabs
or deep link with #arch / #xray.
Neurons are heat mapped, weights are strings. Hover to isolate a neuron's wiring, click it for bias, inputs and dead or alive status.
Try it →Finds dead units, overshooting biases, saturation and oversized layers. Shows which input features your model actually uses.
Try it →Decision trees and forests render as interactive trees. Click any node for its split rule. Linear models draw as networks with named coefficients.
Try a tree → · a logistic regression →Point the script at a saved model. It writes one HTML file with all three views inside. Open it anywhere, share it with anyone.
# works with .pkl, .keras and .h5
python flawx.py model.pkl --data X_sample.npy --features names.txt
# or from a notebook
from flawx import flawx
flawx(model, x=X_train, feature_names=feature_cols)
No upload, no analytics, no cookies. The pages cannot contact any other server (browser enforced, check DevTools). The CLI runs on your machine and its output works offline.
numpy plus keras
(any backend) for neural nets, or scikit-learn for trees and
linear models. Python 3.9 or newer.Three small files. Put them in one folder and run.
MIT-style: use it, break it, improve itpython flawx.py your_model.pkl \
--data X_sample.npy
# writes your_model_flawx.html, open it in any browser