private void findBayesNetObserved() { Dag dagObs = new Dag(graph); for (Node node : nodes) { if (node.getNodeType() == NodeType.LATENT) { dagObs.removeNode(node); } } bayesPmObs = new BayesPm(dagObs, bayesPm); // System.out.println("bayesPm after deleting edges involving latents:"); // System.out.println(bayesPmObs); // Graph g = bayesPmObs.getDag(); // System.out.println(g); }
/** * Generates a simple exemplar of this class to test serialization. * * @see TetradSerializableUtils */ public static TsFciRunner2 serializableInstance() { return new TsFciRunner2(Dag.serializableInstance(), new Parameters()); }
/** Generates a simple exemplar of this class to test serialization. */ public static GeneralizedSemPm serializableInstance() { Dag dag = new Dag(); GraphNode node1 = new GraphNode("X"); dag.addNode(node1); return new GeneralizedSemPm(Dag.serializableInstance()); }
/** * Generates a simple exemplar of this class to test serialization. * * @see edu.cmu.TestSerialization * @see edu.cmu.tetradapp.util.TetradSerializableUtils */ public static TFciGesRunner serializableInstance() { return new TFciGesRunner(Dag.serializableInstance(), FciGesSearchParams.serializableInstance()); }
/** * Generates a simple exemplar of this class to test serialization. * * @see edu.cmu.TestSerialization * @see TetradSerializableUtils */ public static VcpcAltRunner serializableInstance() { return new VcpcAltRunner(Dag.serializableInstance(), PcSearchParams.serializableInstance()); }
/** * Generates a simple exemplar of this class to test serialization. * * @see TetradSerializableUtils */ public static FciRunner serializableInstance() { return new FciRunner(Dag.serializableInstance(), FciSearchParams.serializableInstance()); }