zentas

所属分类:聚类算法
开发工具:C++
文件大小:160KB
下载次数:0
上传日期:2019-06-27 05:40:22
上 传 者sh-1993
说明:  围绕中心的分区数据群集
(Partitional data clustering around centers)

文件列表:
.clang-format (2698, 2019-06-27)
CMakeLists.txt (1332, 2019-06-27)
COPYING (35147, 2019-06-27)
cmake (0, 2019-06-27)
cmake\EnableCompilerWarnings.cmake (1688, 2019-06-27)
cmake\FindCython.cmake (1557, 2019-06-27)
data (0, 2019-06-27)
data\ACTG_costs.txt (77, 2019-06-27)
data\costs.txt (102, 2019-06-27)
data\nucleic.txt (175, 2019-06-27)
data\words1.txt (85, 2019-06-27)
data\words2.txt (58, 2019-06-27)
python (0, 2019-06-27)
python\CMakeLists.txt (927, 2019-06-27)
python\examples.py (7760, 2019-06-27)
python\experiments (0, 2019-06-27)
python\experiments\clarans_demo_slides.py (5240, 2019-06-27)
python\experiments\datapaths.py (3777, 2019-06-27)
python\experiments\experiments1.py (18639, 2019-06-27)
python\experiments\grid_data.py (14320, 2019-06-27)
python\experiments\joensuu.py (1077, 2019-06-27)
python\experiments\levels.py (3652, 2019-06-27)
python\experiments\load_csv.py (1943, 2019-06-27)
python\experiments\mnist.py (5747, 2019-06-27)
python\experiments\rna.py (1577, 2019-06-27)
python\experiments\scaling_in_k.py (2165, 2019-06-27)
python\experiments\skl_eak_zen.py (5111, 2019-06-27)
python\pyzentas.pyx (20914, 2019-06-27)
testsexamples (0, 2019-06-27)
testsexamples\CMakeLists.txt (1135, 2019-06-27)
testsexamples\exdense.cpp (6506, 2019-06-27)
testsexamples\exsparse.cpp (4037, 2019-06-27)
testsexamples\exvdimap.cpp (1698, 2019-06-27)
testsexamples\exwords.cpp (2337, 2019-06-27)
zentas (0, 2019-06-27)
zentas\CMakeLists.txt (354, 2019-06-27)
zentas\include (0, 2019-06-27)
... ...

# ZENTAS A C++ and (optional) Python tool for partitional clustering. Optimised implementations of K-Medoids and K-Means, for various data types. More information is in our paper at [arXiv 1609.04723](https://arxiv.org/abs/1609.04723). ### K-Medoids a.k.a. K-Centers Given *N* elements *x(1)...x(N)*, select *K* elements indexed by *c(1)...c(K)*, to minimise *sum(i=1...N) min(k=1...K) E(distance (x(i), x(c(k))))* where *distance* is a valid distance and *E* is a non-decreasing function with *E(0) = 0*. *distance* options are * for sparse and dense vectors : l-0, l-1, l-2, l-infinity * for sequence data : Levenshtein and Normalised Levenshtein. Energy *E* options are * identity, quadratic, cubic, square-potential, exponential, and logarithmic. ### K-Means for dense and sparse vector data * minimise sum of squares of l2 distances to cluster mean * minimise sum of l1 distances to cluster dimension-wise median ## PREREQUISITES * CMake * for the Python library: Cython and Python ## CONFIGURE WITH CMAKE Create a build directory: ``` mkdir build; cd build; ``` If you do NOT want the Python library, ``` cmake -DBUILD_PYTHON_LIB=NO .. ``` If you do want the Python library, ``` cmake .. ``` ## BUILD The library can be built, from the `build` directory ``` make -j5 ``` The shared library should now be in ./build/zentas (libzentas.so in Linux) and the Python shared library in ./build/python (pyzentas.so in Linux). These can be moved/copied elsewhere manually, there is currently no install option for zentas. ## USING Example use cases of the C++ library and headers are in testsexamples, with the corresponding executables in build/testsexamples. There is an example of clustering dense vectors (exdense.cpp), sparse vectors (exsparse.cpp), and sequences (exwords.cpp). To use the Python library, make sure pyzentas.so is on PYTHONPATH, for example you can use `sys.path.append(/path/to/pyzentas.so)`. Examples using pyzentas are in python/examples.py. More information can be obtained from the doc strings, try ``` import pyzentas help(pyzentas) ``` ## Doesn't work, or missing a feature? Please raise an issue in the zentas repository

近期下载者

相关文件


收藏者