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
Choose the number of colors
q = 20
Compute Initial Potts Clusters as a first Random Partition (with Potts Model)
InitialPottsClusters = PCS.InitialPottsConfiguration(Train_PottsData_demo, q, Kernel='Mercer')
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='Mercer')
Pypi Project Page
https://pypi.org/project/pottscompleteshrinkage/1.0.0/
Execution Code Pipeline in Jupyter Notebook
https://github.com/kgalahassa/pottscompleteshrinkage-notebook
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pottscompleteshrinkage-1.0.14.tar.gz.
File metadata
- Download URL: pottscompleteshrinkage-1.0.14.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e83e3ef2191b704ea14cdfc668fcddaf6f068f006370015499069441f491f84d
|
|
| MD5 |
f03d2c9fa7f040964fa89bdcf946366f
|
|
| BLAKE2b-256 |
26273b1093123b90bf665371ef0711355b7a652684abc5c0e8876b006a88307e
|
File details
Details for the file pottscompleteshrinkage-1.0.14-py3.7.egg.
File metadata
- Download URL: pottscompleteshrinkage-1.0.14-py3.7.egg
- Upload date:
- Size: 9.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6cee9985133484bcd26d31fe421f146795dd1a09e0cea8113bde7b407f6f79c
|
|
| MD5 |
a9a6e26e4a2a8062bf0f2d0d9ee9602f
|
|
| BLAKE2b-256 |
9d03a51d57a6f896863b57c97e9d5b3a6e553404dd2ee420ac192496aa05c9d0
|
File details
Details for the file pottscompleteshrinkage-1.0.14-py3-none-any.whl.
File metadata
- Download URL: pottscompleteshrinkage-1.0.14-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598f6fd74590f2906687c80853c3392c089a859ce3fc5bd35c6e68048488bc3f
|
|
| MD5 |
974f91a10fa53d542235f9ff0d011f14
|
|
| BLAKE2b-256 |
4b792fdc55448f34b2981f6df6dbc152df6aef5fb0c136f72785189e3f5dcdc4
|