net.myrrix.web
Class AllItemSimilarities

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

public final class AllItemSimilarities
extends Object
implements Callable<Object>

A simple command-line program that will compute most similar items for all items. 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 item ID is written on line to start. Following that, similar items are written in item,value format on subsequent lines. The next item ID follows and so on.

Example usage:

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

Author:
Sean Owen
See Also:
AllRecommendations

Constructor Summary
AllItemSimilarities(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

AllItemSimilarities

public AllItemSimilarities(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.