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
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
Built Distribution
File details
Details for the file usmerge-0.1.5.tar.gz
.
File metadata
- Download URL: usmerge-0.1.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 896ce4c21760956692c35df89e598d16c9f232f1a405ff966ad21e5b4deb25ab |
|
MD5 | f611c7a020036623504d5420bba1ea7d |
|
BLAKE2b-256 | 4a530673b4c70fb4e25c0de4359bffa14fa19c4d201214d2d38a75977fa853cc |
File details
Details for the file usmerge-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: usmerge-0.1.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d30d8c87caf7ffd414c2abf790994c02b8e3a79cd429996e0043e278ccde0cc |
|
MD5 | 501c09297008ebee34b0ac79e54372da |
|
BLAKE2b-256 | 925ef4ec2bc1ea573572a020aab801b81e29587149f2cd706aa6e5844295cc20 |