public void LoadConfig() { ActivationFunction.Helper.FillComboBox(CtlActivationFunc, Config, Const.Param.ActivationFunc, nameof(ActivationFunction.LogisticSigmoid)); CtlActivationFuncParamA.Load(Config); StateChanged(); }
private void LoadConfig() { ActivationFunction.Helper.FillComboBox(CtlActivationFunc, Config, Const.Param.ActivationFunc, nameof(ActivationFunction.None)); CtlInitial0.Load(Config); CtlInitial1.Load(Config); CtlActivationFuncParamA.Load(Config); var neurons = Config.GetArray(Const.Param.Neurons); Range.ForEach(neurons, n => AddBias(n)); }
public void LoadConfig() { InitializeMode.Helper.FillComboBox(CtlWeightsIniter, Config, Const.Param.WeightsInitializer, nameof(InitializeMode.None)); CtlWeightsIniterParamA.Load(Config); CtlIsBias.Checked = Config.GetBool(Const.Param.IsBias, false); CtlIsBiasConnected.Visible = CtlIsBias.Checked; CtlIsBiasConnected.Checked = CtlIsBias.Checked && Config.GetBool(Const.Param.IsBiasConnected, false); CtlActivationPanel.Visible = CtlIsBias.Checked; InitializeMode.Helper.FillComboBox(CtlActivationIniter, Config, Const.Param.ActivationInitializer, nameof(InitializeMode.Constant)); CtlActivationIniterParamA.Load(Config); ActivationFunction.Helper.FillComboBox(CtlActivationFunc, Config, Const.Param.ActivationFunc, nameof(ActivationFunction.LogisticSigmoid)); CtlActivationFuncParamA.Load(Config); StateChanged(); }