GithubHelp home page GithubHelp logo

pharo-ai / gaussian-mixture-model Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 57 KB

Gaussian Mixture Model (GMM) is an iterative algorithm for fitting the data with multiple normal distributions (gaussians). Can be used for classification

License: MIT License

Smalltalk 100.00%
classification gaussian-mixture-models machine-learning maximum-likelihood pharo statistical-learning statistics

gaussian-mixture-model's People

Contributors

croshiw avatar jordanmontt avatar olekscode avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

croshiw

gaussian-mixture-model's Issues

The predict: method is failing

We should have a method to predict new instances. Not only classifying the ones with which the algo was trained.

The current method labels only returns the labels for the data with the algo what fitted.

The labels method is not returning the correct labels

testLabels

	model numberOfGaussians: 2.
	model fitX: #( #( 1 2 ) #( 1 4 ) #( 1 0 ) #( 10 2 ) #( 10 4 ) #( 10 0 ) ).

	self
		assert: model labels
		equals: #( 1 1 1 0 0 0 )

This test is failing, it returns #( 1 1 1 1 1 1) instead

Separate the has converged method

We should have one method is is called hasToStopIterating that check is the algo has converged and also if the max iteration was reached. In that way we can check if the model has converged

Failing tests

AIGaussianMixtureModelTest
✗ #testLabels (56ms)
✗ #testPredictNewData (3ms)
✗ #testPredictSameFittingData (1ms)

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.