<commit_before>CREATE OR REPLACE FUNCTION
CDB_GWR(subquery text, dep_var text, ind_vars text[],
       fixed boolean default False, kernel text default 'bisquare')
RETURNS table(v1 numeric, v2 numeric, v3 numeric, v4 numeric, v5 numeric, v6 numeric, rowid bigint)
AS $$

from crankshaft.regression import gwr_cs

return gwr_cs.gwr(subquery, dep_var, ind_vars, fixed, kernel)

$$ LANGUAGE plpythonu;<commit_msg>update signature<commit_after>CREATE OR REPLACE FUNCTION
CDB_GWR(subquery text, dep_var text, ind_vars text[],
       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)
AS $$

from crankshaft.regression import gwr_cs

return gwr_cs.gwr(subquery, dep_var, ind_vars, fixed, kernel)

$$ LANGUAGE plpythonu;
{'fraction_non_alphanumeric': 0.0799059929494712, 'fraction_numerical': 0.007050528789659225, 'mean_word_length': 6.1, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '474599', 'n_tokens_mistral': 297, 'n_tokens_neox': 285, 'n_words': 92}