makeTargets(trainClassLabels,classOfInterest)
Version 1.0.0.0 (310 Bytes) by
Donald McMenemy
Encode Target Variables as 1 or -1 for classification.
Encode Target Variables as 1 or -1 for classification. Useful for converting multiple types of class labels into an encoding of 1 for the positive class label, -1 for the negative class label. Clearly this is method is used for one versus all binary classification.
Cite As
Donald McMenemy (2024). makeTargets(trainClassLabels,classOfInterest) (https://www.mathworks.com/matlabcentral/fileexchange/54132-maketargets-trainclasslabels-classofinterest), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Classification > Classification Trees >
Find more on Classification Trees in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |