Pymix software

Overview

The Python Mixture Package (PyMix) is a freely available Python library implementing algorithms and data structures for a wide variety of data mining applications with basic and extended mixture models. Features

Installation

Not on pypi, so get the tar ball from this page http://www.pymix.org/pymix/index.php and then:

python setup.py build
python setup.py install --prefix=/some/where

Be aware that you will need Python 2.X version.

The package is pretty old and relies on distutils, which is deprecated I believe. Just edit the setup.py file and replace the first statement with:

from setuptools import setup, Extension

Usage

Please look at the official web page above.

Although it looks promising, I did not succeed to run some of the code from their documentation.

import mixture
n11 = mixture.NormalDistribution(0.0,0.5)
n12 = mixture.NormalDistribution(2.0,0.5)
n13 = mixture.NormalDistribution(-3.0,0.5)
comp1 = mixture.ProductDistribution([n11,n12,n13])

comp1.sampleDataSet(500)

links

social