|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mulan.classifier.MultiLabelLearnerBase mulan.classifier.transformation.TransformationBasedMultiLabelLearner mulan.classifier.transformation.EnsembleOfPrunedSets
public class EnsembleOfPrunedSets
Class implementing the Ensemble of Pruned Sets algorithm(EPS) . For more information, see
Read, Jesse, Pfahringer, Bernhard, Holmes, Geoff: Multi-label Classification using Ensembles of Pruned Sets. In: ICDM'08: Eighth IEEE International Conference on Data Mining, 995-1000, 2008.
@conference{Read2008, author = {Read, Jesse and Pfahringer, Bernhard and Holmes, Geoff}, booktitle = {ICDM'08: Eighth IEEE International Conference on Data Mining}, pages = {995-1000}, title = {Multi-label Classification using Ensembles of Pruned Sets}, year = {2008} }
Field Summary | |
---|---|
protected PrunedSets[] |
ensemble
The models in the ensemble |
protected int |
numOfModels
Parameter for the number of models that constitute the ensemble |
protected double |
percentage
Percentage of data |
protected Random |
rand
Random number generator |
protected double |
threshold
Parameter for the threshold of discretization of prediction output |
Fields inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner |
---|
baseClassifier |
Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
---|
featureIndices, labelIndices, numLabels |
Constructor Summary | |
---|---|
EnsembleOfPrunedSets()
Creates a new instance with default values |
|
EnsembleOfPrunedSets(double aPercentage,
int aNumOfModels,
double aThreshold,
int aP,
PrunedSets.Strategy aStrategy,
int aB,
Classifier baselearner)
|
Method Summary | |
---|---|
protected void |
buildInternal(MultiLabelInstances trainingSet)
Learner specific implementation of building the model from MultiLabelInstances
training data set. |
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on. |
String |
globalInfo()
Returns a string describing classifier |
protected MultiLabelOutput |
makePredictionInternal(Instance instance)
Learner specific implementation for predicting on specified data based on trained model. |
Methods inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner |
---|
getBaseClassifier |
Methods inherited from class mulan.classifier.MultiLabelLearnerBase |
---|
build, debug, getDebug, isModelInitialized, isUpdatable, makeCopy, makePrediction, setDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double threshold
protected int numOfModels
protected double percentage
protected PrunedSets[] ensemble
protected Random rand
Constructor Detail |
---|
public EnsembleOfPrunedSets()
public EnsembleOfPrunedSets(double aPercentage, int aNumOfModels, double aThreshold, int aP, PrunedSets.Strategy aStrategy, int aB, Classifier baselearner)
aNumOfModels
- the number of models in the ensembleaStrategy
- pruned sets strategyaPercentage
- percentage of data to sampleaP
- pruned sets parameter paB
- pruned sets parameter bbaselearner
- the base learneraThreshold
- the threshold for producing bipartitionsMethod Detail |
---|
protected void buildInternal(MultiLabelInstances trainingSet) throws Exception
MultiLabelLearnerBase
MultiLabelInstances
training data set. This method is called from MultiLabelLearnerBase.build(MultiLabelInstances)
method,
where behavior common across all learners is applied.
buildInternal
in class MultiLabelLearnerBase
trainingSet
- the training data set
Exception
- if learner model was not created successfullypublic TechnicalInformation getTechnicalInformation()
TransformationBasedMultiLabelLearner
getTechnicalInformation
in interface TechnicalInformationHandler
getTechnicalInformation
in class TransformationBasedMultiLabelLearner
public String globalInfo()
globalInfo
in class TransformationBasedMultiLabelLearner
protected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception, InvalidDataException
MultiLabelLearnerBase
MultiLabelLearnerBase.makePrediction(weka.core.Instance)
which guards for model
initialization and apply common handling/behavior.
makePredictionInternal
in class MultiLabelLearnerBase
instance
- the data instance to predict on
Exception
- if an error occurs while making the prediction.
InvalidDataException
- if specified instance data is invalid and can not be processed by the learner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |