switch order of rowid to be last in output signature
This commit is contained in:
parent
dbee19723e
commit
b049da4155
@ -1,7 +1,7 @@
|
|||||||
CREATE OR REPLACE FUNCTION
|
CREATE OR REPLACE FUNCTION
|
||||||
CDB_GWR(subquery text, dep_var text, ind_vars text[],
|
CDB_GWR(subquery text, dep_var text, ind_vars text[],
|
||||||
bw numeric default null, fixed boolean default False, kernel text default 'bisquare')
|
bw numeric default null, fixed boolean default False, kernel text default 'bisquare')
|
||||||
RETURNS table(coeffs JSON, stand_errs JSON, t_vals JSON, predicted numeric, residuals numeric, r_squared numeric, rowid bigint, bandwidth numeric)
|
RETURNS table(coeffs JSON, stand_errs JSON, t_vals JSON, predicted numeric, residuals numeric, r_squared numeric, bandwidth numeric, rowid bigint)
|
||||||
AS $$
|
AS $$
|
||||||
|
|
||||||
from crankshaft.regression import GWR
|
from crankshaft.regression import GWR
|
||||||
|
@ -89,4 +89,4 @@ class GWR:
|
|||||||
for k, var in enumerate(ind_vars)}))
|
for k, var in enumerate(ind_vars)}))
|
||||||
|
|
||||||
return zip(coeffs, stand_errs, t_vals,
|
return zip(coeffs, stand_errs, t_vals,
|
||||||
predicted, residuals, r_squared, rowid, bw)
|
predicted, residuals, r_squared, bw, rowid)
|
||||||
|
Loading…
Reference in New Issue
Block a user