Does Matlab have a function that provide label encoder for multi class classification ?
5 次查看(过去 30 天)
显示 更早的评论
The Python's scikit learn library has a label encoder that encode target labels with value between 0 and n_classes-1 at the link below
It also support the ability to transform labels back to the original version.
Does Matlab has an equivalent function ?
In the case matlab does not have it, is there anyway I can call this python encoder from matlab ?
I am using Matlab 2020a
0 个评论
回答(1 个)
Mohammad Sami
2020-8-21
编辑:Mohammad Sami
2020-8-21
For Classification problems, if you use Categorical variables, MATLAB will do this automatically for you. This is transparent to the user.
You can find more details about categorical variables here
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!