How to use Binary2MultiClassLearner
chenUser4321
New Altair Community Member
Hi:
I want to wrote code to do multi-label classification. However, many of the existig RM classifiers only support binominal label. Binary2MultiClassLearner seems to be reasonable choice that makes these classifiers do multi-label classification.
However, I could not figure out a clear way to write the codes from rapidminer-4.6-tutorial.pdf and the javadoc. I also did some search in RM discussion forum, but found results are not directly related to development.
Could I have some specific instructions of using this learner? A sample code that shows its usage is greatly appreciated!
Kindly regards,
Daozheng
I want to wrote code to do multi-label classification. However, many of the existig RM classifiers only support binominal label. Binary2MultiClassLearner seems to be reasonable choice that makes these classifiers do multi-label classification.
However, I could not figure out a clear way to write the codes from rapidminer-4.6-tutorial.pdf and the javadoc. I also did some search in RM discussion forum, but found results are not directly related to development.
Could I have some specific instructions of using this learner? A sample code that shows its usage is greatly appreciated!
Kindly regards,
Daozheng
Tagged:
0
Answers
-
Hi,
you have to connect an inner operator. See the RapidMiner GUI for understanding how it works in general: The binary2Mutliclass learner uses an inner binary learner to predict for example several one vs all settings and finally computes the output from the confidences.
The used strategy depends on the parameters, but always an inner learner is applied.
If you want to use this in the code, you have to manually create another learning operator and connect it with the inputs and outputs of the subprocess of the binary to multiclass learner.
Greetings,
Sebastian0