Package weka.filters.unsupervised.instance

Examples of weka.filters.unsupervised.instance.RemovePercentage


        dataSubSet.randomize(random);
        // Remove a percentage of the instances
  Instances originalDataSubSet = dataSubSet;
  dataSubSet.randomize(random);
        RemovePercentage rp = new RemovePercentage();
        rp.setPercentage( m_RemovedPercentage );
        rp.setInputFormat( dataSubSet );
        dataSubSet = Filter.useFilter( dataSubSet, rp );
  if( dataSubSet.numInstances() < 2 ) {
    dataSubSet = originalDataSubSet;
  }
View Full Code Here

TOP

Related Classes of weka.filters.unsupervised.instance.RemovePercentage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.