2
$\begingroup$

I am comparing my trained model with other benchmark models with the error histogram but the axis of histogram is different for each method as shown in figureenter image description here.For instance to plot the error histogram of every method,I tried this code:

% Matlab code
Targets=Actual;
Outputs=Predicted_by_model;
errors=Targets-Outputs;
error_std=std(errors);
MAPE=mean(abs(Targets-Outputs)./Targets)*100;
histfit(errors);
legend('Proposed')
title(['MAPE = ' num2str(MAPE) '  ,    Error St.D. = ' num2str(error_std)]))

How to keep axis of every method to the same value.

$\endgroup$
2
  • $\begingroup$ You added the matplotlib library but your code is in Matlab. In which programming language you want your answer? $\endgroup$
    – Tasos
    Aug 18 '19 at 17:59
  • $\begingroup$ The above code is coded in MATLAB $\endgroup$
    – Case Msee
    Sep 3 '19 at 1:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.