Skip to content

Instantly share code, notes, and snippets.

View takumakumakun's full-sized avatar

Takuma KANEKO takumakumakun

View GitHub Profile
@STARasGAMES
STARasGAMES / isodata_clustering_for_vectors.py
Last active February 22, 2024 08:48
Very messy and not 100% correct ISODATA clustering algorithm implementation on Python that works with vectors. Source: https://github.com/PyRadar/pyradar/blob/master/pyradar/classifiers/isodata.py
# Very messy and not 100% correct ISODATA clustering algorithm implementation that works with vectors.
# Source: https://github.com/PyRadar/pyradar/blob/master/pyradar/classifiers/isodata.py
# it works only for one-dimensional vectors :-(
# P.S.
# I've made it for university lab that's why you can find test values at the end of the file. (and that's why code so flipping bad XD)
# And I was shocked that there is no complete implementation of this algorithm on the internet o_O.
# Hope this helped:3
@forhappy
forhappy / py-isodata.py
Created September 23, 2011 13:42
isodata clustering algorithm(not finished yet)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import cmath
import os.path
class ISOData:
'''
@descriptions: ISOData Algorithm implementation.