|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.SampleDatasets
public class SampleDatasets
Some sample inputs for learners.
Field Summary | |
---|---|
static java.lang.String[] |
negTest
|
static java.lang.String[] |
negTrain
|
static java.lang.String[] |
posTest
|
static java.lang.String[] |
posTrain
|
Constructor Summary | |
---|---|
SampleDatasets()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
static Dataset |
makeLogisticRegressionData(java.util.Random rand,
int m,
double a,
double b)
Data useful for testing univariate logistic regression. |
static Dataset |
makeNumericData(java.util.Random r,
int dim,
int m)
Random data, defined by a simple boolean combination of thresholds over two dimensions, with up to 5 irrelevant dimensions, and m examples. |
static Dataset |
makeSparseNumericData(java.util.Random r,
int m)
Sparse numeric data - some values are 1.0, and some are zero. |
static Dataset |
makeToy3ClassData(java.util.Random random,
int numInstances)
Makes a sample 3 class dataset |
static SequenceDataset |
makeToySequenceData()
|
static SequenceDataset |
makeToySequenceData(java.lang.String[] lines)
|
static SequenceDataset |
makeToySequenceTestData()
|
static Dataset |
sampleData(java.lang.String name,
boolean isTest)
|
static Dataset |
toyBayesExtremeTest()
|
static Dataset |
toyBayesExtremeTrain()
|
static Dataset |
toyBayesExtremeUnlabeledTrain()
|
static Dataset |
toyBayesTest()
Test data for a trivial classification problem. |
static Dataset |
toyBayesTrain()
Training data for a trivial classification problem. |
static Dataset |
toyTest()
Test data for a trivial classification problem. |
static Dataset |
toyTrain()
Training data for a trivial classification problem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] posTrain
public static final java.lang.String[] negTrain
public static final java.lang.String[] posTest
public static final java.lang.String[] negTest
Constructor Detail |
---|
public SampleDatasets()
Method Detail |
---|
public static Dataset toyTrain()
public static Dataset toyTest()
public static Dataset toyBayesExtremeTrain()
public static Dataset toyBayesExtremeTest()
public static Dataset toyBayesExtremeUnlabeledTrain()
public static Dataset toyBayesTrain()
public static Dataset toyBayesTest()
public static Dataset makeSparseNumericData(java.util.Random r, int m)
public static Dataset makeNumericData(java.util.Random r, int dim, int m)
public static Dataset makeLogisticRegressionData(java.util.Random rand, int m, double a, double b)
public static SequenceDataset makeToySequenceData()
public static SequenceDataset makeToySequenceTestData()
public static SequenceDataset makeToySequenceData(java.lang.String[] lines)
public static Dataset makeToy3ClassData(java.util.Random random, int numInstances)
random
- A random number generator for building the dataset.numInstances
- The number of instances to be created.public static Dataset sampleData(java.lang.String name, boolean isTest)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |