Giter Site home page Giter Site logo

dimsum's Introduction

Welcome

Hello, you've reached DIMSUM, a school project realized at ENSAE in February 2017.

The objective is to compute singular values and similarities between columns of big matrices, inspired by http://stanford.edu/~rezab/papers/dimsum.pdf

For such a purpose, we will use distributed frameworks like Hadoop and Spark.

Requirements

  • Java 8
  • Hadoop 2.7
  • Spark 1.6.0

To run the following commands, it is assumed the reader has a functioning Hadoop/Spark cluster of machines.

Usage

In any case, please:

git clone https://github.com/antisrdy/dimsum
cd dimsum

Hadoop

Naive implementation

To run the naive computation of A.TA (dot products), please run:

python take_off.py m n naive

m and n being the number of rows and columns respectively.

DIMSUM implementation

This subsection explains how to run the algorithm in a distributed fashion, from scratch:

  • Generation of a large sparse matrix
  • Computation of cosine similarities via Hadoop jobs (DIMSUM algorithm)
  • Comparison with true values

To execute all this, please run:

python take_off.py m n

Spark

To run the implementation of DIMSUM in spark for computing column similarities, please run :

./spark/bin/spark-submit \
--master spark://master-ip \
--conf spark.eventLog.enabled=true \
--conf spark.eventLog.dir="/tmp" \
--packages "com.amazonaws:aws-java-sdk:1.7.4,org.apache.hadoop:hadoop-aws:2.7.1" \
--executor-memory 13g \
--driver-memory 13g  \
--class DIMSUM_ENSAE.Job ./spark/spark.jar

dimsum's People

Contributors

satyavsarma avatar antisrdy avatar

Watchers

James Cloos avatar  avatar

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.