Package com.github.pmerienne.trident.ml.classification

Examples of com.github.pmerienne.trident.ml.classification.BWinnowClassifier


public class BWinnowTest extends ClassifierTest {

  @Test
  public void testWithGaussianData() {
    double error = this.eval(new BWinnowClassifier(), Datasets.generateDataForClassification(1000, 10));
    assertTrue("Error " + error + " is to big!", error < 0.05);
  }
View Full Code Here


    assertTrue("Error " + error + " is to big!", error < 0.05);
  }

  @Test
  public void testWithSPAMData() {
    double error = this.eval(new BWinnowClassifier(), Datasets.getSpamSamples());
    assertTrue("Error " + error + " is to big!", error < 0.05);
  }
View Full Code Here

TOP

Related Classes of com.github.pmerienne.trident.ml.classification.BWinnowClassifier

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.