public class ExMakerFixedSize extends Object
Constructor and Description |
---|
ExMakerFixedSize(Examples examples) |
ExMakerFixedSize(Examples examples,
boolean randomize) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static String |
pickOneRandomly(String[] from) |
Examples |
select(int both)
same as select(int,int)
uses both times the same number
|
Examples |
select(int nrOfPos,
int nrOfNeg)
returns a new example object based on ALL (train and test) examples in the old set
picks a fixed number of examples, puts them into training sets, rest to test set
|
public ExMakerFixedSize(Examples examples)
public ExMakerFixedSize(Examples examples, boolean randomize)
public Examples select(int both)
both
- public Examples select(int nrOfPos, int nrOfNeg)
nrOfPos
- nrOfNeg
- public static String pickOneRandomly(String[] from)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann