Package org.encog.ml.bayesian.query.sample

Examples of org.encog.ml.bayesian.query.sample.SamplingQuery.execute()


    SamplingQuery query = new SamplingQuery(network);
    query.defineEventType(a, EventType.Evidence);
    query.defineEventType(b, EventType.Outcome);
    query.setEventValue(b, true);
    query.setEventValue(a, true);
    query.execute();
    testPercent(query.getProbability(),20);
  }
 
  public void testSampling2() {
    BayesianNetwork network = new BayesianNetwork();
View Full Code Here


    query.defineEventType(a, EventType.Outcome);
    query.setEventValue(a, true);
    query.setEventValue(x1, true);
    query.setEventValue(x2, true);
    query.setEventValue(x3, false);
    query.execute();
    testPercent(query.getProbability(),18);
  }
 
  public void testSampling3() {
    BayesianNetwork network = new BayesianNetwork();
View Full Code Here

    SamplingQuery query = new SamplingQuery(network);
    query.defineEventType(x1, EventType.Evidence);
    query.defineEventType(x3, EventType.Outcome);
    query.setEventValue(x1, true);
    query.setEventValue(x3, true);
    query.execute();
    testPercent(query.getProbability(),50);
  }
 
 
}
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.