Code Monkey home page Code Monkey logo

pattern-recognition-adv.'s Introduction

Instructions

Please use the following command to run algorithms after moving to ML_est or Bayes_est directory.

EM Algorithm(ML estimation)

python em_gmm.py x.csv z.csv params.dat

VB Algorithm(Bayes estimation)

python vb_gmm.py x.csv z.csv params.dat

I describe contents of the outputs z.csv and params.dat here.

z.csv

This file stores the posterior probabilities of latent variables. Each row corresponds to observed data and each column corresponds to a class.

params.dat

This file stores (variational) parameters obtained through each algorithm. Here, I describe the final value of each parameter, paired with its parameter name.

Discussions

What is the appropriate number of classes K ? I ran the EM algorithm with different values of this parameter.

Result of different K's EM algorithm

As the above figure shows, the log-likelihood is maximized to almost the same value when I set the number of classes to equal to or more than 4. Therefore, K=4 is the optimal value for this dataset.

Result of clustering with K=4

In fact, it can be reasonable from the figure for clustering using EM algorithm with K=4.

pattern-recognition-adv.'s People

Contributors

suehara-tsuyoshi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.