@Test(expected = ModelInitializationException.class) public void testMakePrediction_BeforeBuild() throws Exception { MultiLabelInstances mlDataSet = DataSetBuilder.CreateDataSet(DATA_SET); getLearner().makePrediction(mlDataSet.getDataSet().firstInstance()); }
public final MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException { if (instance == null) { throw new ArgumentNullException("instance"); } if (!isModelInitialized()) { throw new ModelInitializationException("The model has not been trained."); } return makePredictionInternal(instance); }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException { if (instance == null) { throw new ArgumentNullException("instance"); } if (!isModelInitialized()) { throw new ModelInitializationException("The model has not been trained."); } return makePredictionInternal(instance); } }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException { if (instance == null) { throw new ArgumentNullException("instance"); } if (!isModelInitialized()) { throw new ModelInitializationException("The model has not been trained."); } return makePredictionInternal(instance); }  }
MultiLabelLearnerBase implements TechnicalInformationHandler, MultiLabelLearner, Serializable { public final MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException { if (instance == null) { throw new ArgumentNullException("instance"); } if (!isModelInitialized()) { throw new ModelInitializationException("The model has not been trained."); } return makePredictionInternal(instance); }  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 MultiLabelOutput makePrediction(Instance instance) throws Exception, InvalidDataException, ModelInitializationException { if (instance == null) { throw new ArgumentNullException("instance"); } if (!isModelInitialized()) { throw new ModelInitializationException("The model has not been trained."); } return makePredictionInternal(instance); }  boolean isUpdatable(); final void build(MultiLabelInstances trainingSet); final MultiLabelOutput makePrediction(Instance instance); void setDebug(boolean debug); boolean getDebug(); MultiLabelLearner makeCopy(); abstract TechnicalInformation getTechnicalInformation();  }