@Test public void reports() throws IllegalStateException, Exception { CollectionReaderDescription readerMock = Mockito.mock(CollectionReaderDescription.class); TcShallowLearningAdapter adapterMock = Mockito.mock(TcShallowLearningAdapter.class); MLBackend mlBackend = new MLBackend(adapterMock); TcFeature featureMock = Mockito.mock(TcFeature.class); TcFeatureSet set = new TcFeatureSet(featureMock); builder.experiment(ExperimentType.TRAIN_TEST, "trainTest") .dataReaderTrain(readerMock) .dataReaderTest(readerMock) .reports(new TrainTestReport(), new TrainTestReport()) .featureMode(FeatureMode.DOCUMENT) .learningMode(LearningMode.REGRESSION) .featureSets(set) .machineLearningBackend(mlBackend) .build(); assertEquals(2, builder.reports.size()); }
@Override public ExperimentBuilder reports(ReportBase... reports) { super.reports(reports); return this; }
ExperimentBuilder extends AbstractBuilder { @Override public ExperimentBuilder reports(ReportBase... reports) { super.reports(reports); return this; } }
ExperimentBuilder extends AbstractBuilder { @Override public ExperimentBuilder reports(ReportBase... reports) { super.reports(reports); return this; } ExperimentBuilder(); }
ExperimentBuilder extends AbstractBuilder { @Override public ExperimentBuilder reports(ReportBase... reports) { super.reports(reports); 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 { @Override public ExperimentBuilder reports(ReportBase... reports) { super.reports(reports); 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);  }