public DiscoverViewModel(MainViewModel main) { Main = main; Features = new ObservableCollection<BitmapImage>(); Main.PropertyChanged += new PropertyChangedEventHandler(Main_PropertyChanged); }
public DreamViewModel(MainViewModel main) { this.Main = main; this.Dreams = new ObservableCollection<Sample>(); this.NumberOfImages = 24; this.Initialize(); }
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); }
public UseViewModel(MainViewModel main) { Main = main; PropertyChanged += new PropertyChangedEventHandler(UseViewModel_PropertyChanged); }