org.mymedialite.io.kddcup2011
Class Track2Items

java.lang.Object
  extended by org.mymedialite.io.kddcup2011.Track2Items

public class Track2Items
extends java.lang.Object

Class that offers static methods for reading in test data from the KDD Cup 2011 files.


Constructor Summary
Track2Items()
           
 
Method Summary
static java.util.HashMap<java.lang.Integer,int[]> read(java.io.BufferedReader reader)
          Read track 2 candidates from a TextReader.
static java.util.HashMap<java.lang.Integer,int[]> read(java.lang.String filename)
          Read track 2 candidates from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Track2Items

public Track2Items()
Method Detail

read

public static java.util.HashMap<java.lang.Integer,int[]> read(java.lang.String filename)
                                                       throws java.io.IOException
Read track 2 candidates from a file.

Parameters:
filename - the name of the file to read from
Returns:
the candidates
Throws:
java.io.IOException

read

public static java.util.HashMap<java.lang.Integer,int[]> read(java.io.BufferedReader reader)
                                                       throws java.io.IOException
Read track 2 candidates from a TextReader.

Parameters:
reader - the to read from
Returns:
the candidates
Throws:
java.io.IOException