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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

usmerge-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usmerge-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for usmerge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 68eadfe715737ef274529b31a13e58f9e7a62c92d821b2686e60c8df2a43c112
MD5 a91ede1aec812cfcd5d4562d9a9944e9
BLAKE2b-256 b2bf7b8b1e29b442e2fe2e3968f36afa4f079ee961bf0d040ed5f7faf6a541a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: usmerge-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for usmerge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16404ed08f0a781074eaf0c38252dd231bcf9a13f3f13ba219cd144a468441d6
MD5 95b39ff0c5e29b4bf5191c0b6e4297de
BLAKE2b-256 8face122030a95bba1fd356dbba551db29c03cec00603fac5a6a58b0769f4740

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