Skip to content

EM algorithm for GMM - For the class of Intelligent Speech Technology at SJTU.

Notifications You must be signed in to change notification settings

kimchouard/sjtu-ist-gmm

Repository files navigation

Expectation Maximisation with Gaussian Mixture Model

Project made by Kim Chouard in the context of Intelligent Speech processing class of Shanghai Jiao Tong University.

Getting Started

Create a local environment:

virtualenv env
source env/bin/activate

Then install the dependencies:

pip install -r requirements.txt
easy_install argparse

Usage

Main script

To run the main script:

python main.py <training input file> <unlabeled input file> <labeled output file>

Optional arguments:

-h, --help            show a help message and exit
-d DIMENSION, --dimension DIMENSION
                      Number of dimensions for features
-m INITMETHOD, --initMethod INITMETHOD
                      Means selection method: `random` `kmeans` (not yet implemented).
-v, --verbose         Get it more talkative :)
-t, --tests           Used to test the algorithm. Don't import the labels from the unlabeled input file, even if labeled.

Test script

To run a batch of test, on the dev.txt for examples:

python scripts/tests.py <training input file> <testing input file> <result output file> <number of iterations>

About

EM algorithm for GMM - For the class of Intelligent Speech Technology at SJTU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages