@Test public void tcFeatures() { TcFeature mockFeature = Mockito.mock(TcFeature.class); builder.features(mockFeature); assertEquals(1, builder.featureSets.size()); assertEquals(mockFeature, builder.featureSets.get(0).get(0)); }
public ExperimentBuilder features(TcFeature... features) { if (features == null) { throw new NullPointerException("The features are null"); } this.featureSets = new ArrayList<>(); TcFeatureSet set = new TcFeatureSet(); for (TcFeature f : features) { set.add(f); } this.featureSets.add(set); return this; }
ExperimentBuilder extends AbstractBuilder { public ExperimentBuilder features(TcFeature... features) { if (features == null) { throw new NullPointerException("The features are null"); } this.featureSets = new ArrayList<>(); TcFeatureSet set = new TcFeatureSet(); for (TcFeature f : features) { set.add(f); } this.featureSets.add(set); return this; } }
ExperimentBuilder extends AbstractBuilder { public ExperimentBuilder features(TcFeature... features) { if (features == null) { throw new NullPointerException("The features are null"); } this.featureSets = new ArrayList<>(); TcFeatureSet set = new TcFeatureSet(); for (TcFeature f : features) { set.add(f); } this.featureSets.add(set); return this; } ExperimentBuilder(); }
ExperimentBuilder extends AbstractBuilder { public ExperimentBuilder features(TcFeature... features) { if (features == null) { throw new NullPointerException("The features are null"); } this.featureSets = new ArrayList<>(); TcFeatureSet set = new TcFeatureSet(); for (TcFeature f : features) { set.add(f); } this.featureSets.add(set); return this; } ExperimentBuilder(); ExperimentBuilder machineLearningBackend(MLBackend... backends); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override ParameterSpace getParameterSpace(); ExperimentBuilder featureSets(TcFeatureSet... featureSet); ExperimentBuilder featureFilter(String... filter); ExperimentBuilder features(TcFeature... features); @Override ExperimentBuilder dataReaderTrain(CollectionReaderDescription reader); @Override ExperimentBuilder dataReaderTest(CollectionReaderDescription reader); @Override ExperimentBuilder learningMode(LearningMode learningMode); @Override ExperimentBuilder featureMode(FeatureMode featureMode); @Override ExperimentBuilder learningCurveLimit(int learningCurveLimit); @Override ExperimentBuilder experiment(ExperimentType type, String experimentName); @Override ExperimentBuilder reports(ReportBase... reports); @Override ExperimentBuilder preprocessing(AnalysisEngineDescription preprocessing); @Override ExperimentBuilder numFolds(int numFolds); @Override ExperimentBuilder name(String experimentName); ExperimentBuilder bipartitionThreshold(double threshold); Experiment_ImplBase build(); @Override ExperimentBuilder outputFolder(String filePath); @Override ExperimentBuilder outputFolder(File file); }
ExperimentBuilder extends AbstractBuilder { public ExperimentBuilder features(TcFeature... features) { if (features == null) { throw new NullPointerException("The features are null"); } this.featureSets = new ArrayList<>(); TcFeatureSet set = new TcFeatureSet(); for (TcFeature f : features) { set.add(f); } this.featureSets.add(set); return this; } ExperimentBuilder(); ExperimentBuilder machineLearningBackend(MLBackend... backends); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override ParameterSpace getParameterSpace(); ExperimentBuilder featureSets(TcFeatureSet... featureSet); ExperimentBuilder featureFilter(String... filter); ExperimentBuilder features(TcFeature... features); @Override ExperimentBuilder dataReaderTrain(CollectionReaderDescription reader); @Override ExperimentBuilder dataReaderTest(CollectionReaderDescription reader); @Override ExperimentBuilder learningMode(LearningMode learningMode); @Override ExperimentBuilder featureMode(FeatureMode featureMode); @Override ExperimentBuilder learningCurveLimit(int learningCurveLimit); @Override ExperimentBuilder experiment(ExperimentType type, String experimentName); @Override ExperimentBuilder reports(ReportBase... reports); @Override ExperimentBuilder preprocessing(AnalysisEngineDescription preprocessing); @Override ExperimentBuilder numFolds(int numFolds); @Override ExperimentBuilder name(String experimentName); ExperimentBuilder bipartitionThreshold(double threshold); Experiment_ImplBase build(); @Override ExperimentBuilder outputFolder(String filePath); @Override ExperimentBuilder outputFolder(File file);  }