Skip to main content

Divisive iK-means algorithm implementation

Project description

CodeFactor BCH compliance Maintainability Documentation Status

divik

Python implementation of Divisive iK-means (DiviK) algorithm.

Tools within this package

This section will be further developed soon.

  1. divik - runs DiviK in GAP-only scenario
  2. dunn-divik - runs DiviK in GAP & Dunn scenario
  3. kmeans - runs K-means with GAP statistic
  4. linkage - runs agglomerative clustering
  5. inspect - visualizes DiviK result
  6. visualize - generates .png file with visualization of clusters for 2D maps
  7. spectral - generates spectral embedding of a dataset

Installation

Docker

The recommended way to use this software is through Docker. This is the most convenient way, if you want to use divik application.

To install latest stable version use:

docker pull gmrukwa/divik

To install specific version, you can specify it in the command, e.g.:

docker pull gmrukwa/divik:2.5.7

Python package

Prerequisites for installation of base package:

  • Python 3.6 / 3.7 / 3.8
  • compiler capable of compiling the native C code and OpenMP support

Installation of OpenMP for Ubuntu / Debian

You should have it already installed with GCC compiler, but if somehow not, try the following:

sudo apt-get install libgomp1

Installation of OpenMP for Mac

OpenMP is available as part of LLVM. You may need to install in with:

brew install llvm libomp

DiviK Installation

Having prerequisites installed, one can install latest base version of the package:

pip install divik

or any stable tagged version, e.g.:

pip install divik==2.5.7

If you want to have compatibility with gin-config, you can install necessary extras with:

pip install divik[gin]

Note: Remember about \ before [ and ] in zsh shell.

References

This software is part of contribution made by Data Mining Group of Silesian University of Technology, rest of which is published here.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

divik-2.5.7.tar.gz (88.9 kB view hashes)

Uploaded Source

Built Distributions

divik-2.5.7-cp38-cp38-win_amd64.whl (143.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

divik-2.5.7-cp38-cp38-manylinux1_x86_64.whl (203.3 kB view hashes)

Uploaded CPython 3.8

divik-2.5.7-cp38-cp38-macosx_10_13_x86_64.whl (135.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.13+ x86-64

divik-2.5.7-cp37-cp37m-win_amd64.whl (143.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

divik-2.5.7-cp37-cp37m-manylinux1_x86_64.whl (202.8 kB view hashes)

Uploaded CPython 3.7m

divik-2.5.7-cp37-cp37m-macosx_10_13_x86_64.whl (135.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.13+ x86-64

divik-2.5.7-cp36-cp36m-win_amd64.whl (143.7 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

divik-2.5.7-cp36-cp36m-manylinux1_x86_64.whl (202.8 kB view hashes)

Uploaded CPython 3.6m

divik-2.5.7-cp36-cp36m-macosx_10_13_x86_64.whl (135.4 kB view hashes)

Uploaded CPython 3.6m macOS 10.13+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page