/// <summary> /// Creates a new RandomVariableSimulator instance /// </summary> /// <param name="model">The model for which a bayesian network will be learned</param> /// <param name="stepBounds">The maximal number of steps for a trace in a simulation step</param> /// <param name="pathForGeneratedFiles">Path to use for generated file creation</param> /// <param name="config">BayesianLearningConfiguration for further optional settings</param> public RandomVariableSimulator(ModelBase model, int stepBounds, string pathForGeneratedFiles, BayesianLearningConfiguration?config = null) { _config = config ?? BayesianLearningConfiguration.Default; _model = model; _stepBounds = stepBounds; _pathForGeneratedFiles = pathForGeneratedFiles; }
public OnDemandProbabilityDistributionCalculator(ModelBase model, ICollection <RandomVariable> variables, int stepBounds, double tolerance, BayesianLearningConfiguration?config = null) { _config = config ?? BayesianLearningConfiguration.Default; _randomVariables = variables.ToList(); _probs = new Dictionary <int, Probability>(); _stepBounds = stepBounds; _model = model; _tolerance = tolerance; if (!string.IsNullOrWhiteSpace(_config.ProbabilityDeserializationFilePath)) { DeserializeProbabilities(); } }
/// <summary> /// Creates a new IndependencyCalculator /// </summary> /// <param name="probCalculator">Provider for probability distributions</param> /// <param name="tolerance">Tolerance level for double calculations</param> /// <param name="config">BayesianLearningConfiguration object for optional settings</param> public IndependencyCalculator(IProbabilityDistributionCalculator probCalculator, double tolerance, BayesianLearningConfiguration?config = null) { _config = config ?? BayesianLearningConfiguration.Default; _probCalculator = probCalculator; _tolerance = tolerance; }
/// <summary> /// Creates a new ScoreBasedStructureLearner instance /// </summary> /// <param name="dataFiles">Path to the data files</param> /// <param name="pathToUse">Path where further files are created</param> /// <param name="config">BayesianLearningConfiguration for further optional settings</param> public ScoreBasedStructureLearner(IList <string> dataFiles, string pathToUse, BayesianLearningConfiguration?config = null) { _dataFiles = dataFiles; _path = pathToUse; _config = config ?? BayesianLearningConfiguration.Default; }
public BayesianNetworkCreator(ModelBase model, int stepBounds, BayesianLearningConfiguration?config = null) { Config = config ?? BayesianLearningConfiguration.Default; _model = model; _stepBounds = stepBounds; }