public void AddModel(NetModelBase paModel, DataSetModel paTrainingDataSet, GpuCard paGpuCard) { var model = new TrainingModel(paModel, paTrainingDataSet, paGpuCard); model.PropertyChanged += ModelOnPropertyChanged; TrainingModels.Add(model); }
public override INetwork GetNetwork(GpuCard paGpuCard, DataSetModel paDataSetModel) { var model = this.GenerateModel().ConfigurationModel; try { model.ValidateModel(); return(model.GenerateNetwork()); } catch (Exception) { return(null); } }
public override INetwork GetNetwork(GpuCard paGpuCard, DataSetModel paDataSetModel) { if (DataSetMetaData.IsCompatible(paDataSetModel.MetaData) == false) { return(null); } if (paGpuCard != null) { ConfigurationModel.UseGpuCard(paGpuCard); } var network = ConfigurationModel.GenerateNetwork(); GeneratedNetworkType = ConfigurationModel.NetworkTypeName; return(network); }
public override INetwork GetNetwork(GpuCard paGpuCard, DataSetModel paDataSetModel) { var metaData = paDataSetModel.MetaData; var model = (NeuralNetConfigurationModel)ConfigurationModel.Clone(); model.InitInputAndOutput(metaData.Width, metaData.Height, metaData.Deep, metaData.OutputSize); if (paGpuCard != null && paGpuCard is NullGpu == false) { model.UseGpuCard(paGpuCard); } var network = model.GenerateNetwork(); GeneratedNetworkType = model.NetworkTypeName; return(network); }
public abstract INetwork GetNetwork(GpuCard paGpuCard, DataSetModel paDataSetModel);
public override INetwork GetNetwork(GpuCard paGpuCard, DataSetModel dataSetModel) { throw new System.NotImplementedException(); }