Simplified further.

master
Per A Brodtkorb 8 years ago
parent 9aa06ef075
commit 7501f69262

@ -137,7 +137,7 @@ class _KDE(object):
return args return args
def eval_grid_fast(self, *args, **kwds): def eval_grid_fast(self, *args, **kwds):
"""Evaluate the estimated pdf on a grid. """Evaluate the estimated pdf on a grid using fft.
Parameters Parameters
---------- ----------
@ -1113,8 +1113,8 @@ class BKRegression(object):
plo, pup = self.prb_ci(c_s, prb_s.data, alpha) plo, pup = self.prb_ci(c_s, prb_s.data, alpha)
prb_s.dataCI = np.vstack((plo, pup)).T prb_s.dataCI = np.vstack((plo, pup)).T
prb_s.prediction_error_avg = np.trapz( prb_s.prediction_error_avg = (np.trapz(pup - plo, x_s) /
pup - plo, x_s) / (x_s[-1] - x_s[0]) (x_s[-1] - x_s[0]))
if label: if label:
prb_s.plot_kwds['label'] = label prb_s.plot_kwds['label'] = label

Loading…
Cancel
Save