Exemplo n.º 1
0
  @Test
  public void testGetResultFeatureCount_noPostProcessor() {
    final VariableContext variableContext = createVariableContext();
    final BinManager binManager =
        new BinManager(variableContext, new AggregatorAverageML(variableContext, "e", null));

    final int featureCount = binManager.getResultFeatureCount();
    assertEquals(4, featureCount);
  }
Exemplo n.º 2
0
  @Test
  public void testGetResultFeatureCount_withPostProcessor() {
    final VariableContext variableContext = createVariableContext();
    final FeatureSelection.Config ppSelection = new FeatureSelection.Config("f_max");

    final BinManager binManager =
        new BinManager(variableContext, ppSelection, new AggregatorMinMax(variableContext, "f"));

    final int featureCount = binManager.getResultFeatureCount();
    assertEquals(1, featureCount);
  }