UMAP clustering in Ruby

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • umap

    Uniform Manifold Approximation and Projection

  • Uniform Manifold Approximation and Projection (UMAP) is a well-known dimensionality reduction method along with t-SNE.

  • Rumale

    Rumale is a machine learning library in Ruby

  • Ruby users often use Rumale for machine learning. t-SNE is included in Rumale, but UMAP is not.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • umappp

    UMAP C++ implementation

  • Since the Ruby language is a relatively minor language in the field of data analysis, it is often the case that a library that implements what you want to do does not exist. In such cases, you can look for libraries in languages such as C or Rust to build Ruby bindings. GitHub's search allows you to search for code by language. This can be used to find libraries for C. Since GitHub allows tagging of projects, searching for the target tag can also be helpful. However, UMAP seems to be difficult to implement, and I could not find a C library that implements UMAP. Instead, we found a library that implements UMAP in C++. That is Umappp.

  • ruby-umappp

    Uniform Manifold Approximation and Projection for Ruby

  • GitHub: https://github.com/kojix2/ruby-umappp

  • uwot

    An R package implementing the UMAP dimensionality reduction method.

  • Umappp is a C++ library implemented by Aaron Lun. it is developed based on the R library uwot. it is implemented in C++ and uses OpenMP, so high performance is expected.

  • rice

    Ruby Interface for C++ Extensions

  • There are two ways to write Ruby extensions in C++. One is Rice and the other is extpp. In this case, I used Rice because I wanted to use numo.hpp to link Numo::NArray and C++.

  • extpp

    C++ Ruby extension API

  • There are two ways to write Ruby extensions in C++. One is Rice and the other is extpp. In this case, I used Rice because I wanted to use numo.hpp to link Numo::NArray and C++.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • numo.hpp

    C++ header for Numo and Rice

  • There are two ways to write Ruby extensions in C++. One is Rice and the other is extpp. In this case, I used Rice because I wanted to use numo.hpp to link Numo::NArray and C++.

  • numo-narray

    Ruby/Numo::NArray - New NArray class library

  • There are two ways to write Ruby extensions in C++. One is Rice and the other is extpp. In this case, I used Rice because I wanted to use numo.hpp to link Numo::NArray and C++.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts