Git Product home page Git Product logo

pydpgm's Introduction

PyDPGM

PyDPGM is a Dirichlet Process Gaussian Mixture package, please download the latest version from our GitHub repository.

Please send any bugs of problems to Ke Zhai ([email protected]).

Install and Build

This package depends on many external python libraries, such as numpy, scipy and nltk.

Launch and Execute

Assume the PyDPGM package is downloaded under directory $PROJECT_SPACE/src/, i.e.,

$PROJECT_SPACE/src/PyDPGM

To prepare the example dataset,

tar zxvf point-clusters.tar.gz

To launch PyDPGM, first redirect to the directory of PyDPGM source code,

cd $PROJECT_SPACE/src/PyDPGM

and run the following command on example dataset,

python -m launch_train --input_directory=./point-clusters --output_directory=./ --training_iterations=100

The generic argument to run PyDPGM is

python -m launch_train --input_directory=$INPUT_DIRECTORY/$DATASET_NAME --output_directory=$OUTPUT_DIRECTORY --training_iterations=$NUMBER_OF_ITERATIONS

You should be able to find the output at directory $OUTPUT_DIRECTORY/$DATASET_NAME.

Under any circumstances, you may also get help information and usage hints by running the following command

python -m launch_train --help

Additional Scripts

To generate synthetic data

python generate_data_crp.py --output_directory=./ --number_of_clusters=5 --number_of_points=1000
#python generate_data_sbp.py --output_directory=./ --number_of_clusters=5 --number_of_points=1000

To plot result

python plot_clusters.py --input_directory=./point-clusters/ --output_directory=./point-clusters/

pydpgm's People

Contributors

kzhai avatar

Stargazers

 avatar

Watchers

 avatar  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.