public NeuralNetworkDefaultData(NeuralNetworkDefault nrlNet) { Id = nrlNet.Id; ActivationFuncName = FuncDictionary.GetFuncName(nrlNet.ActivationFunc) ?? "Unknown function"; Layers = nrlNet.Layers; Weights = nrlNet.Weigths; }
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); }
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); }