Potts Clustering with Complete Shrinkage
Project description
Potts Complete Shrinkage
Potts Clustering with Complete Shrinkage
Installation
Install using pip
pip install pottscompleteshrinkage
Requirements
- Python 3.6 or greater
- numpy
- pandas
Usage
Import the Potts Complete Shrinkage module
import pottsshrinkage.completeshrinkage as PCS
Compute Initial Potts Clusters as a first Random Partition (with Potts Model)
InitialPottsClusters = PCS.InitialPottsConfiguration(Train_PottsData_demo, q, Kernel='Mercel')
Choose your temperature (T) level
T = 1000
Set the bandwidth of the model
sigma = 1
Set the Number of Random_Partitions you want to simulate
Number_of_Random_Partitions = 3
Set your initial (random) Potts partition as computed above
Initial_Partition = InitialPottsClusters
Set the Minimum Size desired for each partition generated
MinClusterSize = 5
Run your Potts Complete Shrinkage Model to simulate the Randomly Shrunk Potts Partitions. Partitions_Sets is a dictionary that can be saved with pickle package.
Partitions_Sets,Spin_Configuration_Sets = PCS.Potts_Random_Partition (Train_PottsData_demo, T, sigma, Number_of_Random_Partitions, MinClusterSize, Initial_Partition, Kernel='Mercel')
Pypi Project Page
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 Distributions
Hashes for pottscompleteshrinkage-1.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2543f3759281608204932505089a209635ba47bfb5bac4085c5217d36ca606e |
|
MD5 | 1e038f21825c1459934be05c0fe37063 |
|
BLAKE2b-256 | 0f16db97af44531f7427e54ebb4b71374388e486f66d228e36c53d1cb247c4a9 |
Hashes for pottscompleteshrinkage-1.0.11-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ae7382a516b0913415acdce08d67764a43d97491ec7c260dd77087cf9cb437 |
|
MD5 | 0518635ec5b1655b6c850c50e70429da |
|
BLAKE2b-256 | b2fae371a6edcaa7d9c688301e3917536e8043581ed04f4128d8c1bf3747c41d |
Hashes for pottscompleteshrinkage-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19839ae4bc17b8751f21e72df8db1c66b7476a11ca8cbd4eb06dff8c32ead3e8 |
|
MD5 | c685ee9b8b9cd6443beb0cf182cd0180 |
|
BLAKE2b-256 | 791018d307349b3b03e6c17733eabcc2af833139f70e8f94e37dd906aba7e40b |