mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
segmentation pg tests
This commit is contained in:
parent
de274bf628
commit
76b3a873b8
30
src/pg/test/expected/06_segmentation_test.out
Normal file
30
src/pg/test/expected/06_segmentation_test.out
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
\pset format unaligned
|
||||||
|
\set ECHO all
|
||||||
|
\i test/fixtures/ml_values.sql
|
||||||
|
SET client_min_messages TO WARNING;
|
||||||
|
\set ECHO none
|
||||||
|
_cdb_random_seeds
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
prediction
|
||||||
|
4.5656517130822492
|
||||||
|
1.7928053473230694
|
||||||
|
1.0283378773916563
|
||||||
|
2.6586517814904593
|
||||||
|
2.9699056242935944
|
||||||
|
3.9550646059951347
|
||||||
|
4.1662572444459745
|
||||||
|
3.8126334839264162
|
||||||
|
1.8809821053623488
|
||||||
|
1.6349065129019873
|
||||||
|
3.0391288591472954
|
||||||
|
3.3035970359672553
|
||||||
|
1.5835471589451968
|
||||||
|
3.7530378537263638
|
||||||
|
1.0833589653009252
|
||||||
|
3.8104965452882897
|
||||||
|
2.665217959294802
|
||||||
|
1.5850334252802472
|
||||||
|
3.679401198805563
|
||||||
|
3.5332033186588636
|
||||||
|
(20 rows)
|
2005
src/pg/test/fixtures/ml_values.sql
vendored
Normal file
2005
src/pg/test/fixtures/ml_values.sql
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
src/pg/test/sql/06_segmentation_test.sql
Normal file
5
src/pg/test/sql/06_segmentation_test.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
\pset format unaligned
|
||||||
|
\set ECHO all
|
||||||
|
\i test/fixtures/ml_values.sql
|
||||||
|
SELECT cdb_crankshaft._cdb_random_seeds(1234);
|
||||||
|
SELECT prediction from cdb_crankshaft.CDB_CreateAndPredictSegment('select target,x1,x2,x3 from ml_values where class= $$train$$','target','select cartodb_id, target,x1,x2,x3 from ml_values where class=$$test$$') limit 20
|
Loading…
Reference in New Issue
Block a user