|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.MultiLabelLearnerBase
mulan.classifier.meta.MultiLabelMetaLearner
mulan.classifier.meta.HMCNode
public class HMCNode
Class that implements a node for the HMC
| Field Summary |
|---|
| Fields inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
baseLearner |
| Fields inherited from class mulan.classifier.MultiLabelLearnerBase |
|---|
featureIndices, labelIndices, numLabels |
| Constructor Summary | |
|---|---|
HMCNode(String name,
MultiLabelLearner mlc)
Creates a new instance with the given name and learner |
|
| Method Summary | |
|---|---|
void |
addChild(HMCNode child)
Adds a child to the node. |
protected void |
buildInternal(MultiLabelInstances trainingSet)
Learner specific implementation of building the model from MultiLabelInstances
training data set. |
HashSet<HMCNode> |
getChildren()
Returns the children of the current node |
ArrayList<String> |
getChildrenLabels()
Returns a list of all children labels |
ArrayList<String> |
getDescendantLabels()
Returns all descendant labels |
Instances |
getHeader()
Returns the header information |
int[] |
getLabelIndices()
Returns the label indices |
String |
getName()
Returns the name of a node |
int |
getNumChildren()
Returns the number of children |
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 multi-label learner. |
boolean |
hasChildren()
Checks whether the node has children |
protected MultiLabelOutput |
makePredictionInternal(Instance instance)
Learner specific implementation for predicting on specified data based on trained model. |
| Methods inherited from class mulan.classifier.meta.MultiLabelMetaLearner |
|---|
getBaseLearner |
| 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 |
| Constructor Detail |
|---|
public HMCNode(String name,
MultiLabelLearner mlc)
throws Exception
name - name of the nodemlc - learner
Exception| Method Detail |
|---|
public int[] getLabelIndices()
public Instances getHeader()
protected void buildInternal(MultiLabelInstances trainingSet)
throws Exception
MultiLabelLearnerBaseMultiLabelInstances
training data set. This method is called from MultiLabelLearnerBase.build(MultiLabelInstances) method,
where behavior common across all learners is applied.
buildInternal in class MultiLabelLearnerBasetrainingSet - the training data set
Exception - if learner model was not created successfully
protected MultiLabelOutput makePredictionInternal(Instance instance)
throws Exception
MultiLabelLearnerBaseMultiLabelLearnerBase.makePrediction(weka.core.Instance) which guards for model
initialization and apply common handling/behavior.
makePredictionInternal in class MultiLabelLearnerBaseinstance - 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 learnerpublic boolean hasChildren()
public int getNumChildren()
public HashSet<HMCNode> getChildren()
public ArrayList<String> getChildrenLabels()
public ArrayList<String> getDescendantLabels()
public void addChild(HMCNode child)
child - - the child that will be addedpublic String getName()
public TechnicalInformation getTechnicalInformation()
MultiLabelLearnerBase
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class MultiLabelLearnerBasepublic String globalInfo()
MultiLabelLearnerBase
globalInfo in class MultiLabelLearnerBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||