org.gersteinlab.incrna
Class ExperimentsRunner

java.lang.Object
  extended by org.gersteinlab.incrna.ExperimentsRunner

public class ExperimentsRunner
extends java.lang.Object

        This class performs the prediction of ncRNAs.
        

Version:
1.0 (March 25, 2009)
        Change History:
        1.0     - Initial version
        
Author:
Kevin Yuk-Lap Yip

Field Summary
static java.lang.String[] classifierNames
           
 
Constructor Summary
ExperimentsRunner()
           
 
Method Summary
protected static void logPrediction(weka.classifiers.Classifier classifier, weka.core.Instance testInstance, weka.core.Instance trimmedTestInstance, java.io.PrintWriter pw)
          Make prediction on a test instance using a trained model, and log the prediction to a log file.
protected static void logPredictions(weka.classifiers.Classifier classifier, weka.core.Instances testSet, weka.core.Instances trimmedTestSet, java.io.PrintWriter pw)
          Make predictions on a testing set using a trained model, and log the predictions to a log file.
static void main(java.lang.String[] argv)
           
protected static void printLogHeader(weka.core.Instances metaData, java.io.PrintWriter pw)
          Print the header of the log file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classifierNames

public static final java.lang.String[] classifierNames
Constructor Detail

ExperimentsRunner

public ExperimentsRunner()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

logPredictions

protected static void logPredictions(weka.classifiers.Classifier classifier,
                                     weka.core.Instances testSet,
                                     weka.core.Instances trimmedTestSet,
                                     java.io.PrintWriter pw)
                              throws java.lang.Exception
Make predictions on a testing set using a trained model, and log the predictions to a log file.

Parameters:
classifier - The trained model
testSet - The testing set, may contain columns not used in training
trimmedTestSet - The testing set, without any columns not used in training
pw - A print writer to the log file
Throws:
java.lang.Exception

logPrediction

protected static void logPrediction(weka.classifiers.Classifier classifier,
                                    weka.core.Instance testInstance,
                                    weka.core.Instance trimmedTestInstance,
                                    java.io.PrintWriter pw)
                             throws java.lang.Exception
Make prediction on a test instance using a trained model, and log the prediction to a log file.

Parameters:
classifier - The trained model
testInstance - The testing instance, may contain columns not used in training
trimmedTestInstance - The testing instance, without any columns not used in training
pw - A print writer to the log file
Throws:
java.lang.Exception

printLogHeader

protected static void printLogHeader(weka.core.Instances metaData,
                                     java.io.PrintWriter pw)
Print the header of the log file.

Parameters:
metaData - An instance set that contains the meta data. Can use the whole data set if available.
pw - A print writer to the log file