Coder Social home page Coder Social logo

lawrenceglewis7 / expectationmaximization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fazanham/expectationmaximization

0.0 1.0 0.0 166 KB

A class for unsupervised classification using Expectation Maximization

License: MIT License

C++ 100.00%

expectationmaximization's Introduction

ExpectationMaximization

A software utility for clustering using Expectation Maximization Estimation

Installation

The project requires a few open-source libraries:
OpenCV (v3.1) (OpenCV is used for its convinient matrix structure. The built-in EM function in openCV is not used here.)
Eigen (v3.3.4)

Setup

You can find a detailed tutorial on setting up OpenCV within your Visual Studio environment here: https://www.deciphertechnic.com/install-opencv-with-visual-studio/

Project Properties

Inside Properties of your project,

  1. Go to C/C++ > General. Copy the path to include folder of opencv and paste it inside Additional Include Directories. The path will look similar to C:\opencv\build\include. Then, click Apply.

  2. Go to linker > General. Copy the path to folder containing opencv lib files and paste it inside Additional Library Directories. The path will look similar to C:\opencv\build\x64\vc14\lib. Then, click Apply.

  3. Go to linker > Input > Additional Dependencies. Add the following lib file: opencv_world310d.lib

Usage

To run the program, you can use the EMClassification.cpp file. The program finds initial clusters using k-means and then computes the first approximation of the gaussian parameters. Then the program iteratively computes the E-step and the M-step to find better approximations for the clusters.

Example

original initial clusters classified em

License

Free-to-use (MIT), please use at your own risk

expectationmaximization's People

Contributors

fazanham avatar

Watchers

James Cloos 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.