Main View-Model for the application.
Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
        public DiscoverViewModel(MainViewModel main)
        {
            Main = main;
            Features = new ObservableCollection<BitmapImage>();

            Main.PropertyChanged += new PropertyChangedEventHandler(Main_PropertyChanged);
        }
Exemplo n.º 2
0
 public DreamViewModel(MainViewModel main)
 {
     this.Main = main;
     this.Dreams = new ObservableCollection<Sample>();
     this.NumberOfImages = 24;
     this.Initialize();
 }
Exemplo n.º 3
0
        public LearnViewModel(MainViewModel main)
        {
            this.Main = main;

            SelectedLayerIndex = 1;

            LearningRate = 0.1;
            WeightDecay = 0.001;
            Momentum = 0.9;
            Epochs = 50;
            BatchSize = 100;

            if (System.ComponentModel.LicenseManager.UsageMode == LicenseUsageMode.Designtime)
                HasLearned = true;

            Sets = new[] { Set.Training, Set.Testing };
            CurrentSet = Set.Testing;

            ErrorPoints = new Series();
            ErrorPoints.ChartType = SeriesChartType.Line;

            this.PropertyChanged += new PropertyChangedEventHandler(LearnViewModel_PropertyChanged);
            Main.PropertyChanged += new PropertyChangedEventHandler(Main_PropertyChanged);
        }
Exemplo n.º 4
0
        public UseViewModel(MainViewModel main)
        {
            Main = main;

            PropertyChanged += new PropertyChangedEventHandler(UseViewModel_PropertyChanged);
        }