Giter Club home page Giter Club logo

ml-clustering-dim's Introduction

Implementing some methods from scratch for clustering and dimensionality reduction in Python and applying them to the Iris dataset.

Clustering

  • K-Means Clustering

    This is one of the simplest and most commonly used clustering methods. It involves randomly initializing "k" cluster centers, assigning each data point to the nearest cluster center, and then iteratively updating the cluster centers based on the points assigned to them until convergence.

  • Mean-Shift Clustering

    This is a density-based clustering method that involves shifting each data point towards regions of higher density by averaging the data points in a window around the point. The process is repeated until the points converge.

  • DBSCAN

    Density-Based Spatial Clustering of Applications with Noise groups points based on density. It defines clusters as areas with many nearby points, using parameters ε (epsilon) and MinPts. It identifies noise points and can find clusters of various shapes and sizes, making it robust and effective for outlier detection.

Dimensionality Reduction

  • PCA

    Principal Component Analysis is a dimensionality reduction technique that identifies the directions (principal components) along which the variance of the data is maximized. It projects the data onto these components, ordered by the amount of variance they explain. By retaining the top components, PCA helps in reducing the dimensionality of the dataset while preserving the most important information.

  • LDA

    Linear Discriminant Analysis is a supervised dimensionality reduction technique used for classification tasks. It aims to find the linear combinations of features that best separate multiple classes in the data. By maximizing the between-class variance and minimizing the within-class variance, LDA projects the data onto a lower-dimensional space where the classes are well-separated. It helps in improving classification accuracy by focusing on the discriminative information in the data.

ml-clustering-dim's People

Contributors

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