public BICScoringFunction(BayesianNetwork network, RecordFile recordFile, LogLikelihoodCalculator llc, Constraints constraints) { this.network = network; this.llc = llc; this.constraints = constraints; baseComplexityPenalty = Math.Log(recordFile.Size()) / 2; }
public ScoreCalculator(ScoringFunction scoringFunction, int maxParents, int variableCount, int runningTime, Constraints constraints) { this.scoringFunction = scoringFunction; this.maxParents = maxParents; this.variableCount = variableCount; this.runningTime = runningTime; this.constraints = constraints; }
public BDeuScoringFunction(double ess, BayesianNetwork network, ADTree adTree, Constraints constraints) { this.network = network; this.adTree = adTree; this.constraints = constraints; this.ess = ess; for (int x = 0; x < network.Size(); x++) { Scratch s = new Scratch(); s.Variable = x; s.Lri = Math.Log(network.GetCardinality(x)); s.invalidParents = new HashSet<ulong>(); scratchSpace.Add(s); } }