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 Example
s to be selected.public RandomExampleSelector(int m, int randomSeed)
m
- The number of Example
s to be selected.randomSeed
- The seed of the Random selection.public int getM()
Example
s to be selected.public int getRandomSeed()
public List<Example> select(Dataset dataset)
ExampleSelector
Example
s from the
input Dataset
select
in interface ExampleSelector
dataset
- A dataset to select Example
s from.Example
s.Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.