public override IGeneratorConf getConf(int CountFeatures) { IGeneratorConf result = new InitEveryoneWithOptimal(); result.Init(CountFeatures); return(result); }
public override int Run(string[] args) { Console.WriteLine("Start"); fill_params(args); Console.WriteLine("Params get \nfile tra {0} \nfile name tst {1} ", file_learn, file_test); Class_learn_set = new SampleSet(file_learn); Console.WriteLine("Tra create"); Class_test_set = new SampleSet(file_test); Console.WriteLine("Tst create"); conf = new InitEveryoneWithOptimal(); conf.Init(Class_learn_set.CountVars); conf.loadParams(confParams); Console.WriteLine("Conf Filed"); Class_Pittsburg = new PCFuzzySystem(Class_learn_set, Class_test_set); Console.WriteLine("Classifier created"); generator = new GeneratorRulesEveryoneWithOptimal(); Class_Pittsburg = generator.Generate(Class_Pittsburg, conf) as PCFuzzySystem; Console.WriteLine("Gereration complite"); PCFSUFSWriter.saveToUFS(Class_Pittsburg, file_out); Console.WriteLine("Saved"); return(1); }