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) |
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 © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.