use of edu.cmu.tetrad.data.Knowledge2 in project tetrad by cmu-phil.
the class VcpcFastRunner method execute.
// ===================PUBLIC METHODS OVERRIDING ABSTRACT================//
public void execute() {
IKnowledge knowledge = (IKnowledge) getParams().get("knowledge", new Knowledge2());
Parameters searchParams = getParams();
Parameters params = searchParams;
VcpcFast fvcpc = new VcpcFast(getIndependenceTest());
fvcpc.setKnowledge(knowledge);
fvcpc.setAggressivelyPreventCycles(this.isAggressivelyPreventCycles());
fvcpc.setDepth(params.getInt("depth", -1));
if (independenceFactsModel != null) {
fvcpc.setFacts(independenceFactsModel.getFacts());
}
Graph graph = fvcpc.search();
if (getSourceGraph() != null) {
GraphUtils.arrangeBySourceGraph(graph, getSourceGraph());
} else if (knowledge.isDefaultToKnowledgeLayout()) {
SearchGraphUtils.arrangeByKnowledgeTiers(graph, knowledge);
} else {
GraphUtils.circleLayout(graph, 200, 200, 150);
}
setResultGraph(graph);
setVcpcFastFields(fvcpc);
}
use of edu.cmu.tetrad.data.Knowledge2 in project tetrad by cmu-phil.
the class VcpcFastRunner method getMeekRules.
public ImpliedOrientation getMeekRules() {
MeekRules meekRules = new MeekRules();
meekRules.setAggressivelyPreventCycles(this.isAggressivelyPreventCycles());
meekRules.setKnowledge((IKnowledge) getParams().get("knowledge", new Knowledge2()));
return meekRules;
}
use of edu.cmu.tetrad.data.Knowledge2 in project tetrad by cmu-phil.
the class PcLocalRunner method getMeekRules.
public ImpliedOrientation getMeekRules() {
MeekRules rules = new MeekRules();
rules.setAggressivelyPreventCycles(isAggressivelyPreventCycles());
rules.setKnowledge((IKnowledge) getParams().get("knowledge", new Knowledge2()));
return rules;
}
use of edu.cmu.tetrad.data.Knowledge2 in project tetrad by cmu-phil.
the class VcpcAltRunner method getMeekRules.
public ImpliedOrientation getMeekRules() {
MeekRules meekRules = new MeekRules();
meekRules.setAggressivelyPreventCycles(this.isAggressivelyPreventCycles());
meekRules.setKnowledge((IKnowledge) getParams().get("knowledge", new Knowledge2()));
return meekRules;
}
use of edu.cmu.tetrad.data.Knowledge2 in project tetrad by cmu-phil.
the class VcpcRunner method getMeekRules.
public ImpliedOrientation getMeekRules() {
MeekRules meekRules = new MeekRules();
meekRules.setAggressivelyPreventCycles(this.isAggressivelyPreventCycles());
meekRules.setKnowledge((IKnowledge) getParams().get("knowledge", new Knowledge2()));
return meekRules;
}
Aggregations