def error_hist(rec, modelspec, pred_name='pred', resp_name='resp', ax=None, channel=0, bins=None, bin_mult=5.0, xlabel='|Resp - Pred|', ylabel='Count', title='Prediction Error', idx=None): pred, resp = _get_pred_resp(rec, modelspec, pred_name, resp_name) pred_error_hist(resp, pred, ax=ax, channel=channel, bins=bins, bin_mult=bin_mult, xlabel=xlabel, ylabel=ylabel, title=title)
def my_hist(idx, ax): pred_error_hist(resp, pred[idx])