org.gersteinlab.incrna
Class ExperimentsRunner
java.lang.Object
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
|
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 |
classifierNames
public static final java.lang.String[] classifierNames
ExperimentsRunner
public ExperimentsRunner()
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 modeltestSet - The testing set, may contain columns not used in trainingtrimmedTestSet - The testing set, without any columns not used in trainingpw - 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 modeltestInstance - The testing instance, may contain columns not used in trainingtrimmedTestInstance - The testing instance, without any columns not used in trainingpw - 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