Giter VIP home page Giter VIP logo

gagolews / genieclust Goto Github PK

View Code? Open in Web Editor NEW
55.0 7.0 9.0 68.11 MB

Genie: Fast and Robust Hierarchical Clustering with Noise Point Detection - in Python and R

Home Page: https://genieclust.gagolewski.com

License: Other

Python 21.35% C++ 39.54% Makefile 0.68% R 8.90% Batchfile 0.11% Smarty 0.01% TeX 1.71% CSS 5.84% HTML 0.99% Cython 20.47% Shell 0.41%
clustering-algorithm cluster-analysis python3 hdbscan python machine-learning-algorithms nmslib mlpack sparse hierarchical-clustering-algorithm

genieclust's Introduction

My research interests include machine learning, data aggregation and clustering, computational and applied statistics, and mathematical modelling (the science of science, sport, economics, social sciences, psychometrics, bibliometrics, etc.).

In my spare time, I write books for my students and develop open-source data analysis software.

Open-access textbooks

Software

Python packages

R packages

  • stringi – Fast and portable character string processing in R (one of the most often downloaded packages for R) (GitHub) (CRAN) (paper)
  • genieclust – Fast and robust hierarchical clustering with noise point detection (GitHub) (CRAN) (paper)
  • stringx – Drop-in replacements for base R string functions powered by stringi (GitHub) (CRAN)
  • realtest – Where expectations meet reality: Realistic unit testing in R (GitHub) (CRAN)
  • TurtleGraphics – Learn computer programming in R while having a jolly time! (GitHub) (CRAN)

Data

genieclust's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

genieclust's Issues

OWA-based linkages

Add support for the "smoothed" single linkage (OWAs over few nearest neighbours) as described in our manuscript submitted for publication in Information Sciences.

new_merge + tests

seek first pair of sets that yields g <= threshold, otherwise, choose arg min g

cache intermediate results to make the next call to fit() faster

Computing mst_dist, mst_ind is the slowest part

Getting nn_dist, nn_ind (needed to compute d_core before mst_dist, mst_ind) is also slow (M>1)

compute_full_tree, postprocess, gini_threshold, n_clusters are only applied after mst_dist, mst_ind are computed

Changing X, M, affinity, cast_float32, exact require mst_dist, mst_ind be recomputed

However, decreasing M only does not invalidate nn_dist, nn_ind - at least d_core could be generated faster.

exception handling in rcpp

> genieclust::adjusted_rand_score(c("a", "b"), 1:2)
Not compatible with requested type: [type=character; target=integer].Aborted (core dumped)

apply_genie(), apply_gic(): return a hierarchy, not a k-partition

https://github.com/gagolews/genie/blob/master/src/hclust2_result.h
https://github.com/gagolews/genie/blob/master/src/hclust2_result.cpp

merge matrix

?hclust Value in R

 merge: an n-1 by 2 matrix.  Row i of ‘merge’ describes the merging
          of clusters at step i of the clustering.  If an element j in
          the row is negative, then observation -j was merged at this
          stage.  If j is positive then the merge was with the cluster
          formed at the (earlier) stage j of the algorithm.  Thus
          negative entries in ‘merge’ indicate agglomerations of
          singletons, and positive entries indicate agglomerations of
          non-singletons.

  height: a set of n-1 real values (non-decreasing for ultrametric
          trees).  The clustering _height_: that is, the value of the
          criterion associated with the clustering ‘method’ for the
          particular agglomeration.

   order: a vector giving the permutation of the original observations
          suitable for plotting, in the sense that a cluster plot using
          this ordering and matrix ‘merge’ will not have crossings of
          the branches.

Question: would you consider a BSD-licence?

Hi,

this is a very nice package for performing hierarchical clustering. I see that you have licenced is as GPL. At the moment a large part of the python ML community (see the scikit-* family) releases BSD-licenced libraries to allow commercial usage of code, which helps build a business ecosystem around a library. Would you consider licencing your library as BSD?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.