필터 지우기
필터 지우기

How to export predictions?

조회 수: 2 (최근 30일)
Tiago Afonso
Tiago Afonso 2019년 11월 21일
댓글: Tiago Afonso 2019년 11월 21일
Hello,
I created a predictive model with the classification learner but I can't actually see the predictions. What do I need to do in order to see them and how can I export them to excel?
Thanks

채택된 답변

Ridwan Alam
Ridwan Alam 2019년 11월 21일
편집: Ridwan Alam 2019년 11월 21일
On the Classification Learner app, there is "export model" button.
After you have the model exported to your workspace, you can use
yhat = model.predictFcn(x)
where x is your input or test data.
If you want to write the variable yhat to csv, use csvwrite() or any similar function.
A helpful link:
  댓글 수: 7
Ridwan Alam
Ridwan Alam 2019년 11월 21일
[yhat, yscores] = predict(trainedModel, table2array(gggggggggggg))
Tiago Afonso
Tiago Afonso 2019년 11월 21일
I get this now:
>> [yhat, yscores] = predict(trainedModel, table2array(gggggggggggg))
Error using table2array (line 37)
Unable to concatenate the specified table variables.
Caused by:
Error using categorical/cat (line 119)
Unable to concatenate a string array and a categorical array.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Classification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by