Giter VIP home page Giter VIP logo

clustering's Introduction

Clustering

手写K均值K_means和模糊C均值FCM算法对Iris鸢尾花数据集聚类以及图像聚类分割

数据集:Iris

Requirement

pandas
numpy
cv2
matplotlib

Content

算法流程图

左边为K均值K_means算法流程图,右边为模糊C均值FCM算法流程图

结果展示

K_mean算法在Iris数据集聚类和图片聚类分割结果

鸢尾花数据集有四维特征,这里只展示前三维。

原图片如下。
聚类分割结果如下,簇数分别为4、6、8。

FCM算法在Iris数据集聚类结果

鸢尾花数据集有四维特征,这里只展示前三维。同时,由于FCM算法得到的是隶属度矩阵,为了展示,取每个样本隶属度最大的作为其聚类结果。

clustering's People

Contributors

luxlios avatar

Stargazers

 avatar  avatar  avatar  avatar everr avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar wangye avatar  avatar  avatar  avatar  avatar  avatar  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.