Example usage for weka.filters.unsupervised.instance Randomize setRandomSeed

List of usage examples for weka.filters.unsupervised.instance Randomize setRandomSeed

Introduction

In this page you can find the example usage for weka.filters.unsupervised.instance Randomize setRandomSeed.

Prototype

public void setRandomSeed(int newRandomSeed) 

Source Link

Document

Set the random number generator seed value.

Usage

From source file:clases.Preproceso.java

public static Instances randomize(Instances data) throws Exception {
    Randomize ran = new Randomize();
    ran.setRandomSeed(42);
    ran.setInputFormat(data);/*from  w w  w  . j  a v a 2s .c  o  m*/
    return Filter.useFilter(data, ran);
}