classify関数の使い方について

9 visualizzazioni (ultimi 30 giorni)
ssk
ssk il 5 Feb 2019
Commentato: ssk il 6 Feb 2019
プログラミング初心者です。
YPred = classify(net,imdsValidation);
YValidation = imdsValidation.Labels;
accuracy = sum(YPred == YValidation)/numel(YValidation)
上記コードにおいて、classify関数の引数は2つですが、helpを確認したところ、CLASS = classify(SAMPLE,TRAINING,GROUP) classifies each row of the data
in SAMPLE into one of the groups in TRAINING. とあり、classify関数の引数は3つでした。なぜこういった記述が可能かご教示いただけますと幸いです。
あわせて、このclassify関数が指し示す意味についてもご教示頂けますと幸いです。どうぞよろしくお願いいたします。
  1 Commento
michio
michio il 6 Feb 2019
質問の投稿、ありがとうございました。
回答の内容で課題や疑問が解決されましたら、
ぜひ「この回答を採用」ボタンのクリックをお願いいたします。

Accedi per commentare.

Risposta accettata

Satoshi Kobayashi
Satoshi Kobayashi il 6 Feb 2019
  1 Commento
ssk
ssk il 6 Feb 2019
Kobayashiさま
ご回答ありがとうございます。
該当リンクを拝見したところ、よく理解することができました。
本当にありがとうございました。

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!