public NeuralNetworkDefaultData(NeuralNetworkDefault nrlNet)
 {
     Id = nrlNet.Id;
     ActivationFuncName = FuncDictionary.GetFuncName(nrlNet.ActivationFunc) ?? "Unknown function";
     Layers             = nrlNet.Layers;
     Weights            = nrlNet.Weigths;
 }
示例#2
0
        public NetworkDataModel GetNetworkData()
        {
            var data = new NetworkDataModel
            {
                ActivationFuncName = FuncDictionary.GetFuncName(ActivationFunc),
                Id           = Id,
                Layers       = Layers,
                LearningRate = LearningRate,
                Name         = Name,
                Weights      = Weigths,
                Generation   = Generation,
                StorageId    = StorageId
            };

            return(data);
        }
示例#3
0
        public NetworkVM GetViewModel()
        {
            NetworkVM networkVM = new NetworkVM(this)
            {
                Id           = Id.ToString(),
                Layers       = new ObservableCollection <NetworkLayerVM>(Layers.ToLayerViewModels()),
                CurrentFunc  = FuncDictionary.GetFuncName(ActivationFunc),
                LearningRate = LearningRate,
                Name         = Name,
                IsPrototype  = false,
                Generation   = Generation,
                Storageid    = StorageId.ToString()
            };

            return(networkVM);
        }