test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/selection/cv/CrossValidationTest.java
test_class.identifier: CrossValidationTest
test_case.body: @Test
      public void testScoreWithGoodDataset() {
          Map<Integer, double[]> data = new HashMap<>();
  
          for (int i = 0; i < 1000; i++)
              data.put(i, new double[] {i > 500 ? 1.0 : 0.0, i});
  
          DecisionTreeClassificationTrainer trainer = new DecisionTreeClassificationTrainer(1, 0);
  
          DebugCrossValidation<DecisionTreeNode, Double, Integer, double[]> scoreCalculator =
              new DebugCrossValidation<>();
  
          Vectorizer<Integer, double[], Integer, Double> vectorizer = new DoubleArrayVectorizer<Integer>().labeled(Vectorizer.LabelCoordinate.FIRST);
  
          int folds = 4;
  
          scoreCalculator
              .withUpstreamMap(data)
              .withAmountOfParts(1)
              .withTrainer(trainer)
              .withMetric(new Accuracy<>())
              .withPreprocessor(vectorizer)
              .withAmountOfFolds(folds)
              .isRunningOnPipeline(false);
  
          verifyScores(folds, scoreCalculator.scoreByFolds());
      }
test_case.class_method_signature: CrossValidationTest.testScoreWithGoodDataset()
test_case.full_signature: @Test public void testScoreWithGoodDataset()
test_case.identifier: testScoreWithGoodDataset
test_case.invocations: put labeled isRunningOnPipeline withAmountOfFolds withPreprocessor withMetric withTrainer withAmountOfParts withUpstreamMap verifyScores scoreByFolds
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testScoreWithGoodDataset()
focal_class.declarator: ignite
focal_class.modifier: private
focal_class.original_string: private Ignite ignite;
focal_class.type: Ignite
focal_class.var_name: ignite
focal_class.declarator: upstreamCache
focal_class.modifier: private
focal_class.original_string: private IgniteCache<K, V> upstreamCache;
focal_class.type: IgniteCache<K, V>
focal_class.var_name: upstreamCache
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/selection/cv/CrossValidation.java
focal_class.identifier: CrossValidation
focal_class.class_method_signature: CrossValidation.scoreByFolds()
focal_class.full_signature: @Override public double[] scoreByFolds()
focal_class.identifier: scoreByFolds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] scoreByFolds()
focal_class.class_method_signature: CrossValidation.scorePipelineOnIgnite()
focal_class.full_signature: private double[] scorePipelineOnIgnite()
focal_class.identifier: scorePipelineOnIgnite
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] scorePipelineOnIgnite()
focal_class.class_method_signature: CrossValidation.scoreOnIgnite()
focal_class.full_signature: private double[] scoreOnIgnite()
focal_class.identifier: scoreOnIgnite
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] scoreOnIgnite()
focal_class.class_method_signature: CrossValidation.withIgnite(Ignite ignite)
focal_class.full_signature: public CrossValidation<M, L, K, V> withIgnite(Ignite ignite)
focal_class.identifier: withIgnite
focal_class.modifiers: public
focal_class.parameters: (Ignite ignite)
focal_class.return: CrossValidation<M, L, K, V>
focal_class.signature: CrossValidation<M, L, K, V> withIgnite(Ignite ignite)
focal_class.class_method_signature: CrossValidation.withUpstreamCache(IgniteCache<K, V> upstreamCache)
focal_class.full_signature: public CrossValidation<M, L, K, V> withUpstreamCache(IgniteCache<K, V> upstreamCache)
focal_class.identifier: withUpstreamCache
focal_class.modifiers: public
focal_class.parameters: (IgniteCache<K, V> upstreamCache)
focal_class.return: CrossValidation<M, L, K, V>
focal_class.signature: CrossValidation<M, L, K, V> withUpstreamCache(IgniteCache<K, V> upstreamCache)
focal_class.superclass: extends AbstractCrossValidation<M, L, K, V>
focal_method.body: @Override public double[] scoreByFolds() {
          double[] locScores;
  
          locScores = isRunningOnPipeline ? scorePipelineOnIgnite() : scoreOnIgnite();
  
          return locScores;
      }
focal_method.class_method_signature: CrossValidation.scoreByFolds()
focal_method.full_signature: @Override public double[] scoreByFolds()
focal_method.identifier: scoreByFolds
focal_method.invocations: scorePipelineOnIgnite scoreOnIgnite
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: double[]
focal_method.signature: double[] scoreByFolds()