@Test(expected = ArgumentNullException.class) public void testBuild_WithNullDataSet() throws Exception { getLearner().build(null); }
public final void build(MultiLabelInstances trainingSet) throws Exception { if (trainingSet == null) { throw new ArgumentNullException("trainingSet"); } isModelInitialized = false; numLabels = trainingSet.getNumLabels(); labelIndices = trainingSet.getLabelIndices(); labelNames = trainingSet.getLabelNames(); featureIndices = trainingSet.getFeatureIndices(); buildInternal(trainingSet); isModelInitialized = true; }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final void build(MultiLabelInstances trainingSet) throws Exception { if (trainingSet == null) { throw new ArgumentNullException("trainingSet"); } isModelInitialized = false; numLabels = trainingSet.getNumLabels(); labelIndices = trainingSet.getLabelIndices(); labelNames = trainingSet.getLabelNames(); featureIndices = trainingSet.getFeatureIndices(); buildInternal(trainingSet); isModelInitialized = true; } }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final void build(MultiLabelInstances trainingSet) throws Exception { if (trainingSet == null) { throw new ArgumentNullException("trainingSet"); } isModelInitialized = false; numLabels = trainingSet.getNumLabels(); labelIndices = trainingSet.getLabelIndices(); labelNames = trainingSet.getLabelNames(); featureIndices = trainingSet.getFeatureIndices(); buildInternal(trainingSet); isModelInitialized = true; }  }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final void build(MultiLabelInstances trainingSet) throws Exception { if (trainingSet == null) { throw new ArgumentNullException("trainingSet"); } isModelInitialized = false; numLabels = trainingSet.getNumLabels(); labelIndices = trainingSet.getLabelIndices(); labelNames = trainingSet.getLabelNames(); featureIndices = trainingSet.getFeatureIndices(); buildInternal(trainingSet); isModelInitialized = true; }  boolean isUpdatable(); final void build(MultiLabelInstances trainingSet); final MultiLabelOutput makePrediction(Instance instance); void setDebug(boolean debug); boolean getDebug(); MultiLabelLearner makeCopy(); abstract TechnicalInformation getTechnicalInformation(); }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final void build(MultiLabelInstances trainingSet) throws Exception { if (trainingSet == null) { throw new ArgumentNullException("trainingSet"); } isModelInitialized = false; numLabels = trainingSet.getNumLabels(); labelIndices = trainingSet.getLabelIndices(); labelNames = trainingSet.getLabelNames(); featureIndices = trainingSet.getFeatureIndices(); buildInternal(trainingSet); isModelInitialized = true; }  boolean isUpdatable(); final void build(MultiLabelInstances trainingSet); final MultiLabelOutput makePrediction(Instance instance); void setDebug(boolean debug); boolean getDebug(); MultiLabelLearner makeCopy(); abstract TechnicalInformation getTechnicalInformation();  }