Error Troubleshooting Classification Models
2 ビュー (過去 30 日間)
古いコメントを表示
Im getting this error when i run my code
This is the code i am running
data = readmatrix('project.xlsx')
Tbl = array2table(data);
varNames = ["Number","Amplitude","PSD","Recurrence_Rate","Recurrance_Points","Determinism","Ratio_Determinism_Recurrence_Rate","Average_Diagonal_Length","Average_Vertical_Length","Laminarity","Divergence","Entropy","Trapping_Time","OSA_Label"];
mdl = fitcdiscr(Tbl, Number)
Please help troubleshoot this
0 件のコメント
回答 (1 件)
Kevin Holly
2023 年 4 月 25 日
編集済み: Kevin Holly
2023 年 4 月 25 日
I believe you meant this:
mdl = fitcdiscr(Tbl, "Number")
instead of
mdl = fitcdiscr(Tbl, Number)
Edit: Also what does your table look like? Does it have those variable names?
6 件のコメント
Kevin Holly
2023 年 4 月 26 日
Is it possible that you can share your Excel sheet or one with similar data?
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!