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);
  }
Exemplo n.º 2
0
 /**
  * Generates a simple exemplar of this class to test serialization.
  *
  * @see TetradSerializableUtils
  */
 public static TsFciRunner2 serializableInstance() {
   return new TsFciRunner2(Dag.serializableInstance(), new Parameters());
 }
Exemplo n.º 3
0
 /** 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());
 }
Exemplo n.º 4
0
 /**
  * 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());
 }
Exemplo n.º 5
0
 /**
  * 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());
 }
Exemplo n.º 6
0
 /**
  * Generates a simple exemplar of this class to test serialization.
  *
  * @see TetradSerializableUtils
  */
 public static FciRunner serializableInstance() {
   return new FciRunner(Dag.serializableInstance(), FciSearchParams.serializableInstance());
 }