Training section now works

This commit is contained in:
Stuart Lynn
2016-03-10 12:50:50 -05:00
parent f885cc9f7b
commit fcf57289fc
4 changed files with 70 additions and 29 deletions

View File

@@ -8,9 +8,9 @@ CREATE OR REPLACE FUNCTION
)
RETURNS NUMERIC
AS $$
from crankshaft.segmentation import create_segemnt
from crankshaft import segmentation
# TODO: use named parameters or a dictionary
return create_segment('table')
return segmentation.create_segment(segment_name,table_name,column_name,geoid_column,census_table,'random_forest')
$$ LANGUAGE plpythonu;
CREATE OR REPLACE FUNCTION