mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
data entry edits
This commit is contained in:
parent
8c5449cfd0
commit
29a0d810ed
@ -77,6 +77,7 @@ class AnalysisDataProvider(object):
|
|||||||
"target": variable,
|
"target": variable,
|
||||||
"features": feature_columns}
|
"features": feature_columns}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
columns = ', '.join(['array_agg("{col}") As "{col}"'.format(col=col)
|
columns = ', '.join(['array_agg("{col}") As "{col}"'.format(col=col)
|
||||||
for col in params['features']])
|
for col in params['features']])
|
||||||
query = '''
|
query = '''
|
||||||
|
@ -63,7 +63,6 @@ class SegmentationTest(unittest.TestCase):
|
|||||||
self.assertTrue(assert_array_equal(result, expectation))
|
self.assertTrue(assert_array_equal(result, expectation))
|
||||||
|
|
||||||
def test_create_and_predict_segment(self):
|
def test_create_and_predict_segment(self):
|
||||||
from crankshaft.segmentation import Segmentation
|
|
||||||
from numpy.testing import assert_array_equal
|
from numpy.testing import assert_array_equal
|
||||||
|
|
||||||
n_samples = 1000
|
n_samples = 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user