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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: usmerge-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 c1bca3f8e4702005351d9acf3e8b447433edcbb4cb053051f73e0d375b42c5d1
MD5 bbf1c69a591bf17d1a7ac2239ec2d48f
BLAKE2b-256 5881b81712b06a700975fdfc96653b0c82c225841087e6b483a391651aedd499

See more details on using hashes here.

File details

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

File metadata

  • Download URL: usmerge-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd898e95896477c44c397a7e278ab4836204722070e6f8c71a5a517f2498977d
MD5 2a0c278e7c2a4f36c69ea5b8e5ba766e
BLAKE2b-256 0d5f4b8cd5441705e16d8a9eb273d86982407f6dd63cc48d5f20d2088fe505d4

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