Example usage for weka.datagenerators.classifiers.classification RandomRBF RandomRBF

List of usage examples for weka.datagenerators.classifiers.classification RandomRBF RandomRBF

Introduction

In this page you can find the example usage for weka.datagenerators.classifiers.classification RandomRBF RandomRBF.

Prototype

public RandomRBF() 

Source Link

Document

initializes the generator with default values

Usage

From source file:com.reactivetechnologies.analytics.core.eval.CombinerDatasetGenerator.java

License:Open Source License

@PostConstruct
private void init() {
    try {//www  . ja  va 2s .co  m
        ArffLoader loader = new ArffLoader();
        File f = ResourceUtils.getFile(dummyFile);
        loader.setFile(f);
        log.info("Reading file [" + f + "] for creating evaluation dataset");
        instances = loader.getDataSet();
    } catch (Exception e) {
        log.error("EvaluationDatasetGenerator::init [ " + e.getMessage() + "] Will go with a dummy dataset. ");
        log.debug("", e);
        try {
            instances = new RandomRBF().generateExamples();
        } catch (Exception e1) {
            log.debug("", e);
        }
    }
    instances.setClassIndex(instances.numAttributes() - 1);
}