GithubHelp home page GithubHelp logo

ml-ai-nlp-ir / in-memory-cooccurrence Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tdunning/in-memory-cooccurrence

0.0 1.0 0.0 207 KB

Analyze for significant cooccurrence using Mahout sparse matrices

in-memory-cooccurrence's Introduction

in-memory-cooccurrence

Analyze occurrence data for significant cooccurrence using Mahout sparse matrices. This is a single threaded illustration of some of the algorithms used in Mahout. The point of this is to illustrate the algorithms in a simple form and to allow small problems (up to say a billion occurrences) to be computed without having to go to the trouble of setting up a Hadoop cluster.

To compile and package this code into a single jar, use this command

mvn package

To run the analyzer on a file f,

java -jar target/in-memory-cooccurrence-0.1-SNAPSHOT-jar-with-dependencies.jar f

To work on larger files, add a heap size adjustment such as -Xmx40G.

Testing

Before running the scale tests, you will need to generate the data for the tests. This will take some time for larger data sets.

To generate data with about 10^n1 and 10^n2 data points, use this command:

java -cp target/in-memory-cooccurrence-0.1-SNAPSHOT-jar-with-dependencies.jar com.tdunning.cooc.GenerateData n1 n2

You can include as many scale values as you like.

in-memory-cooccurrence's People

Contributors

tdunning avatar atamburo avatar

Watchers

James Cloos 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.