public override ILearnAlgorithmConf getConf(int CountFeatures) { BaggingSSO conf = new BaggingSSO(); conf.Init(CountFeatures); return(conf); }
public virtual void Init(ILearnAlgorithmConf Conf) { Config = Conf as BaggingSSO; MaxIter = ((BaggingSSO)Conf).Количество_итераций; numberOfLocalLeaders = ((BaggingSSO)Conf).Количество_лок_лидеров; numberOfAimlessParts = ((BaggingSSO)Conf).Количество_бесц_част; numberOfAllParts = ((BaggingSSO)Conf).Количество_всех_частиц; numberOfPopulations = ((BaggingSSO)Conf).Количество_популяций; ALocal = 1; BLocal = 1; AGlobal = 1; BGlobal = 1; }