Giter Club home page Giter Club logo

d-cube's Introduction

D-Cube
============
usage: python dcube.py <number_of_blocks> <density_measure> <policy>

D-Cube Using SQL

STEPS TO RUN
============
1. Follow the steps in http://www.cs.cmu.edu/~christos/courses/826.S17/getting-started-with-postgresql.html till you
successfully create a db with "createdb $USER". Please remember to set the port in dcube_params.py and use the same
port when you do "export PGPORT=XXXXX".

2. Make sure python 2.7 is installed in the system. This software also requires psycopg2 library to run.

3. Before you start the software, make sure you download the darpa.csv from
http://www.cs.cmu.edu/~christos/courses/826-resources/DATA-SETS-graphs/datasets/

4. Type "make demo" to see a default run with arithmetic density measure and select-by-density policy.

IMPORTANT
=========
1. Now the results of D-Cube is stored in the database after execution as table "B_ori_i" for i-th block.
2. Now the software only works with darpa.csv.
3. The database is not stopped after execution, please remember to stop it according to the commands provided at
http://www.cs.cmu.edu/~christos/courses/826.S17/getting-started-with-postgresql.html.
4. The data of the detected blocks will be printed out during the execution. If you would like to check the contents of
detected blocks, do not stop the database and type "psql -d $USER" and then type "SELECT * FROM B_ori_i" where i is the
index of the block that you would like to check.

d-cube's People

Watchers

 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.