Examples of BWinnowClassifier


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

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

    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
Copyright © 2018 www.massapi.com. 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.