GithubHelp home page GithubHelp logo

vspinu / simdist Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 1008 KB

High performance similarity and distance metrics for sparse representations

R 55.01% C++ 44.99%
similarity-measures r-package rcpp sparse-matrices

simdist's Introduction

Build Status CRAN RStudio mirror downloads Development version CRAN version

High performance distances and similarities for various dense and sparse representations with primary focus on applications in NLP and recommender systems.

Supported and Planned Object Types

  • matrix from base R
  • dgCMatrix, dgRMatrix and dgTMatrix from Matrix package
  • simple_triplet_matrix from slam package
  • data.frames in primary-secondary-value (psv) format
  • list of named numeric or character vectors

Distances for 2D Representations

matrix dgCMatrix dgRMatrix dgTMatrix slam psv list
cosine
euclidean
mahalanobis
jaccard

Aggregation Distances for 3D Representations

dgCMatrix dgRMatrix dgTMatrix slam psv list
centroid
semantic_min_max1
semantic_min_sum2

[1] More commonly known as "Relaxed Word Mover Distance" (RWMD) proposed in Kusner et. al. ‘From Word Embeddings To Document Distances’ (2015).

[2] Similar to RWMD measure, proposed in Mihalcea et.al. 'Corpus-Based and Knowledge-Based Measures of Text Semantic Similarity' (2006)

Transformations

norm_l1, norm_l2.

simdist's People

Contributors

vspinu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

simdist's Issues

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.