.mat trained model linear svm to android
5 ビュー (過去 30 日間)
古いコメントを表示
Michalis Gelastos
2021 年 3 月 9 日
コメント済み: Michalis Gelastos
2021 年 4 月 18 日
Hello, i have trained my data using Linear SVM machine learning from classification learner app in Matlab. Then i exported the model and saved it using .mat extension. Now, i want to import this model into android studio, so i can make the predictions real time from the smartphone. Is there any simple way to do that?
0 件のコメント
採用された回答
Sruthi Yenugula
2021 年 3 月 17 日
Hi Michalis Gelastos,
You can check the following examples to achieve that
.
0 件のコメント
その他の回答 (1 件)
Sruthi Yenugula
2021 年 4 月 7 日
Hi Michalis Gelastos,
We do not yet have an ECOC Simulink block. For ECOC models (and models for which we do not yet have Simulink blocks), you need to use a MATLAB Function block (or a System block, but MATLAB Function block is more efficient). Here’s an example that should apply to all models:
Our example in Human Activity Recognition demo also uses the MATLAB function block, so this makes me think that the issue is with the exported model from the app; the model exported from the Classification Learner App is not the model itself, but a struct that wraps the model. You can refer to this example to get the model:
So,you extract the model first (and underlying preprocessing code if there is any) and then go to MATLAB function block
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!