We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f1b04 commit 6ae1d9eCopy full SHA for 6ae1d9e
forestci/calibration.py
@@ -68,7 +68,7 @@ def gfit(X, sigma, p=2, nbin=1000, unif_fraction=0.1):
68
assert sum(mask) > 0
69
g_eta_slab = mask / sum(mask)
70
71
- XX = np.column_stack([ np.pow(xvals, exp) for exp in range(1, p+1)])
+ XX = np.column_stack([ pow(xvals, exp) for exp in range(1, p+1)])
72
XX /= np.sum(XX,axis = 0, keepdims=True) # normalize each feature column for better numerical stability
73
74
def neg_loglik(eta):
0 commit comments