Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public abstract INetwork GetNetwork(GpuCard paGpuCard, DataSetModel paDataSetModel);
Ejemplo n.º 6
0
 public override INetwork GetNetwork(GpuCard paGpuCard, DataSetModel dataSetModel)
 {
     throw new System.NotImplementedException();
 }