public override void SaveConfig() { Config.Set(Const.Param.ActivationFunc, CtlActivationFunc.SelectedItem.ToString()); CtlInitial0.Save(Config); CtlInitial1.Save(Config); CtlActivationFuncParamA.Save(Config); var neurons = GetNeuronsControls().Where(n => n.IsBias); Config.Set(Const.Param.Neurons, neurons.Select(n => n.Id)); Range.ForEach(neurons, n => n.SaveConfig()); }
public override void SaveConfig() { if (CtlIsBias.Checked) { Config.Set(Const.Param.ActivationInitializer, CtlActivationIniter.SelectedItem.ToString()); CtlActivationIniterParamA.Save(Config); } else { Config.Remove(Const.Param.ActivationInitializer); CtlActivationIniterParamA.Vanish(Config); } Config.Set(Const.Param.WeightsInitializer, CtlWeightsIniter.SelectedItem.ToString()); CtlWeightsIniterParamA.Save(Config); Config.Set(Const.Param.ActivationFunc, CtlActivationFunc.SelectedItem.ToString()); CtlActivationFuncParamA.Save(Config); Config.Set(Const.Param.IsBias, CtlIsBias.Checked); Config.Set(Const.Param.IsBiasConnected, CtlIsBias.Checked && CtlIsBiasConnected.Checked); }
public override void SaveConfig() { Config.Set(Const.Param.ActivationFunc, CtlActivationFunc.SelectedItem.ToString()); CtlActivationFuncParamA.Save(Config); }