public class OzaBagML extends OzaBag implements MultiLabelLearner, MultiTargetRegressor
baseLearnerOption, ensemble, ensembleSizeOption
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
OzaBagML() |
Modifier and Type | Method and Description |
---|---|
static Prediction |
combinePredictions(Prediction[] predictions,
Instance inst) |
static Prediction |
compilePredictions(Classifier[] h,
Example example) |
static double[] |
compileVotes(Classifier[] h,
Instance inst) |
Prediction |
getPredictionForInstance(Example<Instance> example) |
Prediction |
getPredictionForInstance(MultiLabelInstance instance) |
double[] |
getVotesForInstance(Instance inst)
Predicts the class memberships for a given instance.
|
void |
trainOnInstanceImpl(MultiLabelInstance inst) |
getModelDescription, getModelMeasurementsImpl, getPurposeString, getSubClassifiers, isRandomizable, resetLearningImpl, trainOnInstanceImpl
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, correctlyClassifies, getPredictionForInstance, getSubClassifiers, trainOnInstance
getModel, getModelContext, getModelMeasurements, getSublearners, getVotesForInstance, isRandomizable, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
getAWTRenderer
public void trainOnInstanceImpl(MultiLabelInstance inst)
trainOnInstanceImpl
in interface MultiLabelLearner
public Prediction getPredictionForInstance(Example<Instance> example)
getPredictionForInstance
in interface Learner<Example<Instance>>
getPredictionForInstance
in class AbstractClassifier
public static Prediction compilePredictions(Classifier[] h, Example example)
public static Prediction combinePredictions(Prediction[] predictions, Instance inst)
public double[] getVotesForInstance(Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class OzaBag
inst
- the instance to be classifiedpublic static double[] compileVotes(Classifier[] h, Instance inst)
public Prediction getPredictionForInstance(MultiLabelInstance instance)
getPredictionForInstance
in interface MultiLabelLearner
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.