net.myrrix.web
Class AllRecommendations

java.lang.Object
  extended by net.myrrix.web.AllRecommendations
All Implemented Interfaces:
Callable<Object>

public final class AllRecommendations
extends Object
implements Callable<Object>

A simple command-line program that will compute recommendations for all users. It does not start an instance of the Serving Layer that responds to requests via HTTP. Instead it performs all computations locally, in bulk. This may be useful to create a simple batch recommendation process when that is all that's needed.

Results are written to System.out. Each user ID is written on line to start. Following that, recommendations are written in item,value format on subsequent lines. The next user ID follows and so on.

Example usage:

java -Xmx2g -cp myrrix-serving-x.y.jar net.myrrix.web.AllRecommendations --localInputDir=[work dir] --howMany=[# recs] --rescorerProviderClass=[your class]

Author:
Sean Owen
See Also:
AllItemSimilarities

Constructor Summary
AllRecommendations(AllConfig config)
           
 
Method Summary
 Object call()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllRecommendations

public AllRecommendations(AllConfig config)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

call

public Object call()
            throws InterruptedException,
                   net.myrrix.common.NotReadyException,
                   ExecutionException
Specified by:
call in interface Callable<Object>
Throws:
InterruptedException
net.myrrix.common.NotReadyException
ExecutionException


Copyright © 2012. All Rights Reserved.