BHClustering

Bayesian Hierarchical Clustering


License
MIT
Install
pip install BHClustering==0.0.3

Documentation

BHC - Bayesian Hierarchical Clustering

💯

This is a project of implementing Beyesian Hierarchical Clustering in Python.

It can be installed using the command pip install BHClustering

Heller, Katherine A., and Zoubin Ghahramani. "Bayesian hierarchical clustering." Proceedings of the 22nd international conference on Machine learning. ACM, 2005.

ipython notebook files:

STA 663 FINAL.ipynb: Your main python notebook file all defined function, mynode class are contained in it.

Code generated pictures:

SingleLinkage.png, Simlulated data plot.png,...etc

Data sets:

Data sets from the paper:

toyexample: handwriting number 0,2,4. It has 64 variables, containing information of handwriting.

dim: (120, 64)

Data sets not in the paper:

iris: This is perhaps the best known database to be found in the pattern recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.

dim: (150, 5)

Reproduce Code

To replicate the algorithms, please clone this repository, run STA 663 FINAL.ipynb and Report.tex

Package

We have tried to wrap our defined functions thorugh pip install BHClustering in a terminal.