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

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


public class AROWTest extends ClassifierTest {

  @Test
  public void testWithNand() {
    List<Instance<Boolean>> samples = Datasets.generatedNandInstances(100);
    double error = this.eval(new AROWClassifier(), samples);
    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 testWithGaussianData() {
    double error = this.eval(new AROWClassifier(), 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 AROWClassifier(), Datasets.getSpamSamples());
    assertTrue("Error " + error + " is to big!", error <= 0.1);
  }
View Full Code Here

TOP

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

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.