-1
我手裏有兩個數據集,它們是720 * 1大小的列矩陣,如何計算錯誤並繪製錯誤分佈圖?其中一個是實際數據,另一個是預測數據。組織錯誤的分佈
我手裏有兩個數據集,它們是720 * 1大小的列矩陣,如何計算錯誤並繪製錯誤分佈圖?其中一個是實際數據,另一個是預測數據。組織錯誤的分佈
在MATLAB中,
true = rand(720, 1); % or wherever else you get your data
pred = rand(720, 1); % or wherever else you get your data
errs = pred - true; % the error in each predicted value
nbins = 50; % number of bins for histogram
hist(errs, nbins); % plot the histogram
這似乎並沒有被編程相關的問題,你做一個谷歌搜索?你有什麼機會可以解釋你到目前爲止所嘗試過的嗎? – Fraukje
歡迎來到Stack Overflow。請閱讀[Stack Overflow:How to ask](http://stackoverflow.com/questions/how-to-ask)和[Jon Skeet的問題清單](http://msmvps.com/blogs/jon_skeet/archive/2012 /11/24/stack-overflow-question-checklist.aspx)來找出如何提出一個很好的問題,這將產生很好的答案。 –