Encog.App.Analyst.Wizard.AnalystWizard.GenerateFeedForward C# (CSharp) Method

GenerateFeedForward() private method

Generate a feed forward machine learning method.
private GenerateFeedForward ( int inputColumns ) : void
inputColumns int The input column count.
return void
        private void GenerateFeedForward(int inputColumns)
        {
            var hidden = (int) ((inputColumns)*1.5d);
            _script.Properties.SetProperty(
                ScriptProperties.MlConfigType,
                MLMethodFactory.TypeFeedforward);

            if (_range == NormalizeRange.NegOne2One)
            {
                _script.Properties.SetProperty(
                    ScriptProperties.MlConfigArchitecture,
                    "?:B->TANH->" + hidden + ":B->TANH->?");
            }
            else
            {
                _script.Properties.SetProperty(
                    ScriptProperties.MlConfigArchitecture,
                    "?:B->SIGMOID->" + hidden + ":B->SIGMOID->?");
            }

            _script.Properties.SetProperty(ScriptProperties.MlTrainType,
                                          "rprop");
            _script.Properties.SetProperty(
                ScriptProperties.MlTrainTargetError, DefaultTrainError);
        }