예제 #1
0
        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());
        }
예제 #2
0
        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);
        }
예제 #3
0
 public override void SaveConfig()
 {
     Config.Set(Const.Param.ActivationFunc, CtlActivationFunc.SelectedItem.ToString());
     CtlActivationFuncParamA.Save(Config);
 }