Skip to content

Visualizes class probabilities obtained with scikit-learn supervised ML models trained on a (N, 2)-shaped array.

License

Notifications You must be signed in to change notification settings

semyonbok/multiclass-proba-contour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProbaVis

Inspired by numerous examples given in scikit-learn documentation and the helper module provided in a fantastic MOOC, the implemented module enables the visualisation of predicted class probabilities for a data set with more than two classes. For instance, the figures below illustrate a synthesised data set containing samples with four classes; the predicted probability contours are obtained with sklearn.neighbors.KNeighborsClassifier and sklearn.ensemble.RandomForestClassifier trained on the two numerical features. In addition, replot method can be passed to ipywidgets.interact function in a Jupyter IDLE, allowing to adjust the model's hyperparameters and immediately observe the changes in contour.

Training Data Set

image

K Nearest Neigbors

image

Random Forest

image

Future Work

  • Edit documentation and type hinting,
  • Allow for a contour plot customisation,
  • Implement a GUI with streamlit.

About

Visualizes class probabilities obtained with scikit-learn supervised ML models trained on a (N, 2)-shaped array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published