test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/tree/randomforest/RandomForestClassifierTrainerTest.java
test_class.identifier: RandomForestClassifierTrainerTest
test_class.superclass: extends TrainerTest
test_case.body: @Test
      public void testFit() {
          int sampleSize = 500;
          Map<Integer, LabeledVector<Double>> sample = new HashMap<>();
          for (int i = 0; i < sampleSize; i++) {
              double x1 = i;
              double x2 = x1 / 10.0;
              double x3 = x2 / 10.0;
              double x4 = x3 / 10.0;
  
              sample.put(i, VectorUtils.of(x1, x2, x3, x4).labeled((double) i % 2));
          }
  
          ArrayList<FeatureMeta> meta = new ArrayList<>();
          for (int i = 0; i < 4; i++)
              meta.add(new FeatureMeta("", i, false));
          DatasetTrainer<ModelsComposition, Double> trainer = new RandomForestClassifierTrainer(meta)
              .withAmountOfTrees(5)
              .withFeaturesCountSelectionStrgy(x -> 2)
              .withEnvironmentBuilder(TestUtils.testEnvBuilder());
  
          ModelsComposition mdl = trainer.fit(sample, parts, new LabeledDummyVectorizer<>());
  
          assertTrue(mdl.getPredictionsAggregator() instanceof OnMajorityPredictionsAggregator);
          assertEquals(5, mdl.getModels().size());
      }
test_case.class_method_signature: RandomForestClassifierTrainerTest.testFit()
test_case.full_signature: @Test public void testFit()
test_case.identifier: testFit
test_case.invocations: put labeled of add withEnvironmentBuilder withFeaturesCountSelectionStrgy withAmountOfTrees testEnvBuilder fit assertTrue getPredictionsAggregator assertEquals size getModels
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFit()
focal_class.declarator: lblMapping = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private Map<Double, Integer> lblMapping = new HashMap<>();
focal_class.type: Map<Double, Integer>
focal_class.var_name: lblMapping
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/tree/randomforest/RandomForestClassifierTrainer.java
focal_class.identifier: RandomForestClassifierTrainer
focal_class.class_method_signature: RandomForestClassifierTrainer.RandomForestClassifierTrainer(List<FeatureMeta> meta)
focal_class.full_signature: public  RandomForestClassifierTrainer(List<FeatureMeta> meta)
focal_class.identifier: RandomForestClassifierTrainer
focal_class.modifiers: public
focal_class.parameters: (List<FeatureMeta> meta)
focal_class.signature:  RandomForestClassifierTrainer(List<FeatureMeta> meta)
focal_class.class_method_signature: RandomForestClassifierTrainer.instance()
focal_class.full_signature: @Override protected RandomForestClassifierTrainer instance()
focal_class.identifier: instance
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: RandomForestClassifierTrainer
focal_class.signature: RandomForestClassifierTrainer instance()
focal_class.class_method_signature: RandomForestClassifierTrainer.init(Dataset<EmptyContext, BootstrappedDatasetPartition> dataset)
focal_class.full_signature: @Override protected boolean init(Dataset<EmptyContext, BootstrappedDatasetPartition> dataset)
focal_class.identifier: init
focal_class.modifiers: @Override protected
focal_class.parameters: (Dataset<EmptyContext, BootstrappedDatasetPartition> dataset)
focal_class.return: boolean
focal_class.signature: boolean init(Dataset<EmptyContext, BootstrappedDatasetPartition> dataset)
focal_class.class_method_signature: RandomForestClassifierTrainer.buildComposition(List<TreeRoot> models)
focal_class.full_signature: @Override protected ModelsComposition buildComposition(List<TreeRoot> models)
focal_class.identifier: buildComposition
focal_class.modifiers: @Override protected
focal_class.parameters: (List<TreeRoot> models)
focal_class.return: ModelsComposition
focal_class.signature: ModelsComposition buildComposition(List<TreeRoot> models)
focal_class.class_method_signature: RandomForestClassifierTrainer.createImpurityHistogramsComputer()
focal_class.full_signature: @Override protected ImpurityHistogramsComputer<GiniHistogram> createImpurityHistogramsComputer()
focal_class.identifier: createImpurityHistogramsComputer
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: ImpurityHistogramsComputer<GiniHistogram>
focal_class.signature: ImpurityHistogramsComputer<GiniHistogram> createImpurityHistogramsComputer()
focal_class.class_method_signature: RandomForestClassifierTrainer.createLeafStatisticsAggregator()
focal_class.full_signature: @Override protected LeafValuesComputer<ObjectHistogram<BootstrappedVector>> createLeafStatisticsAggregator()
focal_class.identifier: createLeafStatisticsAggregator
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: LeafValuesComputer<ObjectHistogram<BootstrappedVector>>
focal_class.signature: LeafValuesComputer<ObjectHistogram<BootstrappedVector>> createLeafStatisticsAggregator()
focal_class.class_method_signature: RandomForestClassifierTrainer.withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
focal_class.full_signature: @Override public RandomForestClassifierTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
focal_class.identifier: withEnvironmentBuilder
focal_class.modifiers: @Override public
focal_class.parameters: (LearningEnvironmentBuilder envBuilder)
focal_class.return: RandomForestClassifierTrainer
focal_class.signature: RandomForestClassifierTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
focal_class.superclass: extends RandomForestTrainer<ObjectHistogram<BootstrappedVector>, GiniHistogram, RandomForestClassifierTrainer>
focal_method.body: @Override public RandomForestClassifierTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder) {
          return (RandomForestClassifierTrainer)super.withEnvironmentBuilder(envBuilder);
      }
focal_method.class_method_signature: RandomForestClassifierTrainer.withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
focal_method.full_signature: @Override public RandomForestClassifierTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
focal_method.identifier: withEnvironmentBuilder
focal_method.invocations: withEnvironmentBuilder
focal_method.modifiers: @Override public
focal_method.parameters: (LearningEnvironmentBuilder envBuilder)
focal_method.return: RandomForestClassifierTrainer
focal_method.signature: RandomForestClassifierTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)