Examples of calculateGainFor()


Examples of aima.core.learning.framework.DataSet.calculateGainFor()

  }

  @Test
  public void testGainCalculation() throws Exception {
    DataSet ds = DataSetFactory.getRestaurantDataSet();
    double gain = ds.calculateGainFor("patrons");
    Assert.assertEquals(0.541, gain, 0.001);
    gain = ds.calculateGainFor("type");
    Assert.assertEquals(0.0, gain, 0.001);
  }
}
View Full Code Here

Examples of aima.core.learning.framework.DataSet.calculateGainFor()

  @Test
  public void testGainCalculation() throws Exception {
    DataSet ds = DataSetFactory.getRestaurantDataSet();
    double gain = ds.calculateGainFor("patrons");
    Assert.assertEquals(0.541, gain, 0.001);
    gain = ds.calculateGainFor("type");
    Assert.assertEquals(0.0, gain, 0.001);
  }
}
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.