Git Product home page Git Product logo

treewand's Introduction

main(String args[]) function is in /exec/online.java 

There are 4 arguments needed:


1. Config.depth - the same as in fastSim, natural length of graph expansion


2. k - the number of topK results to generate


3. Config.correctionLevel - the level of correction, the same as in fastSim


4. Config.delta - the upperbound of the total error of all topK node pairs' score caused by an approximation algorithm. The larger this value is, the faster the algorithm runs but less accurate.



There are additional parameters defined in /util/Config.java:


1. epsilon - threshold to discard a value in P matrix, an immediate step of calculating the 


2. alpha - damping factor, the same as in fastSim


3. numRepetitions - the number of repeating simRank calculation. The running time in the output file will be the total running time divided by numRepetitions


4. nodeFile - the file containing all the node id’s


5. edgeFile - the file containing all the edges


6. outputDir - the directory to store all the output files



All of the parameters can be initialized in Config.java file. They can be modified by a separate properties file, whose name is specified in line 23 as File f = new File("config.properties"); 

A separate file with the name “config_AP_baseline_dblp.properties” is provided as an example.

However, the arguments passed into main function will override the values defined in properties file.

treewand's People

Contributors

fastsim2016 avatar

Watchers

 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.