pax_global_header 0000666 0000000 0000000 00000000064 13757534235 0014530 g ustar 00root root 0000000 0000000 52 comment=5b80a676a2918dbf4b8efc600520332be058aaec
pyclustering-0.10.1.2/ 0000775 0000000 0000000 00000000000 13757534235 0014477 5 ustar 00root root 0000000 0000000 pyclustering-0.10.1.2/.codedocs 0000664 0000000 0000000 00000000051 13757534235 0016257 0 ustar 00root root 0000000 0000000 DOXYFILE = docs/doxygen_conf_pyclustering pyclustering-0.10.1.2/.github/ 0000775 0000000 0000000 00000000000 13757534235 0016037 5 ustar 00root root 0000000 0000000 pyclustering-0.10.1.2/.github/workflows/ 0000775 0000000 0000000 00000000000 13757534235 0020074 5 ustar 00root root 0000000 0000000 pyclustering-0.10.1.2/.github/workflows/build-pyclustering.yml 0000775 0000000 0000000 00000000660 13757534235 0024451 0 ustar 00root root 0000000 0000000 name: Build and Test PyClustering Library
on: [push, pull_request]
jobs:
test-pypi:
name: Build and Test PyClustering Library
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Set rights to run CI script
run: chmod u+x ci/github-ci.sh
- name: Run a multi-line script
run: ./ci/github-ci.sh TEST_CMAKE_PYCLUSTERING_BUILD
pyclustering-0.10.1.2/.github/workflows/test-pypi-installer.yml 0000664 0000000 0000000 00000000561 13757534235 0024552 0 ustar 00root root 0000000 0000000 name: Test PyPi Installer
on: [workflow_dispatch]
jobs:
test-pypi:
name: Test PyPi Installer
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Set rights to run CI script
run: chmod u+x ci/github-ci.sh
- name: Run a multi-line script
run: ./ci/github-ci.sh PYPI_INSTALLER
pyclustering-0.10.1.2/.github/workflows/test-testpypi-installer.yml 0000775 0000000 0000000 00000000575 13757534235 0025462 0 ustar 00root root 0000000 0000000 name: Test TestPyPi Installer
on: [workflow_dispatch]
jobs:
test-pypi:
name: Test TestPyPi Installer
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Set rights to run CI script
run: chmod u+x ci/github-ci.sh
- name: Run a multi-line script
run: ./ci/github-ci.sh TESTPYPI_INSTALLER
pyclustering-0.10.1.2/.gitignore 0000664 0000000 0000000 00000004103 13757534235 0016465 0 ustar 00root root 0000000 0000000 # C++ related files
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
# python related files
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
pyclustering-0.10.1.2/.travis.yml 0000775 0000000 0000000 00000005365 13757534235 0016624 0 ustar 00root root 0000000 0000000 dist: bionic
language: generic
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++
- gcc
- python3
install:
- chmod u+x ci/travis-ci.sh
env:
global:
- secure: "wfln46zny1pbK12ZkicS/t/Fv/xDUiuwYF52uKWwoNJTDaTZ2nJlw7nr6kmSc/MoGBNvdsse2oSRqvWakOvsY+m3urNCqkzsaLILiumGsAy8zZOfEHrAXQJRmyvxdk+EQB3NJwVU41TYOAlmIKV85Dja1cnoDTfUt0gPFdgUCslZPvNFZT7jgiKnycjaveJjAdClENL0EHesqLh46Nml2UFoZRjRnMooqfxKNxdlStkzozHG9mrf7+sJSDWD0iByhaEK1RiIv7AJ7DS4gGNekoUET07EdvE9kg9Qq8O9T+9kOefYQf+1erg94cSbCV6ht2OmzlUDAlsZ7Gco4/PtgqNlWIShHlEuHsjfqz5dmyAHZsX+ICsaNTGqWnUVci/Eq09U80q2SSes2RbYvtmR9Be4X8FQ8effDrrTU9t4tpHB8/qnZj9nTjIZMH6yyprKSz+hDnNjuvYAx0LyBES/mGOKZx1LXhdZViknokwvquDtExL3dIXJDpnlr0z/nCmTdZMr8A4H09YvWnYVus2sWXbA8xO/yAenA719MTDcd4DiPzgZNtRNbWmW6M1M9UapVP8a/bSB5gMmfsLZtz34jTHO0TOKmPuANmepydurwniSh3S/0SoR8AR0/7M3RbDiODcttH9TY868UVPKj/oAe36VOEZuIYeIFU0Sv5z/Hz8="
- secure: "MlG1NaREINYp2vPAyOZNpN3KsbczdJwAdpzHmHmPNfxG14eEZSbEeLmVNfZm9rfOE12IKUsfQn0tLEfpQJA5AAuDr5pG+0HuWC9Kx4VZUQID+H5V9t5C3KxfPl4ESfEnsKbXWOAqnyhL+G7KqUhHLt7KCxk3/UCC//whum9SjrpjBQqx19fb48k8ylqN5Etwk3VtHPlKEHiD3FErfsLXp/F87ZDTGenl/GYFFFajHZT9SXWxOavoaeJRsP+f3vbKC6Sd/tsKyuJ9i9bQV91EOEf1QhInfNBCVoFZpGt1nAQglcnbpj7hvsWeI1ajm/GNUYIddDhwPWaibgBnu3Kw2AiKxHZKHsFu3uQ0aN8TjPGvFH9xrcCkwP/x66KIR01VQjeVvp8MPtttZm4PZChWnD8ydBooYCVTh78rIlm4LCOpKXVWSKBYFBRhecS1bxwQFtlHIiQzuJbFMVLJNMkknNeikIdMlHOSsioOU63bjH/maL0vtfIhuqCAAe1MA/KI/C9+mqTZUqDhOwSs91zkhwxyW+FZCRDlKr8LVREJnP0Tecn45Jr2yXGPTOWGPf912J5GEb2ttTy3Q/HYKyBIcfDv7NAijNQjjVuwxYpH9evQceoTaR/hmpxMYp5NiTKGSZjB1lNdMXYAzpIx+j3QGB1PHplOzYv5spTrTMncNuA="
jobs:
include:
- if: type = push OR type = pull_request
name: "Build C/C++ part (Linux)."
env: JOB_ID=BUILD_CCORE
- if: type = push OR type = pull_request
name: "Run C/C++ static code analyser."
env: JOB_ID=ANALYSE_CCORE
- if: type = push OR type = pull_request
name: "Run unit-tests for C/C++ part."
env: JOB_ID=UT_CCORE
- if: type = push OR type = pull_request
name: "Run memory leak analyser (valgrind) for C/C++ part."
env: JOB_ID=VALGRIND_CCORE
- if: type = push OR type = pull_request
name: "PyClustering unit and integration testing."
env: JOB_ID=TEST_PYCLUSTERING
- if: type = push OR type = pull_request
name: "Build C/C++ part (MacOS) and intergration testing."
os: osx
env: JOB_ID=BUILD_TEST_CCORE_MACOS
- if: type = push OR type = pull_request
name: "Build documentation."
dist: trusty
env: JOB_ID=DOCUMENTATION
- if: type = api OR env(JOB_ID) = PYPI_INSTALL
name: "Run PyPi installer and run tests."
- if: type = api OR env(JOB_ID) = TESTPYPI_INSTALL
name: "Run TestPyPi install and run tests."
script: ./ci/travis-ci.sh $JOB_ID
pyclustering-0.10.1.2/CHANGES 0000775 0000000 0000000 00000133346 13757534235 0015507 0 ustar 00root root 0000000 0000000 ------------------------------------------------------------------------
CHANGE NOTES FOR 0.10.1.2 (STARTED Nov 25, 2020), (RELEASED: Nov 25, 2020)
------------------------------------------------------------------------
CORRECTED MAJOR BUGS:
- Corrected bug with empty clusters for K-Medoids (C++ `pyclustering::clst::kmeadois`).
See: https://github.com/annoviko/pyclustering/issues/659
------------------------------------------------------------------------
CHANGE NOTES FOR 0.10.1.1 (STARTED Nov 24, 2020), (RELEASED: Nov 24, 2020)
------------------------------------------------------------------------
CORRECTED MAJOR BUGS:
- Corrected bug with incorrect cluster allocation for K-Medoids (C++ `pyclustering::clst::kmeadois`).
See: https://github.com/annoviko/pyclustering/issues/659
------------------------------------------------------------------------
CHANGE NOTES FOR 0.10.1 (STARTED Aug 17, 2020), (RELEASED: Nov 19, 2020)
------------------------------------------------------------------------
GENERAL CHANGES:
- The library is distributed under `BSD-3-Clause` library.
See: https://github.com/annoviko/pyclustering/issues/517
- C++ pyclustering can be built using CMake.
See: https://github.com/annoviko/pyclustering/issues/603
- Supported dumping and loading for DBSCAN algorithm via `pickle` (Python: `pyclustering.cluster.dbscan`).
See: https://github.com/annoviko/pyclustering/issues/650
- Package installer resolves all required dependencies automatically.
See: https://github.com/annoviko/pyclustering/issues/647
- Introduced human-readable error for genetic clustering algorithm in case of non-normalized data (Python: `pyclustering.cluster.ga`).
See: https://github.com/annoviko/pyclustering/issues/597
- Optimized windows implementation `parallel_for` and `parallel_for_each` by using `pyclustering::parallel` instead of `PPL` that affects all algorithms which use these functions (C++: `pyclustering::parallel`).
See: https://github.com/annoviko/pyclustering/issues/642
- Optimized `parallel_for` algorithm for short cycles that affects all algorithms which use `parallel_for` (C++: `pyclustering::parallel`).
See: https://github.com/annoviko/pyclustering/issues/642
- Introduced `kstep` parameter for `elbow` algorithm to use custom K search steps (Python: `pyclustering.cluster.elbow`, C++: `pyclustering::cluster::elbow`).
See: https://github.com/annoviko/pyclustering/issues/489
- Introduced `p_step` parameter for `parallel_for` function (C++: `pyclustering::parallel`).
See: https://github.com/annoviko/pyclustering/issues/640
- Optimized python implementation of K-Medoids algorithm (Python: `pyclustering.cluster.kmedoids`).
See: https://github.com/annoviko/pyclustering/issues/526
- C++ pyclustering CLIQUE interface returns human-readable errors (Python: `pyclustering.cluster.clique`).
See: https://github.com/annoviko/pyclustering/issues/635
See: https://github.com/annoviko/pyclustering/issues/634
- Introduced `metric` parameter for X-Means algorithm to use custom metric for clustering (Python: `pyclustering.cluster.xmeans`; C++ `pyclustering::clst::xmeans`).
See: https://github.com/annoviko/pyclustering/issues/619
- Introduced `alpha` and `beta` probabilistic bounds for MNDL splitting criteria for X-Means algorithm (Python: `pyclustering.cluster.xmeans`; C++: `pyclustering::clst::xmeans`).
See: https://github.com/annoviko/pyclustering/issues/624
CORRECTED MAJOR BUGS:
- Corrected bug with a command `python3 -m pyclustering.tests` that was using the current folder to find tests to run (Python: `pyclustering`).
See: https://github.com/annoviko/pyclustering/issues/648
- Corrected bug with Elbow algorithm where `kmax` is not used to calculate `K` (Python: `pyclustering.cluster.elbow`; C++: `pyclustering::clst::elbow`).
See: https://github.com/annoviko/pyclustering/issues/639
- Corrected implementation of K-Medians (PAM) algorithm that is aligned with original algorithm (Python: `pyclustering.cluster.kmedoids`; C++: `pyclustering::clst::kmedoids`).
See: https://github.com/annoviko/pyclustering/issues/503
- Corrected literature references that were for K-Medians (PAM) implementation (Python: `pyclustering.cluster.kmedoids`).
See: https://github.com/annoviko/pyclustering/pull/572
- Corrected bug when K-Medoids updates input parameter `initial_medoids` that were provided to the algorithm (Python: `pyclustering.cluster.kmedoids`).
See: https://github.com/annoviko/pyclustering/issues/630
- Corrected bug with Euclidean distance when numpy is used (Python: `pyclustering.utils.metric`).
See: https://github.com/annoviko/pyclustering/issues/625
- Corrected bug with Minkowski distance when numpy is used (Python: `pyclustering.utils.metric`).
See: https://github.com/annoviko/pyclustering/issues/626
- Corrected bug with Gower distance when numpy calculation is used and data shape is bigger than 1 (Python: `pyclustering.utils.metric`).
See: https://github.com/annoviko/pyclustering/issues/627
- Corrected MNDL splitting criteria for X-Means algorithm (Python: `pyclustering.cluster.xmeans`; C++: `pyclustering::clst::xmeans`).
See: https://github.com/annoviko/pyclustering/issues/623
------------------------------------------------------------------------
CHANGE NOTES FOR 0.10.0.1 (STARTED Aug 17, 2020), (RELEASED: Aug 17, 2020)
------------------------------------------------------------------------
GENERAL CHANGES:
- Metadata of the library is updated.
------------------------------------------------------------------------
CHANGE NOTES FOR 0.10.0 (STARTED Jan 24, 2020), (RELEASED: Aug 17, 2020)
------------------------------------------------------------------------
GENERAL CHANGES:
- Supported command `test` for `setup.py` script (Python: `pyclustering`).
See: https://github.com/annoviko/pyclustering/issues/607
- Introduced parameter `random_seed` for algorithms/models to control the seed of the random functionality: `kmeans++`, `random_center_initializer`, `ga`, `gmeans`, `xmeans`, `som`, `somsc`, `elbow`, `silhouette_ksearch` (Python: `pyclustering.cluster`; C++: `pyclustering.clst`).
See: https://github.com/annoviko/pyclustering/issues/578
- Introduced parameter `k_max` to G-Means algorithm to use it as an optional stop condition for the algorithm (Python: `pyclustering.cluster.gmeans`; C++: `pyclustering::clst::gmeans`).
See: https://github.com/annoviko/pyclustering/issues/602
- Implemented method `save()` for `cluster_visualizer` and `cluster_visualizer_multidim` to save visualization to file (Python: `pyclustering.cluster`).
See: https://github.com/annoviko/pyclustering/issues/601
- Optimization of CURE algorithm using balanced KD-tree (Python: `pyclustering.cluster.cure`; C++: `pyclustering::clst::cure`).
See: https://github.com/annoviko/pyclustering/issues/589
- Optimization of OPTICS algorithm using balanced KD-tree (Python: `pyclustering.cluster.optics`; C++: `pyclustering::clst::optics`).
See: https://github.com/annoviko/pyclustering/issues/588
- Optimization of DBSCAN algorithm using balanced KD-tree (Python: `pyclustering.cluster.dbscan`; C++: `pyclustering::clst::dbscan`).
See: https://github.com/annoviko/pyclustering/issues/587
- Implemented new optimized balanced KD-tree `kdtree_balanced` (Python: `pyclustering.cluster.kdtree`; C++: `pyclustering::container::kdtree_balanced`).
See: https://github.com/annoviko/pyclustering/issues/379
- Implemented KD-tree graphical visualizer `kdtree_visualizer` for KD-trees with 2-dimensional data (Python: `pyclustering.container.kdtree`).
See: https://github.com/annoviko/pyclustering/issues/586
- Updated interface of each clustering algorithm in C/C++ pyclustering `cluster_data` is substituted by concrete classes (C++ `pyclustering::clst`).
See: https://github.com/annoviko/pyclustering/issues/577
CORRECTED MAJOR BUGS:
- Bug with wrong data type for `scores` in Silhouette K-search algorithm in case of using C++ (Python: `pyclustering.cluster.silhouette`).
See: https://github.com/annoviko/pyclustering/issues/606
- Bug with a random distribution in the random center initializer (Python: `pyclustering.cluster.center_initializer`).
See: https://github.com/annoviko/pyclustering/issues/573
- Bug with incorrect converting Index List and Object List to Labeling when clusters do not contains one or more points from an input data (Python `pyclustering.cluster.encoder`).
See: https://github.com/annoviko/pyclustering/issues/596
- Bug with an exception in case of using user-defined metric for K-Means algorithm (Python `pyclustering.cluster.kmeans`).
See: https://github.com/annoviko/pyclustering/pull/600
- Memory leakage in the interface between python and C++ pyclustering library in case of CURE algorithm usage (C++ `pyclustering`).
See: https://github.com/annoviko/pyclustering/issues/581
------------------------------------------------------------------------
CHANGE NOTES FOR 0.9.3.1 (STARTED Dev 23, 2019), (RELEASED: Dev 23, 2019)
------------------------------------------------------------------------
CORRECTED MAJOR BUGS:
- Hotfix for the CF-tree - call method with incorrect amount of arguments.
See: https://github.com/annoviko/pyclustering/issues/570
------------------------------------------------------------------------
CHANGE NOTES FOR 0.9.3 (STARTED Oct 10, 2019), (RELEASED: Dev 23, 2019)
------------------------------------------------------------------------
GENERAL CHANGES:
- Introduced `get_cf_clusters` and `get_cf_entries` methods for BIRCH algorithm to get CF-entry encoding information (pyclustering.cluster.birch).
See: https://github.com/annoviko/pyclustering/issues/569
- Introduced `predict` method for SOMSC algorithm to find closest clusters for specified points (pyclustering.cluster.somsc).
See: https://github.com/annoviko/pyclustering/issues/546
- Parallel optimization of C++ pyclustering compilation process.
See: https://github.com/annoviko/pyclustering/issues/553
- Include folder for easy integration to other C++ projects.
See: https://github.com/annoviko/pyclustering/issues/554
- Introduced new targets to build static libraries on Windows platform.
See: https://github.com/annoviko/pyclustering/issues/555
- Introduced new targets to build static libraries on Linux/MacOS platforms.
See: https://github.com/annoviko/pyclustering/issues/556
CORRECTED MAJOR BUGS:
- Bug with incorrect finding of closest CF-entry (pyclustering.container.cftree).
See: https://github.com/annoviko/pyclustering/issues/564
- Bug with incorrect BIRCH clustering due incorrect leaf analysis (pyclustering.cluster.birch).
See: https://github.com/annoviko/pyclustering/issues/563
- Bug with incorrect search procedure of farthest nodes in CF-tree (pyclustering.container.cftree).
See: https://github.com/annoviko/pyclustering/issues/551
- Bug with crash during clustering with the same points in case of BIRCH (pyclustering.cluster.birch).
See: https://github.com/annoviko/pyclustering/issues/561
------------------------------------------------------------------------
CHANGE NOTES FOR 0.9.2 (STARTED Sep 9, 2019), (RELEASED: Oct 10, 2019)
------------------------------------------------------------------------
GENERAL CHANGES:
- Introduced checking of input arguments for clustering algorithm to provide human-readable errors (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/548
- Implemented functionality to perform Anderson-Darling test for Gaussian distribution (ccore.stats).
See: https://github.com/annoviko/pyclustering/issues/550
- Implemented new clustering algorithm G-Means (pyclustering.cluster.gmeans, ccore.clst.gmeans).
See: https://github.com/annoviko/pyclustering/issues/506
- Introduced parameter `repeat` to improve parameters in X-Means algorithm (pyclustering.cluster.xmeans, ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/525
- Introduced new distance metric: Gower (pyclustering.utils.metric, ccore.utils.metric).
See: https://github.com/annoviko/pyclustering/issues/544
- Introduced sampling algorithms `reservoir_r` and `reservoir_x` (pyclustering.utils.sampling).
See: https://github.com/annoviko/pyclustering/issues/542
- Introduced parameter `data_type` to Silhouette method to use distance matrix (pyclustering.cluster.silhouette, ccore.clst.silhouette).
See: https://github.com/annoviko/pyclustering/issues/543
- Optimization of HHN (Hodgkin-Huxley Neural Network) by parallel processing (ccore.nnet.hhn).
See: https://github.com/annoviko/pyclustering/issues/541
- Introduced `get_total_wce` method for `xmeans` algorithm to find WCE (pyclustering.cluster.xmeans).
See: https://github.com/annoviko/pyclustering/issues/508
CORRECTED MAJOR BUGS:
- Bug with incorrect center initialization in K-Means++ when candidates are not farthest (pyclustering.cluster.center_initializer).
See: https://github.com/annoviko/pyclustering/issues/549
------------------------------------------------------------------------
CHANGE NOTES FOR 0.9.1 (STARTED Apr 14, 2019), (RELEASED: Sep 9, 2019)
------------------------------------------------------------------------
GENERAL CHANGES:
- Introduced 'predict' method for X-Means algorithm to find closest clusters for particular points (pyclustering.cluster.xmeans).
See: https://github.com/annoviko/pyclustering/issues/540
- Optimization of OPTICS algorithm by reducing complexity (ccore.clst.optics).
See: https://github.com/annoviko/pyclustering/issues/521
- Optimization of K-Medians algorithm by parallel processing (ccore.clst.kmedians).
See: https://github.com/annoviko/pyclustering/issues/529
- Introduced 'predict' method for K-Medoids algorithm to find closest clusters for particular points (pyclustering.cluster.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/527
- Introduced 'predict' method for K-Means algorithm to find closest clusters for particular points (pyclustering.cluster.kmeans).
See: https://github.com/annoviko/pyclustering/issues/515
- Parallel optimization of Elbow method. (ccore.clst.elbow).
See: https://github.com/annoviko/pyclustering/issues/511
------------------------------------------------------------------------
CHANGE NOTES FOR 0.9.0 (STARTED Nov 19, 2018), (RELEASED: Apr 14, 2019)
------------------------------------------------------------------------
GENERAL CHANGES:
- CCORE (pyclustering core) is supported for MacOS.
See: https://github.com/annoviko/pyclustering/issues/486
- Introduced parallel Fuzzy C-Means algorithm (pyclustering.cluster.fcm, ccore.clst.fcm).
See: https://github.com/annoviko/pyclustering/issues/386
- Introduced new 'itermax' parameter for K-Means, K-Medians, K-Medoids algorithm to control maximum amount of iterations (pyclustering.cluster, ccore.clst).
See: https://github.com/annoviko/pyclustering/issues/496
- Implemented Silhouette and Silhouette K-Search algorithm for CCORE (ccore.clst.silhouette, ccore.clst.silhouette_ksearch).
See: https://github.com/annoviko/pyclustering/issues/490
- Implemented CLIQUE algorithms (pyclustering.cluster.clique, ccore.clst.clique).
See: https://github.com/annoviko/pyclustering/issues/381
- Introduced new distance metrics: Canberra and Chi Square (pyclustering.utils.metric, ccore.utils.metric).
See: https://github.com/annoviko/pyclustering/issues/482
- Optimization of CURE algorithm (C++ implementation) by using heap (multiset) instead of list to store clusters in queue (ccore.clst.cure).
See: https://github.com/annoviko/pyclustering/issues/479
CORRECTED MAJOR BUGS:
- Bug with crossover mask generation for genetic clustering algorithm (pyclustering.cluster.ga).
See: https://github.com/annoviko/pyclustering/pull/474
- Bug with hanging of K-Medians algorithm for some cases when algorithm is initialized by wrong amount of centers (ccore.clst.kmedians).
See: https://github.com/annoviko/pyclustering/issues/498
- Bug with incorrect center initialization, when the same point can be placed to result more than once (pyclustering.cluster.center_initializer, ccore.clst.kmeans_plus_plus).
See: https://github.com/annoviko/pyclustering/issues/497
- Bug with incorrect clustering in case of CURE python implementation when clusters are allocated incorrectly (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/483
- Bug with incorrect distance calculation for kmeans++ in case of index representation for centers (pyclustering.cluster.center_initializer).
See: https://github.com/annoviko/pyclustering/issues/485
------------------------------------------------------------------------
CHANGE NOTES FOR 0.8.2 (STARTED May 28, 2018), (RELEASED: Nov 19, 2018)
------------------------------------------------------------------------
GENERAL CHANGES:
- Implemented Silhouette method and Silhouette KSearcher to find out proper amount of clusters (pyclustering.cluster.silhouette).
See: https://github.com/annoviko/pyclustering/issues/416
- Introduced new 'return_index' parameter for kmeans_plus_plus and random_center_initializer algorithms (method 'initialize') to initialize initial medoids (pyclustering.cluster.center_initializer).
See: https://github.com/annoviko/pyclustering/issues/421
- Display warning instead of throwing error if matplotlib or Pillow cannot be imported (MAC OS X problems).
See: https://github.com/annoviko/pyclustering/issues/455
- Implemented Random Center Initializer for CCORE (ccore.clst.random_center_initializer).
See: no reference.
- Implemented Elbow method to find out proper amount of clusters in dataset (pyclustering.cluster.elbow, ccore.clst.elbow).
See: https://github.com/annoviko/pyclustering/issues/416
- Introduced new method 'get_optics_objects' for OPTICS algorithm to obtain detailed information about ordering (pyclustering.cluster.optics, ccore.clst.optics).
See: https://github.com/annoviko/pyclustering/issues/464
- Added new clustering answers for SAMPLE SIMPLE data collections (pyclustering.samples).
See: https://github.com/annoviko/pyclustering/issues/459
- Implemented multidimensional cluster visualizer (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/450
- Parallel optimization of K-Medoids algorithm (ccore.clst.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/447
- Parallel optimization of K-Means and X-Means (that uses K-Means) algorithms (ccore.clst.kmeans, ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/451
- Introduced new threshold parameter 'amount of block points' to BANG algorithm to allocate outliers more precisely (pyclustering.cluster.bang).
See: https://github.com/annoviko/pyclustering/issues/446
- Optimization of conveying results from C++ to Python for K-Medians and K-Medoids (pyclustering.cluster.kmedoids, pyclustering.cluster.kmedians).
See: https://github.com/annoviko/pyclustering/issues/445
- Implemented cluster generator (pyclustering.cluster.generator).
See: https://github.com/annoviko/pyclustering/issues/444
- Implemented BANG animator to render animation of clustering process (pyclustering.cluster.bang).
See: https://github.com/annoviko/pyclustering/issues/442
- Optimization of CURE algorithm by using Euclidean Square distance (pyclustering.cluster.cure, ccore.clst.cure).
See: https://github.com/annoviko/pyclustering/issues/439
- Supported numpy.ndarray points in KD-tree (pyclustering.container.kdtree).
See: https://github.com/annoviko/pyclustering/issues/438
CORRECTED MAJOR BUGS:
- Bug with clustering failure in case of non-numpy user defined metric for K-Means algorithm (pyclustering.cluster.kmeans).
See: https://github.com/annoviko/pyclustering/issues/471
- Bug with animation of correlation matrix in case of new versions of matplotlib (pyclustering.nnet.sync).
See: no reference.
- Bug with SOM and pickle when it was not possible to store and load network using pickle (pyclustering.nnet.som).
See: https://github.com/annoviko/pyclustering/issues/456
- Bug with DBSCAN when points are marked as a noise (pyclustering.cluster.dbscan).
See: https://github.com/annoviko/pyclustering/issues/462
- Bug with randomly enabled connection weights in case of SyncNet based algorithms using CCORE interface (pyclustering.nnet.syncnet).
See: https://github.com/annoviko/pyclustering/issues/452
- Bug with calculation weighted connection for Sync based clustering algorithms in C++ implementation (ccore.nnet.syncnet).
See: no reference
- Bug with failure in case of numpy.ndarray data type in python part of CURE algorithm (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/438
- Bug with BANG algorithm with empty dimensions - when data contains column with the same values (pyclustering.cluster.bang).
See: https://github.com/annoviko/pyclustering/issues/449
------------------------------------------------------------------------
CHANGE NOTES FOR 0.8.1 (STARTED Feb 23, 2018), (RELEASED: May 28, 2018)
------------------------------------------------------------------------
GENERAL CHANGES:
- Implemented feature to use specific metric for distance calculation in K-Means algorithm (pyclustering.cluster.kmeans, ccore.clst.kmeans).
See: https://github.com/annoviko/pyclustering/issues/434
- Implemented BANG-clustering algorithm with result visualizer (pyclustering.cluster.bang).
See: https://github.com/annoviko/pyclustering/issues/424
- Implemented feature to use specific metric for distance calculation in K-Medians algorithm (pyclustering.cluster.kmedians, ccore.clst.kmedians).
See: https://github.com/annoviko/pyclustering/issues/429
- Supported new type of input data for K-Medoids - distance matrix (pyclustering.cluster.kmedoids, ccore.clst.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/418
- Implemented TTSAS algorithm (pyclustering.cluster.ttsas, ccore.clst.ttsas).
See: https://github.com/annoviko/pyclustering/issues/398
- Implemented MBSAS algorithm (pyclustering.cluster.mbsas, ccore.clst.mbsas).
See: https://github.com/annoviko/pyclustering/issues/398
- Implemented BSAS algorithm (pyclustering.cluster.bsas, ccore.clst.bsas).
See: https://github.com/annoviko/pyclustering/issues/398
- Implemented feature to use specific metric for distance calculation in K-Medoids algorithm (pyclustering.cluster.kmedoids, ccore.clst.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/417
- Implemented distance metric collection (pyclustering.utils.metric, ccore.utils.metric).
See: no reference.
- Supported new type of input data for OPTICS - distance matrix (pyclustering.cluster.optics, ccore.clst.optics).
See: https://github.com/annoviko/pyclustering/issues/412
- Supported new type of input data for DBSCAN - distance matrix (pyclustering.cluster.dbscan, ccore.clst.dbscan).
See: no reference.
- Implemented K-Means observer and visualizer to visualize and animate clustering results (pyclustering.cluster.kmeans, ccore.clst.kmeans).
See: no reference.
CORRECTED MAJOR BUGS:
- Bug with out of range in K-Medians (pyclustering.cluster.kmedians, ccore.clst.kmedians).
See: https://github.com/annoviko/pyclustering/issues/428
- Bug with fast linking in PCNN (python implementation only) that wasn't used despite the corresponding option (pyclustering.nnet.pcnn).
See: https://github.com/annoviko/pyclustering/issues/419
------------------------------------------------------------------------
CHANGE NOTES FOR 0.8.0 (STARTED Oct 23, 2017), (RELEASED: Feb 23, 2018)
------------------------------------------------------------------------
GENERAL CHANGES:
- Optimization K-Means++ algorithm using numpy (pyclustering.cluster.center_initializer).
See: no reference.
- Implemented K-Means++ initializer for CCORE (ccore.clst.kmeans_plus_plus).
See: https://github.com/annoviko/pyclustering/issues/382
- Optimization of X-Means clustering process by using KMeans++ for initial centers of split regions (pyclustering.cluster.xmeans, ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/382
- Implemented parallel Sync-family algorithms for C/C++ implementation (CCORE) only (ccore.sync).
See: https://github.com/annoviko/pyclustering/issues/170
- C/C++ implementation is used by default to increase performance.
See: https://github.com/annoviko/pyclustering/issues/393
- Ignore 'ccore' flag to use C/C++ if platform is not supported (pyclustering.core).
See: https://github.com/annoviko/pyclustering/issues/393
- Optimization of python implementation of the K-Means algorithm using numpy (pyclustering.cluster.kmeans).
See: https://github.com/annoviko/pyclustering/issues/403
- Implemented dynamic visualizer for oscillatory networks (pyclustering.nnet.dynamic_visualizer).
See: no reference.
- Implemented C/C++ Hodgkin-Huxley oscillatory network for image segmentation in CCORE to increase performance (ccore.hhn, pyclustering.nnet.hhn).
See: https://github.com/annoviko/pyclustering/issues/217
- Performance optimization for CCORE on linux platform.
See: no reference.
- 32-bit platform of CCORE is supported for Linux OS.
See: https://github.com/annoviko/pyclustering/issues/253
- 32-bit platform of CCORE is supported for Windows OS.
See: https://github.com/annoviko/pyclustering/issues/253
- Implemented method 'get_probabilities()' for obtaining belong probability in EM-algorithm (pyclustering.cluster.ema).
See: https://github.com/annoviko/pyclustering/issues/387
- Python implementation of CURE algorithm method 'get_clusters()' returns list of indexes (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/384
- Implemented parallel processing for X-Means algorithm (ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/372
- Implemented pool threads for parallel processing (ccore.parallel).
See: https://github.com/annoviko/pyclustering/issues/383
- Optimization of OPTICS algorithm using KD-tree for searching nearest neighbors (pyclustering.cluster.optics, ccore.optics).
See: https://github.com/annoviko/pyclustering/issues/370
- Optimization of DBSCAN algorithm using KD-tree for searching nearest neighbors (pyclustering.cluster.dbscan, ccore.dbscan).
See: https://github.com/annoviko/pyclustering/issues/369
CORRECTED MAJOR BUGS:
- Incorrect type of medoid's index in K-Medians algorithm in case of Python 2.x (pyclustering.cluster.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/415
- Hanging of method 'find_node' in KD-tree if it does not contain node with specified point and payload (pyclustering.container.kdtree).
See: no reference.
- Incorrect clustering by CURE algorithm in some cases when data have a lot of identical points (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/414
- Segmentation fault in CURE algorithm in some cases when data have a lot of identical points (ccore.clst.cure).
See: no reference.
- Incorrect segmentation by Python version of syncsegm - oscillatory network based on sync for image segmentation (pyclustering.nnet.syncsegm).
See: https://github.com/annoviko/pyclustering/issues/409
- Zero value of sigma under logarithm function in Python version of pyclustering X-Means algorithm (pyclustering.cluster.xmeans).
See: https://github.com/annoviko/pyclustering/issues/407
- Amplitude threshold is ignored during synchronous ensembles allocation for amplitude output dynamic 'allocate_sync_ensembles' - affect HNN, LEGION (pyclustering.utils).
See: no reference.
- Wrong indexes can be returned during synchronous ensembles allocation for amplitude output dynamic 'allocate_sync_ensembles' - affect HNN, LEGION (pyclustering.utils).
See: no reference.
- Amount of allocated clusters can be differ from amount of centers in X-Means algorithm (ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/389
- Amount of allocated clusters can be bigger than kmax in X-Means algorithm (pyclustering.cluster.xmeans, ccore.clst.xmeans).
See: https://github.com/annoviko/pyclustering/issues/388
- Corrected bug with returned nullptr in method 'kdtree_searcher::find_nearest_node()' (ccore.container.kdtree).
See: no reference.
------------------------------------------------------------------------
CHANGE NOTES FOR 0.7.2 (STARTED Oct 19, 2017), (RELEASED: Oct 23, 2017)
------------------------------------------------------------------------
GENERAL CHANGES:
- Correction for setup failure with PKG-INFO.rst.
------------------------------------------------------------------------
CHANGE NOTES FOR 0.7.1 (STARTED Oct 16, 2017), (RELEASED: Oct 19, 2017)
------------------------------------------------------------------------
GENERAL CHANGES:
- Metadata and description of the pyclustering package is updated.
------------------------------------------------------------------------
CHANGE NOTES FOR 0.7.0 (STARTED Jun 01, 2016), (RELEASED: Oct 16, 2017)
------------------------------------------------------------------------
GENERAL CHANGES (pyclustering):
- Implemented Expectation-Maximization clustering algorithm for Gaussian Mixute Model and clustering visualizer for this particular algorithm (pyclustering.cluster.ema).
See: https://github.com/annoviko/pyclustering/issues/16
- Implemented Genetic Clustering Algorithm (GCA) and clustering visualizer for this particular algorithm (pyclustering.cluster.ga).
See: https://github.com/annoviko/pyclustering/issues/360
- Implemented feature to obtain and visualize evolution of order parameter and local order parameter for Sync network and Sync-based algorithms (pyclustering.nnet.sync).
See: https://github.com/annoviko/pyclustering/issues/355
- Implemented K-Means++ method for initialization of initial centers for algorithms like K-Means or X-Means (pyclustering.cluster.center_initializer).
See: https://github.com/annoviko/pyclustering/issues/354
- Implemented fSync oscillatory network that is based on Landau-Stuart equation and Kuramoto model (pyclustering.nnet.fsync).
See: https://github.com/annoviko/pyclustering/issues/168
- Optimization of pyclustering client to core library 'CCORE' library (pyclustering.core).
See: https://github.com/annoviko/pyclustering/issues/289
See: https://github.com/annoviko/pyclustering/issues/351
- Implemented feature to show network structure of Sync family oscillatory networks in case 'ccore' usage.
See: https://github.com/annoviko/pyclustering/issues/344
- Implemented feature to colorize OPTICS ordering diagram when amount of clusters is specified.
See: no reference.
- Improved clustering results in case of usage MNDL splitting criterion for small datasets.
See: https://github.com/annoviko/pyclustering/issues/328
- Feature to display connectivity radius on cluster-ordering diagram by ordering_visualizer (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/314
- Feature to use CCORE implementation of OPTICS algorithm to take advance in performance (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/120
- Implemented feature to shows animation of pattern recognition process that has been performed by the SyncPR oscillatory network. Method 'animate_pattern_recognition()' of class 'syncpr_visualizer' (pyclustering.nnet.syncpr).
See: https://www.youtube.com/watch?v=Ro7KbApL4MQ
See: https://www.youtube.com/watch?v=iIusOsGehoY
- Implemented feature to obtain nodes of specified level of CF-tree. Method 'get_level_nodes()' of class 'cftree' (pyclustering.container.cftree).
See: no reference.
- Implemented feature to allocate/display/animate phase matrix: 'allocate_phase_matrix()', 'show_phase_matrix()', 'animate_phase_matrix()' (pyclustering.nnet.sync).
See: no reference.
- Implemented chaotic neural network where clustering phenomenon can be observed: 'cnn_network', 'cnn_dynamic', 'cnn_visualizer' (pyclustering.nnet.cnn).
See: https://github.com/annoviko/pyclustering/issues/301
- Implemented feature to analyse ordering diagram using amout of clusters that should be allocated as an input parameter to calculate correct connvectity radius for clustering (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/307
- Implemented feature to omit usage of initial centers - X-Means starts processing from random initial center (pyclustering.cluster.xmeans).
See: no reference.
- Implemented feature for cluster visualizer: cluster attributes (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/295
- Implemented SOM-SC algorithm (SOM Simple Clustering) (pyclustering.cluster.somsc).
See: https://github.com/annoviko/pyclustering/issues/321
GENERAL CHANGES (ccore):
- Implemented feature to obtain and visualize evolution of order parameter and local order parameter for Sync network and Sync-based algorithms (ccore.nnet.sync).
See: https://github.com/annoviko/pyclustering/issues/355
- Cygwin x64 platform is supported (ccore).
See: https://github.com/annoviko/pyclustering/issues/353
- Optimization of CCORE library interface (ccore.interface).
See: https://github.com/annoviko/pyclustering/issues/289
- Implemented MNDL splitting crinterion for X-Means algorithm (ccore.cluster_analysis.xmeans).
See: https://github.com/annoviko/pyclustering/issues/159
- Implemented OPTICS algorithm and interface for client that results all clustering results (ccore.cluster_analysis.optics).
See: https://github.com/annoviko/pyclustering/issues/120
- Implmeneted packing of connectivity matrix of Sync family oscillatory networks (ccore.interface.sync_interface).
See: https://github.com/annoviko/pyclustering/issues/344
CORRECTED MAJOR BUGS:
- Bug with segmentation fault during 'free()' on some linux operating systems.
See: no reference.
- Bug with sending the first element to cluster in OPTICS even if it is noise element.
See: no reference.
- Bug with amount of allocated clusters by K-Medoids algorithm in Python implementation and CCORE (pyclustering.cluster.kmedoids, ccore.cluster.medoids).
See: https://github.com/annoviko/pyclustering/issues/366
See: https://github.com/annoviko/pyclustering/issues/367
- Bug with getting neighbors and getting information about connections in Sync-based network and algorithms in case of usage CCORE.
See: no reference.
- Bug with calculation of number of oscillations for output dynamics.
See: no reference.
- Memory leakage in LEGION in case of CCORE usage - API function 'legion_destroy()' was not called (pyclustering.nnet.legion).
See: no reference.
- Bug with crash of antmeans algorithm for python version 3.6.0:414df79263a11, Dec 23 2016 [MSC v.1900 64 bit (AMD64)] (pyclustering.cluster.antmeans).
See: https://github.com/annoviko/pyclustering/issues/350
- Memory leakage in destructor of 'pyclustering_package' - exchange mechanism between ccore and pyclustering (ccore.interface.pyclustering_package').
See: https://github.com/annoviko/pyclustering/issues/347
- Bug with loosing of the initial state of hSync output dynamic in case of CCORE usage (ccore.cluster.hsyncnet).
See: https://github.com/annoviko/pyclustering/issues/346
- Bug with hSync output dynamic that was displayed with discontinous parts as a set of rectangles (pyclustering.cluster.hsyncnet).
See: https://github.com/annoviko/pyclustering/issues/345
- Bug with visualization of CNN network in case 3D data (pyclustering.nnet.cnn).
See: https://github.com/annoviko/pyclustering/issues/338
- Bug with CCORE wrapper crashing after returning value from CCORE (pyclustering.core).
See: https://github.com/annoviko/pyclustering/issues/337
- Bug with calculation BIC splitting criterion for X-Means algorithm (pyclustering.cluster.xmeans).
See: https://github.com/annoviko/pyclustering/issues/326
- Bug with calculation MNDL splitting criterion for X-Means algorithm (pyclustering.cluster.xmeans).
See: https://github.com/annoviko/pyclustering/issues/328
- Bug with loss of CF-nodes in CF-tree during inserting that leads unbalanced CF-tree (pyclustering.container.cftree).
See: https://github.com/annoviko/pyclustering/issues/304
- Bug with time stamps for each iteration in hsyncnet algorithm (ccore.cluster.hsyncnet).
See: https://github.com/annoviko/pyclustering/issues/306
- Bug with memory occupation by CCORE DBSCAN implementation due to adjacency matrix usage (ccore.cluster.dbscan).
See: https://github.com/annoviko/pyclustering/issues/309
- Bug with CURE: always finds max two representative points (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/310
- Bug with infinite loop in case of incorrect number of clusters 'ordering_analyser' (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/317
- Bug with incorrect connectivity radius for allocation specified amount of clusters 'ordering_analyser' (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/316
- Bug with clusters are allocated in the homogeneous ordering 'ordering_analyser' (pyclustering.cluster.optics).
See: https://github.com/annoviko/pyclustering/issues/315
------------------------------------------------------------------------
CHANGE NOTES FOR 0.6.0 (STARTED: Jul 18, 2015), (RELEASED: Jun 01, 2016)
------------------------------------------------------------------------
GENERAL CHANGES (pyclustering):
- Implemented phase oscillatory network syncpr (pyclustering.nnet.syncpr).
See: https://github.com/annoviko/pyclustering/issues/208
- Feature for pyclustering.nnet.syncpr that allows to use ccore library for solving.
See: https://github.com/annoviko/pyclustering/issues/232
- Optimized simulation algorithm for sync oscillatory network (pyclustering.nnet.sync) when collecting results are not requested.
See: https://github.com/annoviko/pyclustering/issues/233
- Images of english alphabet 100x100.
See: https://github.com/annoviko/pyclustering/commit/aa28f1a8a363fbeb5f074d22ec1e8258a1dd0579
- Implemented feature to use rectangular network structures in oscillatory networks.
See: https://github.com/annoviko/pyclustering/issues/259
- Implemented CLARANS algorithm (pyclustering.cluster.clarans).
See: https://github.com/annoviko/pyclustering/issues/52
- Implemented feature to analyse and visualize results of hysteresis oscillatory network (pyclustering.nnet.hysteresis).
See: https://github.com/annoviko/pyclustering/issues/75
- Implemented feature to analyse and visualize results of graph coloring algorithm based on hysteresis oscillatory network (pyclustering.gcolor.hysteresis).
See: https://github.com/annoviko/pyclustering/issues/75
- Implemented ant colony based algorithm for TSP problem (pyclustering.tsp.antcolony).
See: https://github.com/annoviko/pyclustering/pull/277
- Implemented feature to use CCORE K-Medians algorithm using argument 'ccore' to ensure high performance (pyclustering.cluster.kmedians).
See: https://github.com/annoviko/pyclustering/issues/231
- Implemented feature to place several plots on each row using parameter 'maximum number of rows' for cluster visualizer (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/274
- Implemented feature to specify initial number of neighbors to calculate initial connectivity radius and increase percent of number of neighbors (or radius if total number of object is exceeded) on each step (pyclustering.cluster.hsyncnet).
See: https://github.com/annoviko/pyclustering/issues/284
- Implemented double-layer oscillatory network based on modified Kuramoto model for image segmentation (pyclustering.nnet.syncsegm).
See: no reference
- Added new examples and demos.
See: no reference
- Implemented feature to use CCORE K-Medoids algorithm using argument 'ccore' to ensure high performance (pyclustering.cluster.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/230
- Implemented feature for CURE algorithm that provides additional information about clustering results: representative points and mean point of each cluster (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/292
- Implemented feature to animate analysed output dynamic of Sync family oscillatory networks (sync_visualizer, syncnet_visualizer): correlation matrix, phase coordinates, cluster allocation (pyclustering.nnet.sync, pyclustering.cluster.syncnet).
See: https://www.youtube.com/watch?v=5S5mFYVihso
See: https://www.youtube.com/watch?v=Vd-ww9PcZvI
See: https://www.youtube.com/watch?v=QYPqWoyNHO8
See: https://www.youtube.com/watch?v=RA0MiC2WlbY
- Improved algorithm SYNC-SOM: accuracy of clustering and calculation are improved in line with proof of concept where connection between oscillator in the second layer (that is represented by the self-organized feature map) should be created in line with classical radius like in SyncNet, but indirectly: if objects that correspond to two different neurons can be connected than neurons should be also connected with each other (pyclustering.cluster.syncsom).
See: https://github.com/annoviko/pyclustering/issues/297
GENERAL CHANGES (ccore):
- Implemented phase oscillatory network for pattern recognition syncpr (ccore.cluster.syncpr).
See: https://github.com/annoviko/pyclustering/issues/232
- Implemented agglomerative algorithm for cluster analysis (ccore.cluster.agglomerative).
See: https://github.com/annoviko/pyclustering/issues/212
- Implemented feature to use rectangular network structures in oscillatory networks.
See: https://github.com/annoviko/pyclustering/issues/259
- Implemented ant colony based algorithm for TSP problem (ccore.tsp.antcolony).
See: https://github.com/annoviko/pyclustering/pull/277
- Implemented K-Medians algorithm for cluster analysis (ccore.cluster.kmedians).
See: https://github.com/annoviko/pyclustering/issues/231
- Implemented feature to specify initial number of neighbors to calculate initial connectivity radius and increase percent of number of neighbors (or radius if total number of object is exceeded) on each step (ccore.cluster.hsyncnet).
https://github.com/annoviko/pyclustering/issues/284
- Implemented K-Medoids algorithm for cluster analysis (ccore.cluster.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/230
- Implemented feature for CURE algorithm that provides additional information about clustering results: representative points and mean point of each cluster (ccore.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/293
- Implemented new class collection to oscillatory and neural network constructing.
See: https://github.com/annoviko/pyclustering/issues/264
- Memory usage optimization for ROCK algorithm.
See: no reference
CORRECTED MAJOR BUGS:
- Bug with callback methods in ccore library in syncnet (ccore.cluster.syncnet) and hsyncnet (ccore.cluster.hsyncnet) that may lead to loss of accuracy.
- Bug with division by zero in kmeans algorithm (ccore.kmeans, pyclustering.cluster.kmeans) when cluster after center updating is not able to capture object.
See: https://github.com/annoviko/pyclustering/issues/238
- Bug with stack overflow in KD tree in case of big data (pyclustering.container.kdtree, ccore.container.kdtree).
See: https://github.com/annoviko/pyclustering/pull/239
See: https://github.com/annoviko/pyclustering/issues/255
See: https://github.com/annoviko/pyclustering/issues/254
- Bug with incorrect clustering in case of the same elements in cure algorithm (pyclustering.cluster.cure).
See: https://github.com/annoviko/pyclustering/pull/239
- Bug with execution fail in case of wrong number of initial medians and in case of the same objects with several initial medians (pyclustering.cluster.kmedians).
See: https://github.com/annoviko/pyclustering/issues/256
- Bug with calculation synchronous ensembles near by zero: oscillators 2*pi and 0 are considered as different (pyclustering.nnet.sync, ccore.nnet.sync).
See: https://github.com/annoviko/pyclustering/issues/263
- Bug with cluster allocation in kmedoids algorithm in case of the same objects with several initial medoids (pyclustering.cluster.kmedoids).
See: https://github.com/annoviko/pyclustering/issues/269
- Bug with visualization of clusters in 3D (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/273
- Bug with obtaining nearest entry for absorbing during inserting node (pyclustering.container.cftree).
See: https://github.com/annoviko/pyclustering/issues/282
- Bug with SOM method show_network() in case of usage CCORE (pyclustering.nnet.som).
See: https://github.com/annoviko/pyclustering/issues/283
- Bug with cluster allocation in case of switched off dynamic collecting (pyclustering.cluster.hsyncnet).
See: https://github.com/annoviko/pyclustering/issues/285
- Bug with execution fail during clustering data with rough values of initial medians (pyclustering.cluster.kmedians).
See: https://github.com/annoviko/pyclustering/issues/286
- Bug with meamory leakage on interface between CCORE and pyclustering (ccore).
See: no reference
- Bug with allocation correlation matrix in case of usage CCORE (pyclustering.nnet.sync).
See: https://github.com/annoviko/pyclustering/issues/288
- Bug with memory leakage in CURE algorithm - deallocation of representative points (ccore.cluster.cure).
See: https://github.com/annoviko/pyclustering/issues/294
- Bug with cluster visualization in case of 1D input data (pyclustering.cluster).
See: https://github.com/annoviko/pyclustering/issues/296
pyclustering-0.10.1.2/LICENSE 0000775 0000000 0000000 00000002767 13757534235 0015523 0 ustar 00root root 0000000 0000000 Copyright (c) 2014-2020 Andrei Novikov
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. pyclustering-0.10.1.2/MANIFEST.in 0000664 0000000 0000000 00000000040 13757534235 0016227 0 ustar 00root root 0000000 0000000 include MANIFEST.in
graft ccore pyclustering-0.10.1.2/PKG-INFO.rst 0000775 0000000 0000000 00000015673 13757534235 0016422 0 ustar 00root root 0000000 0000000 |JOSS|
PyClustering
============
**pyclustering** is a Python, C++ data mining library (clustering
algorithm, oscillatory networks, neural networks). The library provides
Python and C++ implementations (C++ pyclustering library) of each algorithm or
model. C++ pyclustering library is a part of pyclustering and supported for
Linux, Windows and MacOS operating systems.
Official repository: https://github.com/annoviko/pyclustering/
Documentation: https://pyclustering.github.io/docs/0.10.1/html/
Dependencies
============
**Required packages**: scipy, matplotlib, numpy, Pillow
**Python version**: >=3.6 (32-bit, 64-bit)
**C++ version**: >= 14 (32-bit, 64-bit)
Performance
===========
Each algorithm is implemented using Python and C/C++ language, if your platform is not supported then Python
implementation is used, otherwise C/C++. Implementation can be chosen by `ccore` flag (by default it is always
'True' and it means that C/C++ is used), for example:
.. code:: python
# As by default - C/C++ part of the library is used
xmeans_instance_1 = xmeans(data_points, start_centers, 20, ccore=True);
# The same - C/C++ part of the library is used by default
xmeans_instance_2 = xmeans(data_points, start_centers, 20);
# Switch off core - Python is used
xmeans_instance_3 = xmeans(data_points, start_centers, 20, ccore=False);
Installation
============
Installation using pip3 tool:
.. code:: bash
$ pip3 install pyclustering
Manual installation from official repository using Makefile:
.. code:: bash
# get sources of the pyclustering library, for example, from repository
$ mkdir pyclustering
$ cd pyclustering/
$ git clone https://github.com/annoviko/pyclustering.git .
# compile CCORE library (core of the pyclustering library).
$ cd ccore/
$ make ccore_64bit # build for 64-bit OS
# $ make ccore_32bit # build for 32-bit OS
# return to parent folder of the pyclustering library
$ cd ../
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Manual installation using CMake:
.. code:: bash
# get sources of the pyclustering library, for example, from repository
$ mkdir pyclustering
$ cd pyclustering/
$ git clone https://github.com/annoviko/pyclustering.git .
# generate build files.
$ mkdir build
$ cmake ..
# build pyclustering-shared target depending on what was generated (Makefile or MSVC solution)
# if Makefile has been generated then
$ make pyclustering-shared
# return to parent folder of the pyclustering library
$ cd ../
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Manual installation using Microsoft Visual Studio solution:
1. Clone repository from: https://github.com/annoviko/pyclustering.git
2. Open folder `pyclustering/ccore`
3. Open Visual Studio project `ccore.sln`
4. Select solution platform: `x86` or `x64`
5. Build `pyclustering-shared` project.
6. Add pyclustering folder to python path or install it using setup.py
.. code:: bash
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Proposals, Questions, Bugs
==========================
In case of any questions, proposals or bugs related to the pyclustering
please contact to pyclustering@yandex.ru.
Issue tracker: https://github.com/annoviko/pyclustering/issues
Library Content
===============
**Clustering algorithms (module pyclustering.cluster):**
- **Agglomerative** (pyclustering.cluster.agglomerative);
- **BANG** (pyclustering.cluster.bang);
- **BIRCH** (pyclustering.cluster.birch);
- **BSAS** (pyclustering.cluster.bsas);
- **CLARANS** (pyclustering.cluster.clarans);
- **CLIQUE** (pyclustering.cluster.clique);
- **CURE** (pyclustering.cluster.cure);
- **DBSCAN** (pyclustering.cluster.dbscan);
- **Elbow** (pyclustering.cluster.elbow);
- **EMA** (pyclustering.cluster.ema);
- **Fuzzy C-Means** (pyclustering.cluster.fcm);
- **GA (Genetic Algorithm)** (pyclustering.cluster.ga);
- **G-Means** (pyclustering.cluster.gmeans);
- **HSyncNet** (pyclustering.cluster.hsyncnet);
- **K-Means** (pyclustering.cluster.kmeans);
- **K-Means++** (pyclustering.cluster.center_initializer);
- **K-Medians** (pyclustering.cluster.kmedians);
- **K-Medoids** (pyclustering.cluster.kmedoids);
- **MBSAS** (pyclustering.cluster.mbsas);
- **OPTICS** (pyclustering.cluster.optics);
- **ROCK** (pyclustering.cluster.rock);
- **Silhouette** (pyclustering.cluster.silhouette);
- **SOM-SC** (pyclustering.cluster.somsc);
- **SyncNet** (pyclustering.cluster.syncnet);
- **Sync-SOM** (pyclustering.cluster.syncsom);
- **TTSAS** (pyclustering.cluster.ttsas);
- **X-Means** (pyclustering.cluster.xmeans);
**Oscillatory networks and neural networks (module pyclustering.nnet):**
- **Oscillatory network based on Hodgkin-Huxley model** (pyclustering.nnet.hhn);
- **fSync: Oscillatory Network based on Landau-Stuart equation and Kuramoto model** (pyclustering.nnet.fsync);
- **Hysteresis Oscillatory Network** (pyclustering.nnet.hysteresis);
- **LEGION: Local Excitatory Global Inhibitory Oscillatory Network** (pyclustering.nnet.legion);
- **PCNN: Pulse-Coupled Neural Network** (pyclustering.nnet.pcnn);
- **SOM: Self-Organized Map** (pyclustering.nnet.som);
- **Sync: Oscillatory Network based on Kuramoto model** (pyclustering.nnet.sync);
- **SyncPR: Oscillatory Network based on Kuramoto model for pattern recognition** (pyclustering.nnet.syncpr);
- **SyncSegm: Oscillatory Network based on Kuramoto model for image segmentation** (pyclustering.nnet.syncsegm);
**Graph Coloring Algorithms (module pyclustering.gcolor):**
- **DSATUR** (pyclustering.gcolor.dsatur);
- **Hysteresis Oscillatory Network for graph coloring** (pyclustering.gcolor.hysteresis);
- **Sync: Oscillatory Network based on Kuramoto model for graph coloring** (pyclustering.gcolor.sync);
**Containers (module pyclustering.container):**
- **CF-Tree** (pyclustering.container.cftree);
- **KD-Tree** (pyclustering.container.kdtree);
Cite the Library
================
If you are using pyclustering library in a scientific paper, please, cite the library:
Novikov, A., 2019. PyClustering: Data Mining Library. Journal of Open Source Software, 4(36), p.1230. Available at: http://dx.doi.org/10.21105/joss.01230.
BibTeX entry:
.. code::
@article{Novikov2019,
doi = {10.21105/joss.01230},
url = {https://doi.org/10.21105/joss.01230},
year = 2019,
month = {apr},
publisher = {The Open Journal},
volume = {4},
number = {36},
pages = {1230},
author = {Andrei Novikov},
title = {{PyClustering}: Data Mining Library},
journal = {Journal of Open Source Software}
}
.. |JOSS| image:: http://joss.theoj.org/papers/10.21105/joss.01230/status.svg
:target: https://doi.org/10.21105/joss.01230
pyclustering-0.10.1.2/README.rst 0000775 0000000 0000000 00000046403 13757534235 0016200 0 ustar 00root root 0000000 0000000 |Build Status Linux MacOS| |Build Status Win| |Coverage Status| |PyPi| |Download Counter| |JOSS|
PyClustering
============
**pyclustering** is a Python, C++ data mining library (clustering
algorithm, oscillatory networks, neural networks). The library provides
Python and C++ implementations (C++ pyclustering library) of each algorithm or
model. C++ pyclustering library is a part of pyclustering and supported for
Linux, Windows and MacOS operating systems.
**Version**: 0.10.1.2
**License**: The 3-Clause BSD License
**E-Mail**: pyclustering@yandex.ru
**Documentation**: https://pyclustering.github.io/docs/0.10.1/html/
**Homepage**: https://pyclustering.github.io/
**PyClustering Wiki**: https://github.com/annoviko/pyclustering/wiki
Dependencies
============
**Required packages**: scipy, matplotlib, numpy, Pillow
**Python version**: >=3.6 (32-bit, 64-bit)
**C++ version**: >= 14 (32-bit, 64-bit)
Performance
===========
Each algorithm is implemented using Python and C/C++ language, if your platform is not supported then Python
implementation is used, otherwise C/C++. Implementation can be chosen by `ccore` flag (by default it is always
'True' and it means that C/C++ is used), for example:
.. code:: python
# As by default - C/C++ part of the library is used
xmeans_instance_1 = xmeans(data_points, start_centers, 20, ccore=True);
# The same - C/C++ part of the library is used by default
xmeans_instance_2 = xmeans(data_points, start_centers, 20);
# Switch off core - Python is used
xmeans_instance_3 = xmeans(data_points, start_centers, 20, ccore=False);
Installation
============
Installation using pip3 tool:
.. code:: bash
$ pip3 install pyclustering
Manual installation from official repository using Makefile:
.. code:: bash
# get sources of the pyclustering library, for example, from repository
$ mkdir pyclustering
$ cd pyclustering/
$ git clone https://github.com/annoviko/pyclustering.git .
# compile CCORE library (core of the pyclustering library).
$ cd ccore/
$ make ccore_64bit # build for 64-bit OS
# $ make ccore_32bit # build for 32-bit OS
# return to parent folder of the pyclustering library
$ cd ../
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Manual installation using CMake:
.. code:: bash
# get sources of the pyclustering library, for example, from repository
$ mkdir pyclustering
$ cd pyclustering/
$ git clone https://github.com/annoviko/pyclustering.git .
# generate build files.
$ mkdir build
$ cmake ..
# build pyclustering-shared target depending on what was generated (Makefile or MSVC solution)
# if Makefile has been generated then
$ make pyclustering-shared
# return to parent folder of the pyclustering library
$ cd ../
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Manual installation using Microsoft Visual Studio solution:
1. Clone repository from: https://github.com/annoviko/pyclustering.git
2. Open folder `pyclustering/ccore`
3. Open Visual Studio project `ccore.sln`
4. Select solution platform: `x86` or `x64`
5. Build `pyclustering-shared` project.
6. Add pyclustering folder to python path or install it using setup.py
.. code:: bash
# install pyclustering library
$ python3 setup.py install
# optionally - test the library
$ python3 setup.py test
Proposals, Questions, Bugs
==========================
In case of any questions, proposals or bugs related to the pyclustering please contact to pyclustering@yandex.ru or create an issue here.
PyClustering Status
===================
+----------------------+------------------------------+-------------------------------------+---------------------------------+
| Branch | master | 0.10.dev | 0.10.1.rel |
+======================+==============================+=====================================+=================================+
| Build (Linux, MacOS) | |Build Status Linux MacOS| | |Build Status Linux MacOS 0.10.dev| | |Build Status Linux 0.10.1.rel| |
+----------------------+------------------------------+-------------------------------------+---------------------------------+
| Build (Win) | |Build Status Win| | |Build Status Win 0.10.dev| | |Build Status Win 0.10.1.rel| |
+----------------------+------------------------------+-------------------------------------+---------------------------------+
| Code Coverage | |Coverage Status| | |Coverage Status 0.10.dev| | |Coverage Status 0.10.1.rel| |
+----------------------+------------------------------+-------------------------------------+---------------------------------+
Cite the Library
================
If you are using pyclustering library in a scientific paper, please, cite the library:
Novikov, A., 2019. PyClustering: Data Mining Library. Journal of Open Source Software, 4(36), p.1230. Available at: http://dx.doi.org/10.21105/joss.01230.
BibTeX entry:
.. code::
@article{Novikov2019,
doi = {10.21105/joss.01230},
url = {https://doi.org/10.21105/joss.01230},
year = 2019,
month = {apr},
publisher = {The Open Journal},
volume = {4},
number = {36},
pages = {1230},
author = {Andrei Novikov},
title = {{PyClustering}: Data Mining Library},
journal = {Journal of Open Source Software}
}
Brief Overview of the Library Content
=====================================
**Clustering algorithms and methods (module pyclustering.cluster):**
+------------------------+---------+-----+
| Algorithm | Python | C++ |
+========================+=========+=====+
| Agglomerative | ✓ | ✓ |
+------------------------+---------+-----+
| BANG | ✓ | |
+------------------------+---------+-----+
| BIRCH | ✓ | |
+------------------------+---------+-----+
| BSAS | ✓ | ✓ |
+------------------------+---------+-----+
| CLARANS | ✓ | |
+------------------------+---------+-----+
| CLIQUE | ✓ | ✓ |
+------------------------+---------+-----+
| CURE | ✓ | ✓ |
+------------------------+---------+-----+
| DBSCAN | ✓ | ✓ |
+------------------------+---------+-----+
| Elbow | ✓ | ✓ |
+------------------------+---------+-----+
| EMA | ✓ | |
+------------------------+---------+-----+
| Fuzzy C-Means | ✓ | ✓ |
+------------------------+---------+-----+
| GA (Genetic Algorithm) | ✓ | ✓ |
+------------------------+---------+-----+
| G-Means | ✓ | ✓ |
+------------------------+---------+-----+
| HSyncNet | ✓ | ✓ |
+------------------------+---------+-----+
| K-Means | ✓ | ✓ |
+------------------------+---------+-----+
| K-Means++ | ✓ | ✓ |
+------------------------+---------+-----+
| K-Medians | ✓ | ✓ |
+------------------------+---------+-----+
| K-Medoids | ✓ | ✓ |
+------------------------+---------+-----+
| MBSAS | ✓ | ✓ |
+------------------------+---------+-----+
| OPTICS | ✓ | ✓ |
+------------------------+---------+-----+
| ROCK | ✓ | ✓ |
+------------------------+---------+-----+
| Silhouette | ✓ | ✓ |
+------------------------+---------+-----+
| SOM-SC | ✓ | ✓ |
+------------------------+---------+-----+
| SyncNet | ✓ | ✓ |
+------------------------+---------+-----+
| Sync-SOM | ✓ | |
+------------------------+---------+-----+
| TTSAS | ✓ | ✓ |
+------------------------+---------+-----+
| X-Means | ✓ | ✓ |
+------------------------+---------+-----+
**Oscillatory networks and neural networks (module pyclustering.nnet):**
+--------------------------------------------------------------------------------+---------+-----+
| Model | Python | C++ |
+================================================================================+=========+=====+
| CNN (Chaotic Neural Network) | ✓ | |
+--------------------------------------------------------------------------------+---------+-----+
| fSync (Oscillatory network based on Landau-Stuart equation and Kuramoto model) | ✓ | |
+--------------------------------------------------------------------------------+---------+-----+
| HHN (Oscillatory network based on Hodgkin-Huxley model) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| Hysteresis Oscillatory Network | ✓ | |
+--------------------------------------------------------------------------------+---------+-----+
| LEGION (Local Excitatory Global Inhibitory Oscillatory Network) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| PCNN (Pulse-Coupled Neural Network) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| SOM (Self-Organized Map) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| Sync (Oscillatory network based on Kuramoto model) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| SyncPR (Oscillatory network for pattern recognition) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
| SyncSegm (Oscillatory network for image segmentation) | ✓ | ✓ |
+--------------------------------------------------------------------------------+---------+-----+
**Graph Coloring Algorithms (module pyclustering.gcolor):**
+------------------------+---------+-----+
| Algorithm | Python | C++ |
+========================+=========+=====+
| DSatur | ✓ | |
+------------------------+---------+-----+
| Hysteresis | ✓ | |
+------------------------+---------+-----+
| GColorSync | ✓ | |
+------------------------+---------+-----+
**Containers (module pyclustering.container):**
+------------------------+---------+-----+
| Algorithm | Python | C++ |
+========================+=========+=====+
| KD Tree | ✓ | ✓ |
+------------------------+---------+-----+
| CF Tree | ✓ | |
+------------------------+---------+-----+
Examples in the Library
=======================
The library contains examples for each algorithm and oscillatory network model:
**Clustering examples:** ``pyclustering/cluster/examples``
**Graph coloring examples:** ``pyclustering/gcolor/examples``
**Oscillatory network examples:** ``pyclustering/nnet/examples``
.. image:: https://github.com/annoviko/pyclustering/blob/master/docs/img/example_cluster_place.png
:alt: Where are examples?
Code Examples
=============
**Data clustering by CURE algorithm**
.. code:: python
from pyclustering.cluster import cluster_visualizer;
from pyclustering.cluster.cure import cure;
from pyclustering.utils import read_sample;
from pyclustering.samples.definitions import FCPS_SAMPLES;
# Input data in following format [ [0.1, 0.5], [0.3, 0.1], ... ].
input_data = read_sample(FCPS_SAMPLES.SAMPLE_LSUN);
# Allocate three clusters.
cure_instance = cure(input_data, 3);
cure_instance.process();
clusters = cure_instance.get_clusters();
# Visualize allocated clusters.
visualizer = cluster_visualizer();
visualizer.append_clusters(clusters, input_data);
visualizer.show();
**Data clustering by K-Means algorithm**
.. code:: python
from pyclustering.cluster.kmeans import kmeans, kmeans_visualizer
from pyclustering.cluster.center_initializer import kmeans_plusplus_initializer
from pyclustering.samples.definitions import FCPS_SAMPLES
from pyclustering.utils import read_sample
# Load list of points for cluster analysis.
sample = read_sample(FCPS_SAMPLES.SAMPLE_TWO_DIAMONDS)
# Prepare initial centers using K-Means++ method.
initial_centers = kmeans_plusplus_initializer(sample, 2).initialize()
# Create instance of K-Means algorithm with prepared centers.
kmeans_instance = kmeans(sample, initial_centers)
# Run cluster analysis and obtain results.
kmeans_instance.process()
clusters = kmeans_instance.get_clusters()
final_centers = kmeans_instance.get_centers()
# Visualize obtained results
kmeans_visualizer.show_clusters(sample, clusters, final_centers)
**Data clustering by OPTICS algorithm**
.. code:: python
from pyclustering.cluster import cluster_visualizer
from pyclustering.cluster.optics import optics, ordering_analyser, ordering_visualizer
from pyclustering.samples.definitions import FCPS_SAMPLES
from pyclustering.utils import read_sample
# Read sample for clustering from some file
sample = read_sample(FCPS_SAMPLES.SAMPLE_LSUN)
# Run cluster analysis where connectivity radius is bigger than real
radius = 2.0
neighbors = 3
amount_of_clusters = 3
optics_instance = optics(sample, radius, neighbors, amount_of_clusters)
# Performs cluster analysis
optics_instance.process()
# Obtain results of clustering
clusters = optics_instance.get_clusters()
noise = optics_instance.get_noise()
ordering = optics_instance.get_ordering()
# Visualize ordering diagram
analyser = ordering_analyser(ordering)
ordering_visualizer.show_ordering_diagram(analyser, amount_of_clusters)
# Visualize clustering results
visualizer = cluster_visualizer()
visualizer.append_clusters(clusters, sample)
visualizer.show()
**Simulation of oscillatory network PCNN**
.. code:: python
from pyclustering.nnet.pcnn import pcnn_network, pcnn_visualizer
# Create Pulse-Coupled neural network with 10 oscillators.
net = pcnn_network(10)
# Perform simulation during 100 steps using binary external stimulus.
dynamic = net.simulate(50, [1, 1, 1, 0, 0, 0, 0, 1, 1, 1])
# Allocate synchronous ensembles from the output dynamic.
ensembles = dynamic.allocate_sync_ensembles()
# Show output dynamic.
pcnn_visualizer.show_output_dynamic(dynamic, ensembles)
**Simulation of chaotic neural network CNN**
.. code:: python
from pyclustering.cluster import cluster_visualizer
from pyclustering.samples.definitions import SIMPLE_SAMPLES
from pyclustering.utils import read_sample
from pyclustering.nnet.cnn import cnn_network, cnn_visualizer
# Load stimulus from file.
stimulus = read_sample(SIMPLE_SAMPLES.SAMPLE_SIMPLE3)
# Create chaotic neural network, amount of neurons should be equal to amount of stimulus.
network_instance = cnn_network(len(stimulus))
# Perform simulation during 100 steps.
steps = 100
output_dynamic = network_instance.simulate(steps, stimulus)
# Display output dynamic of the network.
cnn_visualizer.show_output_dynamic(output_dynamic)
# Display dynamic matrix and observation matrix to show clustering phenomenon.
cnn_visualizer.show_dynamic_matrix(output_dynamic)
cnn_visualizer.show_observation_matrix(output_dynamic)
# Visualize clustering results.
clusters = output_dynamic.allocate_sync_ensembles(10)
visualizer = cluster_visualizer()
visualizer.append_clusters(clusters, stimulus)
visualizer.show()
Illustrations
=============
**Cluster allocation on FCPS dataset collection by DBSCAN:**
.. image:: https://github.com/annoviko/pyclustering/blob/master/docs/img/fcps_cluster_analysis.png
:alt: Clustering by DBSCAN
**Cluster allocation by OPTICS using cluster-ordering diagram:**
.. image:: https://github.com/annoviko/pyclustering/blob/master/docs/img/optics_example_clustering.png
:alt: Clustering by OPTICS
**Partial synchronization (clustering) in Sync oscillatory network:**
.. image:: https://github.com/annoviko/pyclustering/blob/master/docs/img/sync_partial_synchronization.png
:alt: Partial synchronization in Sync oscillatory network
**Cluster visualization by SOM (Self-Organized Feature Map)**
.. image:: https://github.com/annoviko/pyclustering/blob/master/docs/img/target_som_processing.png
:alt: Cluster visualization by SOM
.. |Build Status Linux MacOS| image:: https://travis-ci.org/annoviko/pyclustering.svg?branch=master
:target: https://travis-ci.org/annoviko/pyclustering
.. |Build Status Win| image:: https://ci.appveyor.com/api/projects/status/4uly2exfp49emwn0/branch/master?svg=true
:target: https://ci.appveyor.com/project/annoviko/pyclustering/branch/master
.. |Coverage Status| image:: https://coveralls.io/repos/github/annoviko/pyclustering/badge.svg?branch=master&ts=1
:target: https://coveralls.io/github/annoviko/pyclustering?branch=master
.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4280556.svg
:target: https://doi.org/10.5281/zenodo.4280556
.. |PyPi| image:: https://badge.fury.io/py/pyclustering.svg
:target: https://badge.fury.io/py/pyclustering
.. |Build Status Linux MacOS 0.10.dev| image:: https://travis-ci.org/annoviko/pyclustering.svg?branch=0.10.dev
:target: https://travis-ci.org/annoviko/pyclustering
.. |Build Status Win 0.10.dev| image:: https://ci.appveyor.com/api/projects/status/4uly2exfp49emwn0/branch/0.10.dev?svg=true
:target: https://ci.appveyor.com/project/annoviko/pyclustering/branch/0.9.dev
.. |Coverage Status 0.10.dev| image:: https://coveralls.io/repos/github/annoviko/pyclustering/badge.svg?branch=0.10.dev&ts=1
:target: https://coveralls.io/github/annoviko/pyclustering?branch=0.9.dev
.. |Build Status Linux 0.10.1.rel| image:: https://travis-ci.org/annoviko/pyclustering.svg?branch=0.10.1.rel
:target: https://travis-ci.org/annoviko/pyclustering
.. |Build Status Win 0.10.1.rel| image:: https://ci.appveyor.com/api/projects/status/4uly2exfp49emwn0/branch/0.10.1.rel?svg=true
:target: https://ci.appveyor.com/project/annoviko/pyclustering/branch/0.10.1.rel
.. |Coverage Status 0.10.1.rel| image:: https://coveralls.io/repos/github/annoviko/pyclustering/badge.svg?branch=0.10.1.rel&ts=1
:target: https://coveralls.io/github/annoviko/pyclustering?branch=0.10.1.rel
.. |Download Counter| image:: https://pepy.tech/badge/pyclustering
:target: https://pepy.tech/project/pyclustering
.. |JOSS| image:: http://joss.theoj.org/papers/10.21105/joss.01230/status.svg
:target: https://doi.org/10.21105/joss.01230
pyclustering-0.10.1.2/appveyor.yml 0000775 0000000 0000000 00000001177 13757534235 0017100 0 ustar 00root root 0000000 0000000 version: '{build}'
os: Visual Studio 2015
platform: x64
init: []
environment:
CYGWIN_PATH: C:\cygwin64\bin\bash
PYTHON: C:\Python36-x64\python.exe
TESTING_RESULT: "Success"
GITHUB_TOKEN:
secure: gzN7IIwlku2+7LB0SO+41zfT04Iir7WgCypBx/lwniP5JbxFl4dtjjMN/jj7sQZ1
YANDEX_DISK_TOKEN:
secure: R//j8C73CXwMBOyzobmPYGMUz/uPo9QyQrYXpJyvPIR5EeaX7f054/z1uddYdYux
matrix:
- CI_JOB: "BUILD_WINDOWS_CCORE"
- CI_JOB: "UT_WINDOWS_CCORE"
- CI_JOB: "BUILD_CYGWIN_CCORE"
- CI_JOB: "PYCLUSTERING_WINDOWS_X86"
- CI_JOB: "PYCLUSTERING_WINDOWS_X64"
build_script:
- ps: ./ci/appveyor-ci.ps1
pyclustering-0.10.1.2/ccore/ 0000775 0000000 0000000 00000000000 13757534235 0015572 5 ustar 00root root 0000000 0000000 pyclustering-0.10.1.2/ccore/.cproject 0000664 0000000 0000000 00000037660 13757534235 0017420 0 ustar 00root root 0000000 0000000
pyclustering-0.10.1.2/ccore/.project 0000664 0000000 0000000 00000001446 13757534235 0017246 0 ustar 00root root 0000000 0000000
ccoreorg.eclipse.cdt.managedbuilder.core.genmakebuilderclean,full,incremental,org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilderfull,incremental,org.eclipse.cdt.core.cnatureorg.eclipse.cdt.core.ccnatureorg.eclipse.cdt.managedbuilder.core.managedBuildNatureorg.eclipse.cdt.managedbuilder.core.ScannerConfigNature
pyclustering-0.10.1.2/ccore/CMakeLists.txt 0000775 0000000 0000000 00000000774 13757534235 0020345 0 ustar 00root root 0000000 0000000 #
# @authors Andrei Novikov (pyclustering@yandex.ru)
# @date 2014-2020
# @copyright BSD-3-Clause
#
cmake_minimum_required(VERSION 3.10)
project(pyclustering VERSION 0.10.1.2 LANGUAGES CXX)
file(MAKE_DIRECTORY build)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
add_subdirectory(bvt)
add_subdirectory(external)
add_subdirectory(src)
add_subdirectory(tst)
pyclustering-0.10.1.2/ccore/bvt/ 0000775 0000000 0000000 00000000000 13757534235 0016365 5 ustar 00root root 0000000 0000000 pyclustering-0.10.1.2/ccore/bvt/CMakeLists.txt 0000775 0000000 0000000 00000001352 13757534235 0021131 0 ustar 00root root 0000000 0000000 #
# @authors Andrei Novikov (pyclustering@yandex.ru)
# @date 2014-2020
# @copyright BSD-3-Clause
#
cmake_minimum_required(VERSION 3.10)
# C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Headers
include_directories(${PROJECT_SOURCE_DIR}/include)
# Build target - build verify test for static library
add_executable(bvt-static static-test.cpp)
add_dependencies(bvt-static pyclustering-static)
target_link_libraries(bvt-static PUBLIC pyclustering-static)
# Build target - build verify test for shared library
add_executable(bvt-shared shared-test.cpp)
add_dependencies(bvt-shared pyclustering-shared)
if(CMAKE_DL_LIBS)
target_link_libraries(bvt-shared ${CMAKE_DL_LIBS})
endif()
pyclustering-0.10.1.2/ccore/bvt/bvt-shared.vcxproj 0000775 0000000 0000000 00000015446 13757534235 0022056 0 ustar 00root root 0000000 0000000 
DebugWin32ReleaseWin32Debugx64Releasex64{B7248E9B-CB31-41E9-8192-06808C5AD767}bvtshared8.1Applicationtruev140MultiByteApplicationfalsev140trueMultiByteApplicationtruev140MultiByteApplicationfalsev140trueMultiByte$(SolutionDir)$(Platform)\$(Configuration)\$(Platform)\$(Configuration)\$(ProjectName)\$(SolutionDir)$(Platform)\$(Configuration)\$(Platform)\$(Configuration)\$(ProjectName)\$(SolutionDir)$(Platform)\$(Configuration)\$(Platform)\$(Configuration)\$(ProjectName)\$(SolutionDir)$(Platform)\$(Configuration)\$(Platform)\$(Configuration)\$(ProjectName)\Level3DisabledtrueConsoleLevel3DisabledtrueConsoleLevel3MaxSpeedtruetruetruetruetrueConsoleLevel3MaxSpeedtruetruetruetruetrueConsole