big_ml 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -1
  3. data/.rvmrc.example +1 -1
  4. data/.travis.yml +1 -1
  5. data/README.md +6 -5
  6. data/lib/big_ml.rb +5 -0
  7. data/lib/big_ml/base.rb +31 -0
  8. data/lib/big_ml/batch_prediction.rb +39 -0
  9. data/lib/big_ml/ensemble.rb +32 -0
  10. data/lib/big_ml/evaluation.rb +31 -0
  11. data/lib/big_ml/prediction.rb +2 -2
  12. data/lib/big_ml/util/client.rb +1 -0
  13. data/lib/big_ml/util/config.rb +4 -1
  14. data/lib/big_ml/util/request.rb +9 -4
  15. data/lib/big_ml/version.rb +1 -1
  16. data/spec/integration/dataset_spec.rb +21 -23
  17. data/spec/integration/ensemble_spec.rb +73 -0
  18. data/spec/integration/evaluation_spec.rb +64 -0
  19. data/spec/integration/model_spec.rb +23 -25
  20. data/spec/integration/prediction_spec.rb +20 -22
  21. data/spec/integration/source_spec.rb +22 -24
  22. data/spec/spec_helper.rb +4 -3
  23. data/spec/units/client_spec.rb +58 -26
  24. data/spec/units/source_spec.rb +3 -3
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +180 -99
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +144 -163
  27. data/spec/vcr_cassettes/BigML_Ensemble/no_ensemble/_all/must_be_empty.yml +223 -0
  28. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/can_be_converted_in_a_prediction.yml +1074 -0
  29. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_deleted_using_the_destroy_method.yml +1082 -0
  30. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_find_using_the_reference.yml +734 -0
  31. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_remove_the_ensemble.yml +1215 -0
  32. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_set_number_of_models.yml +853 -0
  33. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name.yml +1226 -0
  34. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name_from_the_instance.yml +1226 -0
  35. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_only_one_item.yml +686 -0
  36. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_the_same_size.yml +732 -0
  37. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/was_created_successfully.yml +495 -0
  38. data/spec/vcr_cassettes/BigML_Evaluation/no_evaluation/_all/must_be_empty.yml +600 -0
  39. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_deleted_using_the_destroy_method.yml +1127 -0
  40. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_find_using_the_reference.yml +1151 -0
  41. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_remove_the_evaluation.yml +1203 -0
  42. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name.yml +1374 -0
  43. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name_from_the_instance.yml +1373 -0
  44. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_only_one_item.yml +1103 -0
  45. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_the_same_name.yml +1108 -0
  46. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/was_created_successfully.yml +922 -0
  47. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +269 -282
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +360 -312
  49. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +75 -72
  50. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/debug_mode/raises_on_bad_request.yml +38 -0
  51. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/normal_mode/does_not_raise_on_bad_request.yml +38 -0
  52. metadata +74 -43
