Does Matlab have a function that provide label encoder for multi class classification ?

5 ビュー (過去 30 日間)
Tuong Nguyen Minh
Tuong Nguyen Minh 2020 年 8 月 20 日
編集済み: Mohammad Sami 2020 年 8 月 21 日
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

回答 (1 件)

Mohammad Sami
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

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by