Ejemplo n.º 1
0
        public override ILearnAlgorithmConf getConf(int CountFeatures)
        {
            ILearnAlgorithmConf result = new NullConfForAll();

            result.Init(CountFeatures);
            return(result);
        }
Ejemplo n.º 2
0
        public override ILearnAlgorithmConf getConf(int CountFeatures) // Создание класса конфигураатора для вашего метода
        {
            ILearnAlgorithmConf result = new NullConfForAll();

            result.Init(CountFeatures);
            return(result);
        }
Ejemplo n.º 3
0
 public ILearnAlgorithmConf Set_learn_algorothm(int numAlgorithm, int typeAlgorithm)
 {
     if (Learn_algoritm_type[numAlgorithm] != typeAlgorithm - 1)
     {
         Learn_algoritm_type[numAlgorithm] = typeAlgorithm - 1;
         if (Learn_algoritm_type[numAlgorithm] < 0)
         {
             Learn_algorithm_conf[numAlgorithm] = new NullConfForAll();
         }
         else
         {
             Learn_algorithm_conf[numAlgorithm] = AllMethods.InstanceOfTune[Learn_algoritm_type[numAlgorithm]].getConf(learnSet.CountVars);
         }
     }
     return(Learn_algorithm_conf[numAlgorithm]);
 }
Ejemplo n.º 4
0
 public IGeneratorConf Set_add_generator_algorothm(int numAlgorithm, int typeAlgorithm)
 {
     if (Rules_generator_type[numAlgorithm] != typeAlgorithm - 1)
     {
         Rules_generator_type[numAlgorithm] = typeAlgorithm - 1;
         if (typeAlgorithm == 0 || ((typeAlgorithm - 1) >= AllMethods.InstanceOfInit.Count))
         {
             Rules_generator_conf[numAlgorithm] = new NullConfForAll();
         }
         else
         {
             Rules_generator_conf[numAlgorithm] = AllMethods.InstanceOfInit[typeAlgorithm - 1].getConf(learnSet.CountVars);
         }
     }
     return(Rules_generator_conf[numAlgorithm]);
 }