Package org.integratedmodelling.riskwiz.jtree

Examples of org.integratedmodelling.riskwiz.jtree.JTInference.run()


            inference.initialize(network, new JoinTreeCompiler(), deb);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        inference.run();
        // output inference results
        System.out.println("Marginals After IInference  \n");
     
        Set<BNNode> nodes1 = network.vertexSet();
View Full Code Here


        inference.setObservation(node1, "false");
        // much better way to do just the same as in last two lines
        // inference.setObservation("Cloudy", "false");
     
     
        inference.run();

        System.out.println("Marginals After IInference  \n");
        for (BNNode node : nodes) {
            System.out.println(
                    node.getName() + ":\n" + node.getMarginal().toString()
View Full Code Here

            PT de = TableFactory.createObservation(node1.getDiscretizedDomain(),
                    "false");

            // normally this is better to use   for seting evidence, there is easy way with observations
            inference.setEvidence("Cloudy", de);
            inference.run();
            Set<BNNode> nodes = network.vertexSet();

            for (BNNode node : nodes) {
                System.out.println(
                        node.getName() + ":\n" + node.getMarginal().toString()
View Full Code Here

            PT de1 = TableFactory.createObservation(node1.getDiscretizedDomain(),
                    "false");

            // normally this is better to use   for seting evidence, there is easy way with observations
            inference.setEvidence("Cloudy", de1);
            inference.run();
            for (BNNode node : nodes) {
                System.out.println(
                        node.getName() + ":\n" + node.getMarginal().toString()
                        + "\n");
            }
View Full Code Here

            }
            // here is how we clear evidence, after this the probability for each
            // value
            // is taken from the specified CPF
            inference.retractEvidence("Cloudy");
            inference.run();
            System.out.println("IInference Results after clearing the evidence");
            for (BNNode node : nodes) {
                System.out.println(
                        node.getName() + ":\n" + node.getMarginal().toString()
                        + "\n");
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.