renaming for consistency

This commit is contained in:
Andy Eschbacher 2017-01-06 12:04:41 -05:00
parent c782b812d5
commit e39051e958

View File

@ -177,7 +177,7 @@ class GWR:
fixed=fixed,
kernel=kernel).predict(coords_test, X_test)
coefficients = []
coeffs = []
stand_errs = []
t_vals = []
r_squared = model.localR2.flatten()
@ -185,12 +185,12 @@ class GWR:
m = len(model.predy)
for idx in xrange(m):
coefficients.append(json.dumps({var: model.params[idx, k]
for k, var in enumerate(ind_vars)}))
coeffs.append(json.dumps({var: model.params[idx, k]
for k, var in enumerate(ind_vars)}))
stand_errs.append(json.dumps({var: model.bse[idx, k]
for k, var in enumerate(ind_vars)}))
t_vals.append(json.dumps({var: model.tvalues[idx, k]
for k, var in enumerate(ind_vars)}))
return zip(coefficients, stand_errs, t_vals,
return zip(coeffs, stand_errs, t_vals,
r_squared, predicted, rowid)