|
|||||||||
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.ClassifierChain
public class ClassifierChain
Class implementing the Classifier Chain (CC) algorithm.
For more information, see
Read, Jesse, Pfahringer, Bernhard, Holmes, Geoff, Frank, Eibe: Classifier Chains for Multi-label Classification. In: , 335--359, 2011.
@inproceedings{Read2011, author = {Read, Jesse and Pfahringer, Bernhard and Holmes, Geoff and Frank, Eibe}, journal = {Machine Learning}, number = {3}, pages = {335--359}, title = {Classifier Chains for Multi-label Classification}, volume = {85}, year = {2011} }
Field Summary | |
---|---|
protected FilteredClassifier[] |
ensemble
The ensemble of binary relevance models. |
Fields inherited from class mulan.classifier.transformation.TransformationBasedMultiLabelLearner |
---|
baseClassifier |
Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
---|
featureIndices, labelIndices, numLabels |
Constructor Summary | |
---|---|
ClassifierChain()
Creates a new instance using J48 as the underlying classifier |
|
ClassifierChain(Classifier classifier)
Creates a new instance |
|
ClassifierChain(Classifier classifier,
int[] aChain)
Creates a new instance |
Method Summary | |
---|---|
protected void |
buildInternal(MultiLabelInstances train)
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 the 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 FilteredClassifier[] ensemble
Constructor Detail |
---|
public ClassifierChain()
public ClassifierChain(Classifier classifier, int[] aChain)
classifier
- the base-level classification algorithm that will be
used for training each of the binary modelsaChain
- public ClassifierChain(Classifier classifier)
classifier
- the base-level classification algorithm that will be
used for training each of the binary modelsMethod Detail |
---|
public String globalInfo()
globalInfo
in class TransformationBasedMultiLabelLearner
public TechnicalInformation getTechnicalInformation()
TransformationBasedMultiLabelLearner
getTechnicalInformation
in interface TechnicalInformationHandler
getTechnicalInformation
in class TransformationBasedMultiLabelLearner
protected void buildInternal(MultiLabelInstances train) 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
train
- the training data set
Exception
- if learner model was not created successfullyprotected MultiLabelOutput makePredictionInternal(Instance instance) throws Exception
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 |