Inspect machine learning models
Project description
Model Inspector
Inspect machine learning models
from IPython.display import HTML
import sklearn.datasets
from sklearn.linear_model import LinearRegression
%matplotlib inline
%reload_ext autoreload
%autoreload 2
%load_ext lab_black
Install
pip install model_inspector
How to use
Fill me in please! Don't forget code examples:
from model_inspector.sklearn import generate_linear_model_html
diabetes = sklearn.datasets.load_diabetes()
X, y = diabetes["data"], diabetes["target"]
HTML(
generate_linear_model_html(
LinearRegression().fit(X, y), diabetes["feature_names"], "progression"
)
)
progression = 152.13
<span style='color:green'>- 10.01</span>
* <span style='color:blue'>age</span>
<span style='color:green'>- 239.82</span>
* <span style='color:blue'>sex</span>
<span style='color:green'>+ 519.84</span>
* <span style='color:blue'>bmi</span>
<span style='color:green'>+ 324.39</span>
* <span style='color:blue'>bp</span>
<span style='color:green'>- 792.18</span>
* <span style='color:blue'>s1</span>
<span style='color:green'>+ 476.75</span>
* <span style='color:blue'>s2</span>
<span style='color:green'>+ 101.04</span>
* <span style='color:blue'>s3</span>
<span style='color:green'>+ 177.06</span>
* <span style='color:blue'>s4</span>
<span style='color:green'>+ 751.28</span>
* <span style='color:blue'>s5</span>
<span style='color:green'>+ 67.63</span>
* <span style='color:blue'>s6</span>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
model_inspector-0.0.2.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for model_inspector-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637260b3d55c0c3b46dd31d94a87388c24e9211b60926f8b607d6f67e562d629 |
|
MD5 | 5f2e577dbc2035b9eb15e92e91451519 |
|
BLAKE2b-256 | 825e675af86a3ee4792d9f3ea3e7a93189d69f22ae03b3b474430d6f7a377f14 |