makeTargets(trainCl​assLabels,classOfIn​terest)

Encode Target Variables as 1 or -1 for classification.
38 Downloads
Updated 23 Nov 2015

View License

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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0