public void SetTrainingSet(IObservationSet set) { _trainingSet = set; if (_trainingSet == null) { xTrainingSetSource.Text = "(none)"; xButtonLearn.IsEnabled = false; } else { xTrainingSetSource.Text = string.Format("{0} ({1})", set.Name, set.SourceUri); xButtonLearn.IsEnabled = true; } }
internal void RequestTraining(IObservationSet trainingSet, LearningOptions options) { if (trainingSet == null) { throw new ArgumentNullException(); } ILearningTask learningTask = new LearningTask( Guid.NewGuid().ToString(), trainingSet, options); learningTask.BayesianNetworkStarted += OnLearningStarted; learningTask.BayesianNetworkFinished += OnLearningFinished; Model.LearningTasks.Clear(); Model.LearningTasks.Add(learningTask); xLearningInspector.SetIsLearning(true); }
public LearningTask(string id, IObservationSet trainingSet, LearningOptions options) { Id = id; TrainingSet = trainingSet; Options = options; }