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,686 @@
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:07 GMT
23
+ server:
24
+ - nginx/1.0.12
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - '995'
29
+ connection:
30
+ - Close
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
34
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
35
+ "application/octet-stream", "created": "2014-06-25T15:02:04", "credits": 0.0,
36
+ "description": "", "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
37
+ "name": "iris.csv", "number_of_datasets": 1, "number_of_ensembles": 1, "number_of_models":
38
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae46cffa04408550019e1",
39
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
40
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
41
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
42
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
43
+ 5, "elapsed": 355, "message": "The source has been created"}, "subscription":
44
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
45
+ "2014-06-25T15:02:07.509000"}]}'
46
+ http_version: '1.1'
47
+ recorded_at: Wed, 25 Jun 2014 15:02:08 GMT
48
+ - request:
49
+ method: delete
50
+ uri: https://bigml.io/dev/andromeda/source/53aae46cffa04408550019e1?username=<USERNAME>&api_key=<API_KEY>
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers: {}
55
+ response:
56
+ status:
57
+ code: 204
58
+ message: NO CONTENT
59
+ headers:
60
+ access-control-allow-methods:
61
+ - POST,GET,PUT,DELETE
62
+ access-control-allow-origin:
63
+ - "*"
64
+ content-length:
65
+ - '0'
66
+ content-type:
67
+ - text/html; charset=utf-8
68
+ date:
69
+ - Wed, 25 Jun 2014 15:02:08 GMT
70
+ server:
71
+ - nginx/1.0.12
72
+ connection:
73
+ - Close
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ http_version: '1.1'
78
+ recorded_at: Wed, 25 Jun 2014 15:02:08 GMT
79
+ - request:
80
+ method: get
81
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ''
85
+ headers: {}
86
+ response:
87
+ status:
88
+ code: 200
89
+ message: OK
90
+ headers:
91
+ access-control-allow-methods:
92
+ - POST,GET,PUT,DELETE
93
+ access-control-allow-origin:
94
+ - "*"
95
+ content-type:
96
+ - application/json
97
+ date:
98
+ - Wed, 25 Jun 2014 15:02:08 GMT
99
+ server:
100
+ - nginx/1.0.12
101
+ vary:
102
+ - Accept-Encoding
103
+ transfer-encoding:
104
+ - chunked
105
+ connection:
106
+ - Close
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
110
+ "total_count": 1}, "objects": [{"all_fields": true, "category": 0, "cluster":
111
+ null, "cluster_status": true, "code": 200, "columns": 5, "created": "2014-06-25T15:02:05.759000",
112
+ "credits": 0.00439453125, "description": "", "dev": true, "field_types": {"categorical":
113
+ 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0, "total": 5}, "locale":
114
+ "en_US", "missing_numeric_rows": 0, "name": "iris'' dataset", "number_of_batchcentroids":
115
+ 0, "number_of_batchpredictions": 0, "number_of_clusters": 0, "number_of_ensembles":
116
+ 1, "number_of_evaluations": 0, "number_of_models": 0, "number_of_predictions":
117
+ 0, "objective_field": {"column_number": 4, "datatype": "string", "id": "000004",
118
+ "name": "species", "optype": "categorical", "order": 4, "term_analysis": {"enabled":
119
+ true}}, "price": 0.0, "private": true, "ranges": null, "replacements": null,
120
+ "resource": "dataset/53aae46d0af5e815350010bf", "rows": 150, "sample_rates":
121
+ null, "seeds": null, "shared": false, "size": 4608, "source": "source/53aae46cffa04408550019e1",
122
+ "source_status": false, "status": {"bytes": 4608, "code": 5, "elapsed": 370,
123
+ "field_errors": [], "message": "The dataset has been created", "row_format_errors":
124
+ [], "serialized_rows": 150}, "subscription": false, "tags": [], "term_limit":
125
+ 32, "updated": "2014-06-25T15:02:07.522000"}]}'
126
+ http_version: '1.1'
127
+ recorded_at: Wed, 25 Jun 2014 15:02:08 GMT
128
+ - request:
129
+ method: delete
130
+ uri: https://bigml.io/dev/andromeda/dataset/53aae46d0af5e815350010bf?username=<USERNAME>&api_key=<API_KEY>
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers: {}
135
+ response:
136
+ status:
137
+ code: 404
138
+ message: NOT FOUND
139
+ headers:
140
+ access-control-allow-methods:
141
+ - POST,GET,PUT,DELETE
142
+ access-control-allow-origin:
143
+ - "*"
144
+ content-type:
145
+ - application/json
146
+ date:
147
+ - Wed, 25 Jun 2014 15:02:08 GMT
148
+ server:
149
+ - nginx/1.0.12
150
+ content-length:
151
+ - '168'
152
+ connection:
153
+ - Close
154
+ body:
155
+ encoding: UTF-8
156
+ string: '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find an
157
+ instance of ''Model'' which matched ''id=53aae46fffa04408550019ef''."], "message":
158
+ "Id does not exist"}}'
159
+ http_version: '1.1'
160
+ recorded_at: Wed, 25 Jun 2014 15:02:08 GMT
161
+ - request:
162
+ method: get
163
+ uri: https://bigml.io/dev/andromeda/ensemble?username=<USERNAME>&api_key=<API_KEY>
164
+ body:
165
+ encoding: US-ASCII
166
+ string: ''
167
+ headers: {}
168
+ response:
169
+ status:
170
+ code: 200
171
+ message: OK
172
+ headers:
173
+ access-control-allow-methods:
174
+ - POST,GET,PUT,DELETE
175
+ access-control-allow-origin:
176
+ - "*"
177
+ content-type:
178
+ - application/json
179
+ date:
180
+ - Wed, 25 Jun 2014 15:02:08 GMT
181
+ server:
182
+ - nginx/1.0.12
183
+ vary:
184
+ - Accept-Encoding
185
+ transfer-encoding:
186
+ - chunked
187
+ connection:
188
+ - Close
189
+ body:
190
+ encoding: UTF-8
191
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
192
+ "total_count": 1}, "objects": [{"balance_objective": false, "category": 0,
193
+ "code": 200, "columns": 5, "created": "2014-06-25T15:02:07.494000", "credits":
194
+ 0.03515625, "credits_per_prediction": 0.0, "dataset": "dataset/53aae46d0af5e815350010bf",
195
+ "dataset_field_types": {"categorical": 1, "datetime": 0, "numeric": 4, "preferred":
196
+ 5, "text": 0, "total": 5}, "dataset_status": true, "datasets": [], "description":
197
+ "", "dev": true, "error_models": 0, "fields_maps": null, "finished_models":
198
+ 0, "locale": "en-US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
199
+ ensemble", "node_threshold": 512, "number_of_batchpredictions": 0, "number_of_evaluations":
200
+ 0, "number_of_models": 2, "number_of_predictions": 0, "number_of_public_predictions":
201
+ 0, "objective_field": "000004", "ordering": 0, "out_of_bag": false, "price":
202
+ 0.0, "private": true, "randomize": false, "range": [1, 150], "replacement":
203
+ true, "resource": "ensemble/53aae46fffa04408550019ef", "rows": 150, "sample_rate":
204
+ 1.0, "shared": false, "size": 9216, "source": "source/53aae46cffa04408550019e1",
205
+ "source_status": false, "stat_pruning": false, "status": {"code": 3, "elapsed":
206
+ 41.0, "message": "The ensemble creation has been started", "progress": 0.0},
207
+ "subscription": false, "tags": ["species"], "tlp": 1, "updated": "2014-06-25T15:02:07.535000"}]}'
208
+ http_version: '1.1'
209
+ recorded_at: Wed, 25 Jun 2014 15:02:08 GMT
210
+ - request:
211
+ method: delete
212
+ uri: https://bigml.io/dev/andromeda/ensemble/53aae46fffa04408550019ef?username=<USERNAME>&api_key=<API_KEY>
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers: {}
217
+ response:
218
+ status:
219
+ code: 204
220
+ message: NO CONTENT
221
+ headers:
222
+ access-control-allow-methods:
223
+ - POST,GET,PUT,DELETE
224
+ access-control-allow-origin:
225
+ - "*"
226
+ content-length:
227
+ - '0'
228
+ content-type:
229
+ - text/html; charset=utf-8
230
+ date:
231
+ - Wed, 25 Jun 2014 15:02:08 GMT
232
+ server:
233
+ - nginx/1.0.12
234
+ connection:
235
+ - Close
236
+ body:
237
+ encoding: US-ASCII
238
+ string: ''
239
+ http_version: '1.1'
240
+ recorded_at: Wed, 25 Jun 2014 15:02:09 GMT
241
+ - request:
242
+ method: post
243
+ uri: https://bigml.io/dev/andromeda/source
244
+ body:
245
+ encoding: US-ASCII
246
+ string: ''
247
+ headers:
248
+ content-type:
249
+ - multipart/form-data; boundary=-----------RubyMultipartPost
250
+ content-length:
251
+ - '5150'
252
+ response:
253
+ status:
254
+ code: 201
255
+ message: CREATED
256
+ headers:
257
+ access-control-allow-methods:
258
+ - POST,GET,PUT,DELETE
259
+ access-control-allow-origin:
260
+ - "*"
261
+ content-type:
262
+ - application/json
263
+ date:
264
+ - Wed, 25 Jun 2014 15:02:09 GMT
265
+ location:
266
+ - http://bigml.io/andromeda/source/53aae4710af5e815350010c8
267
+ server:
268
+ - nginx/1.0.12
269
+ transfer-encoding:
270
+ - chunked
271
+ connection:
272
+ - Close
273
+ body:
274
+ encoding: UTF-8
275
+ string: '{"category": 0, "code": 201, "content_type": "application/octet-stream",
276
+ "created": "2014-06-25T15:02:09.117961", "credits": 0.0, "description": "",
277
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
278
+ 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
279
+ "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
280
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae4710af5e815350010c8",
281
+ "shared": false, "size": 4608, "source_parser": {}, "status": {"code": 1,
282
+ "message": "The request has been queued and will be processed soon"}, "subscription":
283
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T15:02:09.118000"}'
284
+ http_version: '1.1'
285
+ recorded_at: Wed, 25 Jun 2014 15:02:09 GMT
286
+ - request:
287
+ method: get
288
+ uri: https://bigml.io/dev/andromeda/source/53aae4710af5e815350010c8?username=<USERNAME>&api_key=<API_KEY>
289
+ body:
290
+ encoding: US-ASCII
291
+ string: ''
292
+ headers: {}
293
+ response:
294
+ status:
295
+ code: 200
296
+ message: OK
297
+ headers:
298
+ access-control-allow-methods:
299
+ - POST,GET,PUT,DELETE
300
+ access-control-allow-origin:
301
+ - "*"
302
+ content-type:
303
+ - application/json
304
+ date:
305
+ - Wed, 25 Jun 2014 15:02:09 GMT
306
+ server:
307
+ - nginx/1.0.12
308
+ vary:
309
+ - Accept-Encoding
310
+ content-length:
311
+ - '761'
312
+ connection:
313
+ - Close
314
+ body:
315
+ encoding: UTF-8
316
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
317
+ "created": "2014-06-25T15:02:09.117000", "credits": 0.0, "description": "",
318
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "query_total":
319
+ 0, "total": 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
320
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
321
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae4710af5e815350010c8",
322
+ "shared": false, "size": 4608, "source_parser": {"missing_tokens": []}, "status":
323
+ {"code": 3, "elapsed": 0, "message": "The source is being created"}, "subscription":
324
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T15:02:09.336000"}'
325
+ http_version: '1.1'
326
+ recorded_at: Wed, 25 Jun 2014 15:02:09 GMT
327
+ - request:
328
+ method: get
329
+ uri: https://bigml.io/dev/andromeda/source/53aae4710af5e815350010c8?username=<USERNAME>&api_key=<API_KEY>
330
+ body:
331
+ encoding: US-ASCII
332
+ string: ''
333
+ headers: {}
334
+ response:
335
+ status:
336
+ code: 200
337
+ message: OK
338
+ headers:
339
+ access-control-allow-methods:
340
+ - POST,GET,PUT,DELETE
341
+ access-control-allow-origin:
342
+ - "*"
343
+ content-type:
344
+ - application/json
345
+ date:
346
+ - Wed, 25 Jun 2014 15:02:10 GMT
347
+ server:
348
+ - nginx/1.0.12
349
+ vary:
350
+ - Accept-Encoding
351
+ content-length:
352
+ - '1478'
353
+ connection:
354
+ - Close
355
+ body:
356
+ encoding: UTF-8
357
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
358
+ "created": "2014-06-25T15:02:09.117000", "credits": 0.0, "description": "",
359
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
360
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
361
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
362
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
363
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
364
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
365
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
366
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
367
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
368
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aae4710af5e815350010c8",
369
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
370
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
371
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
372
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
373
+ 5, "elapsed": 781, "message": "The source has been created"}, "subscription":
374
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
375
+ "2014-06-25T15:02:10.098000"}'
376
+ http_version: '1.1'
377
+ recorded_at: Wed, 25 Jun 2014 15:02:10 GMT
378
+ - request:
379
+ method: post
380
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
381
+ body:
382
+ encoding: UTF-8
383
+ string: '{"source":"source/53aae4710af5e815350010c8"}'
384
+ headers:
385
+ content-type:
386
+ - application/json
387
+ response:
388
+ status:
389
+ code: 201
390
+ message: CREATED
391
+ headers:
392
+ access-control-allow-methods:
393
+ - POST,GET,PUT,DELETE
394
+ access-control-allow-origin:
395
+ - "*"
396
+ content-type:
397
+ - application/json
398
+ date:
399
+ - Wed, 25 Jun 2014 15:02:11 GMT
400
+ location:
401
+ - http://bigml.io/andromeda/dataset/53aae472ffa04408550019ff
402
+ server:
403
+ - nginx/1.0.12
404
+ transfer-encoding:
405
+ - chunked
406
+ connection:
407
+ - Close
408
+ body:
409
+ encoding: UTF-8
410
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
411
+ true, "code": 201, "columns": 0, "created": "2014-06-25T15:02:10.895144",
412
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
413
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
414
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
415
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
416
+ "total": 0}, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
417
+ 0}, "locale": "en-US", "missing_numeric_rows": 0, "missing_tokens": [], "name":
418
+ "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
419
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
420
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
421
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae472ffa04408550019ff",
422
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
423
+ "source": "source/53aae4710af5e815350010c8", "source_status": true, "status":
424
+ {"code": 1, "message": "The dataset is being processed and will be created
425
+ soon"}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T15:02:10.895182",
426
+ "user_metadata": {}}'
427
+ http_version: '1.1'
428
+ recorded_at: Wed, 25 Jun 2014 15:02:11 GMT
429
+ - request:
430
+ method: get
431
+ uri: https://bigml.io/dev/andromeda/dataset/53aae472ffa04408550019ff?username=<USERNAME>&api_key=<API_KEY>
432
+ body:
433
+ encoding: US-ASCII
434
+ string: ''
435
+ headers: {}
436
+ response:
437
+ status:
438
+ code: 200
439
+ message: OK
440
+ headers:
441
+ access-control-allow-methods:
442
+ - POST,GET,PUT,DELETE
443
+ access-control-allow-origin:
444
+ - "*"
445
+ content-type:
446
+ - application/json
447
+ date:
448
+ - Wed, 25 Jun 2014 15:02:11 GMT
449
+ server:
450
+ - nginx/1.0.12
451
+ vary:
452
+ - Accept-Encoding
453
+ transfer-encoding:
454
+ - chunked
455
+ connection:
456
+ - Close
457
+ body:
458
+ encoding: UTF-8
459
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
460
+ true, "code": 200, "columns": 5, "created": "2014-06-25T15:02:10.895000",
461
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
462
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
463
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
464
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
465
+ "total": 5}, "fields": {"000000": {"column_number": 0, "name": "sepal length",
466
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
467
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
468
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
469
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
470
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
471
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
472
+ 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
473
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
474
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
475
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
476
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
477
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
478
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae472ffa04408550019ff",
479
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
480
+ "source": "source/53aae4710af5e815350010c8", "source_status": true, "status":
481
+ {"bytes": 0, "code": 2, "elapsed": 0, "field_errors": [], "message": "The
482
+ dataset creation has been started. No partial summary yet", "row_format_errors":
483
+ [], "serialized_rows": 0}, "subscription": false, "tags": [], "term_limit":
484
+ 32, "updated": "2014-06-25T15:02:11.123000", "user_metadata": {}}'
485
+ http_version: '1.1'
486
+ recorded_at: Wed, 25 Jun 2014 15:02:11 GMT
487
+ - request:
488
+ method: get
489
+ uri: https://bigml.io/dev/andromeda/dataset/53aae472ffa04408550019ff?username=<USERNAME>&api_key=<API_KEY>
490
+ body:
491
+ encoding: US-ASCII
492
+ string: ''
493
+ headers: {}
494
+ response:
495
+ status:
496
+ code: 200
497
+ message: OK
498
+ headers:
499
+ access-control-allow-methods:
500
+ - POST,GET,PUT,DELETE
501
+ access-control-allow-origin:
502
+ - "*"
503
+ content-type:
504
+ - application/json
505
+ date:
506
+ - Wed, 25 Jun 2014 15:02:12 GMT
507
+ server:
508
+ - nginx/1.0.12
509
+ vary:
510
+ - Accept-Encoding
511
+ transfer-encoding:
512
+ - chunked
513
+ connection:
514
+ - Close
515
+ body:
516
+ encoding: UTF-8
517
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
518
+ true, "code": 200, "columns": 5, "created": "2014-06-25T15:02:10.895000",
519
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
520
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
521
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
522
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
523
+ "total": 5}, "fields": {"000000": {"column_number": 0, "datatype": "double",
524
+ "name": "sepal length", "optype": "numeric", "order": 0, "preferred": true,
525
+ "summary": {"bins": [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625,
526
+ 16], [5.1, 9], [5.2, 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8],
527
+ [5.8, 7], [5.9, 3], [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5,
528
+ 5], [6.6, 2], [6.7, 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3,
529
+ 1], [7.4, 1], [7.6, 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333,
530
+ "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population": 150,
531
+ "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
532
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
533
+ 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
534
+ 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "standard_deviation":
535
+ 0.82807, "sum": 876.5, "sum_squares": 5223.85, "variance": 0.68569}}, "000001":
536
+ {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
537
+ "numeric", "order": 1, "preferred": true, "summary": {"counts": [[2, 1], [2.2,
538
+ 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10],
539
+ [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7,
540
+ 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
541
+ 4.4, "mean": 3.05733, "median": 3.02044, "minimum": 2, "missing_count": 0,
542
+ "population": 150, "standard_deviation": 0.43587, "sum": 458.6, "sum_squares":
543
+ 1430.4, "variance": 0.18998}}, "000002": {"column_number": 2, "datatype":
544
+ "double", "name": "petal length", "optype": "numeric", "order": 2, "preferred":
545
+ true, "summary": {"bins": [[1, 1], [1.16667, 3], [1.3, 7], [1.4, 13], [1.5,
546
+ 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1], [3.3, 2], [3.5, 2], [3.6, 1], [3.75,
547
+ 2], [3.9, 3], [4.0375, 8], [4.23333, 6], [4.46667, 12], [4.6, 3], [4.74444,
548
+ 9], [4.94444, 9], [5.1, 8], [5.25, 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95,
549
+ 4], [6.1, 3], [6.3, 1], [6.4, 1], [6.6, 1], [6.7, 2], [6.9, 1]], "maximum":
550
+ 6.9, "mean": 3.758, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
551
+ 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
552
+ 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
553
+ 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
554
+ 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "standard_deviation":
555
+ 1.7653, "sum": 563.7, "sum_squares": 2582.71, "variance": 3.11628}}, "000003":
556
+ {"column_number": 3, "datatype": "double", "name": "petal width", "optype":
557
+ "numeric", "order": 3, "preferred": true, "summary": {"counts": [[0.1, 5],
558
+ [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
559
+ 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
560
+ [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
561
+ "mean": 1.19933, "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population":
562
+ 150, "standard_deviation": 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance":
563
+ 0.58101}}, "000004": {"column_number": 4, "datatype": "string", "name": "species",
564
+ "optype": "categorical", "order": 4, "preferred": true, "summary": {"categories":
565
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count":
566
+ 0}, "term_analysis": {"enabled": true}}}, "fields_meta": {"count": 5, "limit":
567
+ 1000, "offset": 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
568
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
569
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
570
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
571
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
572
+ 0, "number_of_models": 0, "number_of_predictions": 0, "objective_field": {"column_number":
573
+ 4, "datatype": "string", "id": "000004", "name": "species", "optype": "categorical",
574
+ "order": 4, "term_analysis": {"enabled": true}}, "price": 0.0, "private":
575
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aae472ffa04408550019ff",
576
+ "rows": 150, "sample_rates": null, "seeds": null, "shared": false, "size":
577
+ 4608, "source": "source/53aae4710af5e815350010c8", "source_status": true,
578
+ "status": {"bytes": 4608, "code": 5, "elapsed": 449, "field_errors": [], "message":
579
+ "The dataset has been created", "row_format_errors": [], "serialized_rows":
580
+ 150}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T15:02:11.582000",
581
+ "user_metadata": {}}'
582
+ http_version: '1.1'
583
+ recorded_at: Wed, 25 Jun 2014 15:02:12 GMT
584
+ - request:
585
+ method: post
586
+ uri: https://bigml.io/dev/andromeda/ensemble?username=<USERNAME>&api_key=<API_KEY>
587
+ body:
588
+ encoding: UTF-8
589
+ string: '{"dataset":"dataset/53aae472ffa04408550019ff","number_of_models":2}'
590
+ headers:
591
+ content-type:
592
+ - application/json
593
+ response:
594
+ status:
595
+ code: 201
596
+ message: CREATED
597
+ headers:
598
+ access-control-allow-methods:
599
+ - POST,GET,PUT,DELETE
600
+ access-control-allow-origin:
601
+ - "*"
602
+ content-type:
603
+ - application/json
604
+ date:
605
+ - Wed, 25 Jun 2014 15:02:12 GMT
606
+ location:
607
+ - http://bigml.io/andromeda/ensemble/53aae4740af5e81537000871
608
+ server:
609
+ - nginx/1.0.12
610
+ transfer-encoding:
611
+ - chunked
612
+ connection:
613
+ - Close
614
+ body:
615
+ encoding: UTF-8
616
+ string: '{"balance_objective": false, "category": 0, "code": 201, "columns":
617
+ 5, "created": "2014-06-25T15:02:12.607714", "credits": 0.03515625, "credits_per_prediction":
618
+ 0.0, "dataset": "dataset/53aae472ffa04408550019ff", "dataset_field_types":
619
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
620
+ "total": 5}, "dataset_status": true, "datasets": [], "description": "", "dev":
621
+ true, "distributions": [{"importance": [], "predictions": {}, "training":
622
+ {}}, {"importance": [], "predictions": {}, "training": {}}], "error_models":
623
+ 0, "fields_maps": null, "finished_models": 0, "locale": "en-US", "max_columns":
624
+ 5, "max_rows": 150, "models": ["model/53aae4740af5e81537000874"], "name":
625
+ "iris'' dataset ensemble", "node_threshold": 512, "number_of_batchpredictions":
626
+ 0, "number_of_evaluations": 0, "number_of_models": 2, "number_of_predictions":
627
+ 0, "number_of_public_predictions": 0, "objective_field": "000004", "ordering":
628
+ 0, "out_of_bag": false, "price": 0.0, "private": true, "randomize": false,
629
+ "range": [1, 150], "replacement": true, "resource": "ensemble/53aae4740af5e81537000871",
630
+ "rows": 150, "sample_rate": 1.0, "shared": false, "size": 9216, "source":
631
+ "source/53aae4710af5e815350010c8", "source_status": true, "stat_pruning":
632
+ false, "status": {"code": 3, "elapsed": 0.036000000000000004, "message": "The
633
+ ensemble creation has been started", "progress": 0.0}, "subscription": false,
634
+ "tags": ["species"], "tlp": 1, "updated": "2014-06-25T15:02:12.607750"}'
635
+ http_version: '1.1'
636
+ recorded_at: Wed, 25 Jun 2014 15:02:13 GMT
637
+ - request:
638
+ method: get
639
+ uri: https://bigml.io/dev/andromeda/ensemble?username=<USERNAME>&api_key=<API_KEY>
640
+ body:
641
+ encoding: US-ASCII
642
+ string: ''
643
+ headers: {}
644
+ response:
645
+ status:
646
+ code: 200
647
+ message: OK
648
+ headers:
649
+ access-control-allow-methods:
650
+ - POST,GET,PUT,DELETE
651
+ access-control-allow-origin:
652
+ - "*"
653
+ content-type:
654
+ - application/json
655
+ date:
656
+ - Wed, 25 Jun 2014 15:02:13 GMT
657
+ server:
658
+ - nginx/1.0.12
659
+ vary:
660
+ - Accept-Encoding
661
+ transfer-encoding:
662
+ - chunked
663
+ connection:
664
+ - Close
665
+ body:
666
+ encoding: UTF-8
667
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
668
+ "total_count": 1}, "objects": [{"balance_objective": false, "category": 0,
669
+ "code": 200, "columns": 5, "created": "2014-06-25T15:02:12.607000", "credits":
670
+ 0.03515625, "credits_per_prediction": 0.0, "dataset": "dataset/53aae472ffa04408550019ff",
671
+ "dataset_field_types": {"categorical": 1, "datetime": 0, "numeric": 4, "preferred":
672
+ 5, "text": 0, "total": 5}, "dataset_status": true, "datasets": [], "description":
673
+ "", "dev": true, "error_models": 0, "fields_maps": null, "finished_models":
674
+ 0, "locale": "en-US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
675
+ ensemble", "node_threshold": 512, "number_of_batchpredictions": 0, "number_of_evaluations":
676
+ 0, "number_of_models": 2, "number_of_predictions": 0, "number_of_public_predictions":
677
+ 0, "objective_field": "000004", "ordering": 0, "out_of_bag": false, "price":
678
+ 0.0, "private": true, "randomize": false, "range": [1, 150], "replacement":
679
+ true, "resource": "ensemble/53aae4740af5e81537000871", "rows": 150, "sample_rate":
680
+ 1.0, "shared": false, "size": 9216, "source": "source/53aae4710af5e815350010c8",
681
+ "source_status": true, "stat_pruning": false, "status": {"code": 3, "elapsed":
682
+ 39.0, "message": "The ensemble creation has been started", "progress": 0.0},
683
+ "subscription": false, "tags": ["species"], "tlp": 1, "updated": "2014-06-25T15:02:12.646000"}]}'
684
+ http_version: '1.1'
685
+ recorded_at: Wed, 25 Jun 2014 15:02:13 GMT
686
+ recorded_with: VCR 2.9.2