@@ -0,0 +1,495 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ access-control-allow-methods:
16
+ - POST,GET,PUT,DELETE
17
+ access-control-allow-origin:
18
+ - "*"
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Wed, 25 Jun 2014 15:02:03 GMT
23
+ server:
24
+ - nginx/1.0.12
25
+ content-length:
26
+ - '101'
27
+ connection:
28
+ - Close
29
+ body:
30
+ encoding: UTF-8
31
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
32
+ "total_count": 0}, "objects": []}'
33
+ http_version: '1.1'
34
+ recorded_at: Wed, 25 Jun 2014 15:02:03 GMT
35
+ - request:
36
+ method: get
37
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ''
41
+ headers: {}
42
+ response:
43
+ status:
44
+ code: 200
45
+ message: OK
46
+ headers:
47
+ access-control-allow-methods:
48
+ - POST,GET,PUT,DELETE
49
+ access-control-allow-origin:
50
+ - "*"
51
+ content-type:
52
+ - application/json
53
+ date:
54
+ - Wed, 25 Jun 2014 15:02:03 GMT
55
+ server:
56
+ - nginx/1.0.12
57
+ transfer-encoding:
58
+ - chunked
59
+ connection:
60
+ - Close
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
64
+ "total_count": 0}, "objects": []}'
65
+ http_version: '1.1'
66
+ recorded_at: Wed, 25 Jun 2014 15:02:03 GMT
67
+ - request:
68
+ method: get
69
+ uri: https://bigml.io/dev/andromeda/ensemble?username=<USERNAME>&api_key=<API_KEY>
70
+ body:
71
+ encoding: US-ASCII
72
+ string: ''
73
+ headers: {}
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ access-control-allow-methods:
80
+ - POST,GET,PUT,DELETE
81
+ access-control-allow-origin:
82
+ - "*"
83
+ content-type:
84
+ - application/json
85
+ date:
86
+ - Wed, 25 Jun 2014 15:02:03 GMT
87
+ server:
88
+ - nginx/1.0.12
89
+ transfer-encoding:
90
+ - chunked
91
+ connection:
92
+ - Close
93
+ body:
94
+ encoding: UTF-8
95
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
96
+ "total_count": 0}, "objects": []}'
97
+ http_version: '1.1'
98
+ recorded_at: Wed, 25 Jun 2014 15:02:03 GMT
99
+ - request:
100
+ method: post
101
+ uri: https://bigml.io/dev/andromeda/source
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ content-type:
107
+ - multipart/form-data; boundary=-----------RubyMultipartPost
108
+ content-length:
109
+ - '5150'
110
+ response:
111
+ status:
112
+ code: 201
113
+ message: CREATED
114
+ headers:
115
+ access-control-allow-methods:
116
+ - POST,GET,PUT,DELETE
117
+ access-control-allow-origin:
118
+ - "*"
119
+ content-type:
120
+ - application/json
121
+ date:
122
+ - Wed, 25 Jun 2014 15:02:04 GMT
123
+ location:
124
+ - http://bigml.io/andromeda/source/53aae46cffa04408550019e1
125
+ server:
126
+ - nginx/1.0.12
127
+ content-length:
128
+ - '736'
129
+ connection:
130
+ - Close
131
+ body:
132
+ encoding: UTF-8
133
+ string: '{"category": 0, "code": 201, "content_type": "application/octet-stream",
134
+ "created": "2014-06-25T15:02:04.000772", "credits": 0.0, "description": "",
135
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
136
+ 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
137
+ "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
138
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae46cffa04408550019e1",
139
+ "shared": false, "size": 4608, "source_parser": {}, "status": {"code": 1,
140
+ "message": "The request has been queued and will be processed soon"}, "subscription":
141
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T15:02:04.000809"}'
142
+ http_version: '1.1'
143
+ recorded_at: Wed, 25 Jun 2014 15:02:04 GMT
144
+ - request:
145
+ method: get
146
+ uri: https://bigml.io/dev/andromeda/source/53aae46cffa04408550019e1?username=<USERNAME>&api_key=<API_KEY>
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ''
150
+ headers: {}
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ access-control-allow-methods:
157
+ - POST,GET,PUT,DELETE
158
+ access-control-allow-origin:
159
+ - "*"
160
+ content-type:
161
+ - application/json
162
+ date:
163
+ - Wed, 25 Jun 2014 15:02:04 GMT
164
+ server:
165
+ - nginx/1.0.12
166
+ vary:
167
+ - Accept-Encoding
168
+ content-length:
169
+ - '754'
170
+ connection:
171
+ - Close
172
+ body:
173
+ encoding: UTF-8
174
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
175
+ "created": "2014-06-25T15:02:04", "credits": 0.0, "description": "", "dev":
176
+ true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "query_total":
177
+ 0, "total": 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
178
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
179
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae46cffa04408550019e1",
180
+ "shared": false, "size": 4608, "source_parser": {"missing_tokens": []}, "status":
181
+ {"code": 3, "elapsed": 0, "message": "The source is being created"}, "subscription":
182
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T15:02:04.253000"}'
183
+ http_version: '1.1'
184
+ recorded_at: Wed, 25 Jun 2014 15:02:04 GMT
185
+ - request:
186
+ method: get
187
+ uri: https://bigml.io/dev/andromeda/source/53aae46cffa04408550019e1?username=<USERNAME>&api_key=<API_KEY>
188
+ body:
189
+ encoding: US-ASCII
190
+ string: ''
191
+ headers: {}
192
+ response:
193
+ status:
194
+ code: 200
195
+ message: OK
196
+ headers:
197
+ access-control-allow-methods:
198
+ - POST,GET,PUT,DELETE
199
+ access-control-allow-origin:
200
+ - "*"
201
+ content-type:
202
+ - application/json
203
+ date:
204
+ - Wed, 25 Jun 2014 15:02:05 GMT
205
+ server:
206
+ - nginx/1.0.12
207
+ vary:
208
+ - Accept-Encoding
209
+ content-length:
210
+ - '1471'
211
+ connection:
212
+ - Close
213
+ body:
214
+ encoding: UTF-8
215
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
216
+ "created": "2014-06-25T15:02:04", "credits": 0.0, "description": "", "dev":
217
+ true, "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
218
+ "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal width",
219
+ "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name": "petal
220
+ length", "optype": "numeric", "order": 2}, "000003": {"column_number": 3,
221
+ "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
222
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
223
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
224
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
225
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
226
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae46cffa04408550019e1",
227
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
228
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
229
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
230
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
231
+ 5, "elapsed": 355, "message": "The source has been created"}, "subscription":
232
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
233
+ "2014-06-25T15:02:04.616000"}'
234
+ http_version: '1.1'
235
+ recorded_at: Wed, 25 Jun 2014 15:02:05 GMT
236
+ - request:
237
+ method: post
238
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
239
+ body:
240
+ encoding: UTF-8
241
+ string: '{"source":"source/53aae46cffa04408550019e1"}'
242
+ headers:
243
+ content-type:
244
+ - application/json
245
+ response:
246
+ status:
247
+ code: 201
248
+ message: CREATED
249
+ headers:
250
+ access-control-allow-methods:
251
+ - POST,GET,PUT,DELETE
252
+ access-control-allow-origin:
253
+ - "*"
254
+ content-type:
255
+ - application/json
256
+ date:
257
+ - Wed, 25 Jun 2014 15:02:05 GMT
258
+ location:
259
+ - http://bigml.io/andromeda/dataset/53aae46d0af5e815350010bf
260
+ server:
261
+ - nginx/1.0.12
262
+ transfer-encoding:
263
+ - chunked
264
+ connection:
265
+ - Close
266
+ body:
267
+ encoding: UTF-8
268
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
269
+ true, "code": 201, "columns": 0, "created": "2014-06-25T15:02:05.759198",
270
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
271
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
272
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
273
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
274
+ "total": 0}, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
275
+ 0}, "locale": "en-US", "missing_numeric_rows": 0, "missing_tokens": [], "name":
276
+ "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
277
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
278
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
279
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae46d0af5e815350010bf",
280
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
281
+ "source": "source/53aae46cffa04408550019e1", "source_status": true, "status":
282
+ {"code": 1, "message": "The dataset is being processed and will be created
283
+ soon"}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T15:02:05.759237",
284
+ "user_metadata": {}}'
285
+ http_version: '1.1'
286
+ recorded_at: Wed, 25 Jun 2014 15:02:06 GMT
287
+ - request:
288
+ method: get
289
+ uri: https://bigml.io/dev/andromeda/dataset/53aae46d0af5e815350010bf?username=<USERNAME>&api_key=<API_KEY>
290
+ body:
291
+ encoding: US-ASCII
292
+ string: ''
293
+ headers: {}
294
+ response:
295
+ status:
296
+ code: 200
297
+ message: OK
298
+ headers:
299
+ access-control-allow-methods:
300
+ - POST,GET,PUT,DELETE
301
+ access-control-allow-origin:
302
+ - "*"
303
+ content-type:
304
+ - application/json
305
+ date:
306
+ - Wed, 25 Jun 2014 15:02:06 GMT
307
+ server:
308
+ - nginx/1.0.12
309
+ vary:
310
+ - Accept-Encoding
311
+ content-length:
312
+ - '2044'
313
+ connection:
314
+ - Close
315
+ body:
316
+ encoding: UTF-8
317
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
318
+ true, "code": 200, "columns": 5, "created": "2014-06-25T15:02:05.759000",
319
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
320
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
321
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
322
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
323
+ "total": 5}, "fields": {"000000": {"column_number": 0, "name": "sepal length",
324
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
325
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
326
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
327
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
328
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
329
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
330
+ 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
331
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
332
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
333
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
334
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
335
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
336
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae46d0af5e815350010bf",
337
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
338
+ "source": "source/53aae46cffa04408550019e1", "source_status": true, "status":
339
+ {"bytes": 0, "code": 2, "elapsed": 0, "field_errors": [], "message": "The
340
+ dataset creation has been started. No partial summary yet", "row_format_errors":
341
+ [], "serialized_rows": 0}, "subscription": false, "tags": [], "term_limit":
342
+ 32, "updated": "2014-06-25T15:02:05.985000", "user_metadata": {}}'
343
+ http_version: '1.1'
344
+ recorded_at: Wed, 25 Jun 2014 15:02:06 GMT
345
+ - request:
346
+ method: get
347
+ uri: https://bigml.io/dev/andromeda/dataset/53aae46d0af5e815350010bf?username=<USERNAME>&api_key=<API_KEY>
348
+ body:
349
+ encoding: US-ASCII
350
+ string: ''
351
+ headers: {}
352
+ response:
353
+ status:
354
+ code: 200
355
+ message: OK
356
+ headers:
357
+ access-control-allow-methods:
358
+ - POST,GET,PUT,DELETE
359
+ access-control-allow-origin:
360
+ - "*"
361
+ content-type:
362
+ - application/json
363
+ date:
364
+ - Wed, 25 Jun 2014 15:02:07 GMT
365
+ server:
366
+ - nginx/1.0.12
367
+ vary:
368
+ - Accept-Encoding
369
+ transfer-encoding:
370
+ - chunked
371
+ connection:
372
+ - Close
373
+ body:
374
+ encoding: UTF-8
375
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
376
+ true, "code": 200, "columns": 5, "created": "2014-06-25T15:02:05.759000",
377
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
378
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
379
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
380
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
381
+ "total": 5}, "fields": {"000000": {"column_number": 0, "datatype": "double",
382
+ "name": "sepal length", "optype": "numeric", "order": 0, "preferred": true,
383
+ "summary": {"bins": [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625,
384
+ 16], [5.1, 9], [5.2, 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8],
385
+ [5.8, 7], [5.9, 3], [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5,
386
+ 5], [6.6, 2], [6.7, 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3,
387
+ 1], [7.4, 1], [7.6, 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333,
388
+ "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population": 150,
389
+ "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
390
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
391
+ 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
392
+ 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "standard_deviation":
393
+ 0.82807, "sum": 876.5, "sum_squares": 5223.85, "variance": 0.68569}}, "000001":
394
+ {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
395
+ "numeric", "order": 1, "preferred": true, "summary": {"counts": [[2, 1], [2.2,
396
+ 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10],
397
+ [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7,
398
+ 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
399
+ 4.4, "mean": 3.05733, "median": 3.02044, "minimum": 2, "missing_count": 0,
400
+ "population": 150, "standard_deviation": 0.43587, "sum": 458.6, "sum_squares":
401
+ 1430.4, "variance": 0.18998}}, "000002": {"column_number": 2, "datatype":
402
+ "double", "name": "petal length", "optype": "numeric", "order": 2, "preferred":
403
+ true, "summary": {"bins": [[1, 1], [1.16667, 3], [1.3, 7], [1.4, 13], [1.5,
404
+ 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1], [3.3, 2], [3.5, 2], [3.6, 1], [3.75,
405
+ 2], [3.9, 3], [4.0375, 8], [4.23333, 6], [4.46667, 12], [4.6, 3], [4.74444,
406
+ 9], [4.94444, 9], [5.1, 8], [5.25, 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95,
407
+ 4], [6.1, 3], [6.3, 1], [6.4, 1], [6.6, 1], [6.7, 2], [6.9, 1]], "maximum":
408
+ 6.9, "mean": 3.758, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
409
+ 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
410
+ 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
411
+ 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
412
+ 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "standard_deviation":
413
+ 1.7653, "sum": 563.7, "sum_squares": 2582.71, "variance": 3.11628}}, "000003":
414
+ {"column_number": 3, "datatype": "double", "name": "petal width", "optype":
415
+ "numeric", "order": 3, "preferred": true, "summary": {"counts": [[0.1, 5],
416
+ [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
417
+ 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
418
+ [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
419
+ "mean": 1.19933, "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population":
420
+ 150, "standard_deviation": 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance":
421
+ 0.58101}}, "000004": {"column_number": 4, "datatype": "string", "name": "species",
422
+ "optype": "categorical", "order": 4, "preferred": true, "summary": {"categories":
423
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count":
424
+ 0}, "term_analysis": {"enabled": true}}}, "fields_meta": {"count": 5, "limit":
425
+ 1000, "offset": 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
426
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
427
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
428
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
429
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
430
+ 0, "number_of_models": 0, "number_of_predictions": 0, "objective_field": {"column_number":
431
+ 4, "datatype": "string", "id": "000004", "name": "species", "optype": "categorical",
432
+ "order": 4, "term_analysis": {"enabled": true}}, "price": 0.0, "private":
433
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae46d0af5e815350010bf",
434
+ "rows": 150, "sample_rates": null, "seeds": null, "shared": false, "size":
435
+ 4608, "source": "source/53aae46cffa04408550019e1", "source_status": true,
436
+ "status": {"bytes": 4608, "code": 5, "elapsed": 370, "field_errors": [], "message":
437
+ "The dataset has been created", "row_format_errors": [], "serialized_rows":
438
+ 150}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T15:02:06.355000",
439
+ "user_metadata": {}}'
440
+ http_version: '1.1'
441
+ recorded_at: Wed, 25 Jun 2014 15:02:07 GMT
442
+ - request:
443
+ method: post
444
+ uri: https://bigml.io/dev/andromeda/ensemble?username=<USERNAME>&api_key=<API_KEY>
445
+ body:
446
+ encoding: UTF-8
447
+ string: '{"dataset":"dataset/53aae46d0af5e815350010bf","number_of_models":2}'
448
+ headers:
449
+ content-type:
450
+ - application/json
451
+ response:
452
+ status:
453
+ code: 201
454
+ message: CREATED
455
+ headers:
456
+ access-control-allow-methods:
457
+ - POST,GET,PUT,DELETE
458
+ access-control-allow-origin:
459
+ - "*"
460
+ content-type:
461
+ - application/json
462
+ date:
463
+ - Wed, 25 Jun 2014 15:02:07 GMT
464
+ location:
465
+ - http://bigml.io/andromeda/ensemble/53aae46fffa04408550019ef
466
+ server:
467
+ - nginx/1.0.12
468
+ transfer-encoding:
469
+ - chunked
470
+ connection:
471
+ - Close
472
+ body:
473
+ encoding: UTF-8
474
+ string: '{"balance_objective": false, "category": 0, "code": 201, "columns":
475
+ 5, "created": "2014-06-25T15:02:07.494229", "credits": 0.03515625, "credits_per_prediction":
476
+ 0.0, "dataset": "dataset/53aae46d0af5e815350010bf", "dataset_field_types":
477
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
478
+ "total": 5}, "dataset_status": true, "datasets": [], "description": "", "dev":
479
+ true, "distributions": [{"importance": [], "predictions": {}, "training":
480
+ {}}, {"importance": [], "predictions": {}, "training": {}}], "error_models":
481
+ 0, "fields_maps": null, "finished_models": 0, "locale": "en-US", "max_columns":
482
+ 5, "max_rows": 150, "models": ["model/53aae46fffa04408550019f2"], "name":
483
+ "iris'' dataset ensemble", "node_threshold": 512, "number_of_batchpredictions":
484
+ 0, "number_of_evaluations": 0, "number_of_models": 2, "number_of_predictions":
485
+ 0, "number_of_public_predictions": 0, "objective_field": "000004", "ordering":
486
+ 0, "out_of_bag": false, "price": 0.0, "private": true, "randomize": false,
487
+ "range": [1, 150], "replacement": true, "resource": "ensemble/53aae46fffa04408550019ef",
488
+ "rows": 150, "sample_rate": 1.0, "shared": false, "size": 9216, "source":
489
+ "source/53aae46cffa04408550019e1", "source_status": true, "stat_pruning":
490
+ false, "status": {"code": 3, "elapsed": 0.051, "message": "The ensemble creation
491
+ has been started", "progress": 0.0}, "subscription": false, "tags": ["species"],
492
+ "tlp": 1, "updated": "2014-06-25T15:02:07.494280"}'
493
+ http_version: '1.1'
494
+ recorded_at: Wed, 25 Jun 2014 15:02:07 GMT
495
+ recorded_with: VCR 2.9.2