Пример #1
0
        public override ILearnAlgorithmConf getConf(int CountFeatures)
        {
            ILearnAlgorithmConf result = new grbin_conf();

            result.Init(CountFeatures);
            return(result);
        }
Пример #2
0
        public void init(IFuzzySystem FSystem, ILearnAlgorithmConf conf)
        {
            theFuzzySystem = FSystem;
            grbin_conf Config = conf as grbin_conf;

            Ebest         = Config.GSAErrorBest;
            Ebest1        = Ebest;
            iterMax       = Config.GSAMInter;
            MCount        = Config.GSAMCount;
            G0            = Config.GSAG0;
            alpha         = Config.GSAAlpha;
            epsilon       = Config.GSAEpsilon;
            open_Features = Config.GSAMaxVars;
            max_Features  = FSystem.CountFeatures;
            test          = new List <bool[]>();
            Errors        = new List <double>();
            BestSolute    = new bool[FSystem.AcceptedFeatures.Count()];
            GoodSolute    = new bool[FSystem.AcceptedFeatures.Count()];
            Solute        = new bool[FSystem.AcceptedFeatures.Count()];
            Storage       = new List <FeatureSelectionModel>();
            SortWay       = Config.GSASortWay;
        }