public override IGeneratorConf getConf(int CountFeatures)
        {
            IGeneratorConf result = new InitEveryoneWithEveryone();

            result.Init(CountFeatures);
            return(result);
        }
Exemple #2
0
 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);
     Approx_learn_set = new SampleSet(file_learn);
     Console.WriteLine("Tra create");
     Approx_test_set = new SampleSet(file_test);
     Console.WriteLine("Tst create");
     conf = new InitEveryoneWithEveryone();
     conf.Init(Approx_learn_set.CountVars);
     fill_conf();
     Console.WriteLine("Conf Filed");
     Approx_Singletone = new SAFuzzySystem(Approx_learn_set, Approx_test_set);
     Console.WriteLine("Classifier created");
     generator         = new GeneratorRulesEveryoneWithEveryone();
     Approx_Singletone = generator.Generate(Approx_Singletone, conf) as SAFuzzySystem;
     Console.WriteLine("Gereration complite");
     SAFSUFSWriter.saveToUFS(Approx_Singletone, file_out);
     Console.WriteLine("Saved");
     return(1);
 }