public final class LabelledDataGenerator extends Object
Modifier and Type | Method and Description |
---|---|
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
binarySparseTrainTest() |
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
binarySparseTrainTest(double negate)
Generates a pair of datasets with sparse features and unknown features
in the test data.
|
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
denseTrainTest() |
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
denseTrainTest(double negate)
Generates a train/test dataset pair which is dense in the features,
each example has 4 features,{A,B,C,D}, and there are 4 classes,
{Foo,Bar,Baz,Quux}.
|
static Example<Label> |
emptyExample()
Generates an example with no features.
|
static Example<Label> |
invalidSparseExample()
Generates an example with the feature ids 1,5,8, which does not intersect with the
ids used elsewhere in this class.
|
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
sparseTrainTest() |
static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> |
sparseTrainTest(double negate)
Generates a pair of datasets, where the features are sparse,
and unknown features appear in the test data.
|
public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> denseTrainTest()
public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> denseTrainTest(double negate)
negate
- Supply -1.0 to insert some negative values into the dataset.public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> sparseTrainTest()
public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> sparseTrainTest(double negate)
negate
- Supply -1.0 to negate some values in this dataset.public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> binarySparseTrainTest()
public static com.oracle.labs.mlrg.olcut.util.Pair<Dataset<Label>,Dataset<Label>> binarySparseTrainTest(double negate)
negate
- Supply -1.0 to negate some values in this dataset.public static Example<Label> invalidSparseExample()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.