Skip to main content

A simple package to merge one-dimension data by unsupervised method

Project description

Unsupervised Merge

A simple Python package to cluster one-dimention series, following my working paper.

Installation

install the package using pip:

pip install usmerge

SOM-K Cluster

manmaid

The steps are over here.

  • Implement the SOM algorithm. Enter the data to be clustered into the SOM network and train. Because only moderately accurate clustering results are needed, training time can be greatly reduced. Algorithm convergence is not necessary.

  • After the training has concluded, the self-organization net- work makes each node in the output layer a nerve cell sen- sitive to a particular pattern. The inward star-like (Hu et al., 2002) weighting vector corresponding to each node becomes the center vector of each input pattern.

  • Use the inward star-like weighting vector obtained in (2) as the initial clustering center and implement the K-means clustering algorithm.

  • Obtain the SOM-K derived clusters and conduct relevant analysis.

Usage

If you want to use som-k cluster.

from usmerge import som_k_merge

result = som_k_merge(data,3,sig=0.5,lr=0.5,echo=1000)

Of course, you could ignore the parameter(sig, lr, echo), I have initialized thiese parameters, but you could change if you want.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usmerge-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

usmerge-0.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file usmerge-0.1.3.tar.gz.

File metadata

  • Download URL: usmerge-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for usmerge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8e72817e89f0dc790a226d2cd898d6221c71c93eee3b8b666c7c558b8e3114d1
MD5 7b3076d2b932140f626ef531158557dc
BLAKE2b-256 36dcaa1749a8609bc3b42bc62c75715eafe973f5df0df678195fa890f88a7628

See more details on using hashes here.

File details

Details for the file usmerge-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: usmerge-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for usmerge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8e7964e22e6e906172a54b13acf7a16207e1f1a75bcacd4c364fb04d21c0e071
MD5 3cfd0ee6d056d7be19bebcf12e0d04ee
BLAKE2b-256 b30f01d7afbdd81b3d3012d4d3d36b148a1f21166701ecb0ae953beef4eb339f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page