|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.experiments.Expt
public class Expt
Simple experiment on a classifier.
Constructor Summary | |
---|---|
Expt(ClassifierLearner learner,
Dataset trainData,
Dataset testData)
|
|
Expt(ClassifierLearner learner,
Dataset trainData,
Splitter<Example> splitter)
|
|
Expt(java.lang.String[] args)
Convert a set of command-line arguments to an 'experiment' Examples: -learn \"new NaiveBayes()\" -train sample:toy -split k10 (k-fold CV) -learn \"new PoissonLearner()\" -train sample:toy -split s10 (stratified s-fold CV) -learn \"new AdaBoost(new DecisionTreeLearner())\" -train file:foo.data -split r70 -learn \"new AdaBoost()\" -train seqfile:foo.data -split r70 |
Method Summary | ||
---|---|---|
CrossValidatedDataset |
crossValidatedDataset(boolean saveTrain)
|
|
Evaluation |
evaluation()
|
|
Classifier |
getClassifier()
|
|
CommandLineProcessor |
getCLP()
Produce a command-line processor that configures this object. |
|
static void |
main(java.lang.String[] args)
|
|
static Dataset |
toDataset(java.lang.String datasetName)
Decode dataset names. |
|
static ClassifierLearner |
toLearner(java.lang.String learnerName)
Decode learner name, which should be a legitimate java constructor, e.g. |
|
static Splitter<Example> |
toSplitter(java.lang.String splitterName)
|
|
static
|
toSplitter(java.lang.String splitterName,
java.lang.Class<T> clazz)
Decode splitter names. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Expt(ClassifierLearner learner, Dataset trainData, Dataset testData)
public Expt(ClassifierLearner learner, Dataset trainData, Splitter<Example> splitter)
public Expt(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public CommandLineProcessor getCLP()
CommandLineProcessor.Configurable
getCLP
in interface CommandLineProcessor.Configurable
public Evaluation evaluation()
public CrossValidatedDataset crossValidatedDataset(boolean saveTrain)
public Classifier getClassifier()
public java.lang.String toString()
toString
in class java.lang.Object
public static <T> Splitter<T> toSplitter(java.lang.String splitterName, java.lang.Class<T> clazz)
public static Splitter<Example> toSplitter(java.lang.String splitterName)
public static Dataset toDataset(java.lang.String datasetName) throws java.io.IOException
java.io.IOException
public static ClassifierLearner toLearner(java.lang.String learnerName)
new NaiveBayes()
.
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |