Example usage for edu.stanford.nlp.classify GeneralDataset split

List of usage examples for edu.stanford.nlp.classify GeneralDataset split

Introduction

In this page you can find the example usage for edu.stanford.nlp.classify GeneralDataset split.

Prototype

public abstract Pair<GeneralDataset<L, F>, GeneralDataset<L, F>> split(double fractionSplit);

Source Link

Document

Divide out a (devtest) split from the start of the dataset and the rest of it (as a training set).

Usage

From source file:gr.aueb.cs.nlp.wordtagger.classifier.SVMWindows64Factory.java

License:Open Source License

public void heldOutSetC(GeneralDataset<L, F> train, double percentHeldOut, final Scorer<L> scorer,
        LineSearcher minimizer) {//from w w  w  . j  a  v a  2s . c  o  m
    Pair<GeneralDataset<L, F>, GeneralDataset<L, F>> data = train.split(percentHeldOut);
    heldOutSetC(data.first(), data.second(), scorer, minimizer);
}