public class RandomExampleSelector extends Object implements ExampleSelector
m examples from a
Dataset according to a random selection policy.| Constructor and Description |
|---|
RandomExampleSelector(int m) |
RandomExampleSelector(int m,
int randomSeed) |
| Modifier and Type | Method and Description |
|---|---|
int |
getM() |
int |
getRandomSeed() |
List<Example> |
select(Dataset dataset)
This function allows to select a subset of
Examples from the
input Dataset |
public RandomExampleSelector(int m)
m - The number of Examples to be selected.public RandomExampleSelector(int m,
int randomSeed)
m - The number of Examples to be selected.randomSeed - The seed of the Random selection.public int getM()
Examples to be selected.public int getRandomSeed()
public List<Example> select(Dataset dataset)
ExampleSelectorExamples from the
input Datasetselect in interface ExampleSelectordataset - A dataset to select Examples from.Examples.Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.