Пример #1
0
        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;
            }
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
 public LearningTask(string id, IObservationSet trainingSet, LearningOptions options)
 {
     Id          = id;
     TrainingSet = trainingSet;
     Options     = options;
 }
Пример #6
0
 public LearningTask(string id, IObservationSet trainingSet, LearningOptions options)
 {
     Id = id;
     TrainingSet = trainingSet;
     Options = options;
 }