Giter Site home page Giter Site logo

expectitation-maximation-unigram-language-model's Introduction

EM Clustering of News Articles

Project Overview

This project demonstrates the application of the Expectation-Maximization (EM) algorithm for the unsupervised clustering of news articles into thematic groups. The goal is to categorize large sets of news articles based on content, facilitating an understanding of the underlying themes without prior labeling.

Introduction

Utilizing the EM algorithm, a probabilistic approach for maximum likelihood estimation in the presence of latent variables, this project categorizes news articles into thematically similar clusters. This approach enables the exploration and discovery of natural groupings within the data, shedding light on the diverse themes present in news content.

Implementation Details

Extraction of Documents

  • Preprocessing: Documents are preprocessed using regex for format matching, CSR matrix for sparse representation, and tokenization for word encoding.

EM Algorithm Implementation

  • Efficiency: The implementation leverages NumPy for vectorization, achieving a runtime of approximately 5 seconds.
  • Analysis: Focuses on applying the EM algorithm to the preprocessed data to identify thematic clusters.

Optimization of Hyperparameters

  • Objective: Achieving a target accuracy score by optimizing parameters such as lambda and k values.

Requirements

  • Python 3.x
  • Libraries: NumPy, Pandas, Scikit-learn, Matplotlib

Running the Analysis

To replicate the analysis:

  1. Install dependencies: pip install numpy pandas scikit-learn matplotlib.
  2. Execute the Jupyter Notebook (Applied_probability_models_for_CS_Exercise_3.ipynb) in a Jupyter environment.

expectitation-maximation-unigram-language-model's People

Contributors

etelis avatar

Watchers

 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.