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,922 @@
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 14:17:28 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 14:17:29 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 14:17:29 GMT
55
+ server:
56
+ - nginx/1.0.12
57
+ content-length:
58
+ - '101'
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 14:17:29 GMT
67
+ - request:
68
+ method: get
69
+ uri: https://bigml.io/dev/andromeda/model?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 14:17:29 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 14:17:29 GMT
99
+ - request:
100
+ method: get
101
+ uri: https://bigml.io/dev/andromeda/evaluation?username=<USERNAME>&api_key=<API_KEY>
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers: {}
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ access-control-allow-methods:
112
+ - POST,GET,PUT,DELETE
113
+ access-control-allow-origin:
114
+ - "*"
115
+ content-type:
116
+ - application/json
117
+ date:
118
+ - Wed, 25 Jun 2014 14:17:29 GMT
119
+ server:
120
+ - nginx/1.0.12
121
+ transfer-encoding:
122
+ - chunked
123
+ connection:
124
+ - Close
125
+ body:
126
+ encoding: UTF-8
127
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
128
+ "total_count": 0}, "objects": []}'
129
+ http_version: '1.1'
130
+ recorded_at: Wed, 25 Jun 2014 14:17:29 GMT
131
+ - request:
132
+ method: post
133
+ uri: https://bigml.io/dev/andromeda/source
134
+ body:
135
+ encoding: US-ASCII
136
+ string: ''
137
+ headers:
138
+ content-type:
139
+ - multipart/form-data; boundary=-----------RubyMultipartPost
140
+ content-length:
141
+ - '5150'
142
+ response:
143
+ status:
144
+ code: 201
145
+ message: CREATED
146
+ headers:
147
+ access-control-allow-methods:
148
+ - POST,GET,PUT,DELETE
149
+ access-control-allow-origin:
150
+ - "*"
151
+ content-type:
152
+ - application/json
153
+ date:
154
+ - Wed, 25 Jun 2014 14:17:29 GMT
155
+ location:
156
+ - http://bigml.io/andromeda/source/53aad9f90af5e8152c0014ac
157
+ server:
158
+ - nginx/1.0.12
159
+ content-length:
160
+ - '736'
161
+ connection:
162
+ - Close
163
+ body:
164
+ encoding: UTF-8
165
+ string: '{"category": 0, "code": 201, "content_type": "application/octet-stream",
166
+ "created": "2014-06-25T14:17:29.513122", "credits": 0.0, "description": "",
167
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
168
+ 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
169
+ "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
170
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aad9f90af5e8152c0014ac",
171
+ "shared": false, "size": 4608, "source_parser": {}, "status": {"code": 1,
172
+ "message": "The request has been queued and will be processed soon"}, "subscription":
173
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T14:17:29.513156"}'
174
+ http_version: '1.1'
175
+ recorded_at: Wed, 25 Jun 2014 14:17:29 GMT
176
+ - request:
177
+ method: get
178
+ uri: https://bigml.io/dev/andromeda/source/53aad9f90af5e8152c0014ac?username=<USERNAME>&api_key=<API_KEY>
179
+ body:
180
+ encoding: US-ASCII
181
+ string: ''
182
+ headers: {}
183
+ response:
184
+ status:
185
+ code: 200
186
+ message: OK
187
+ headers:
188
+ access-control-allow-methods:
189
+ - POST,GET,PUT,DELETE
190
+ access-control-allow-origin:
191
+ - "*"
192
+ content-type:
193
+ - application/json
194
+ date:
195
+ - Wed, 25 Jun 2014 14:17:29 GMT
196
+ server:
197
+ - nginx/1.0.12
198
+ vary:
199
+ - Accept-Encoding
200
+ content-length:
201
+ - '761'
202
+ connection:
203
+ - Close
204
+ body:
205
+ encoding: UTF-8
206
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
207
+ "created": "2014-06-25T14:17:29.513000", "credits": 0.0, "description": "",
208
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "query_total":
209
+ 0, "total": 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
210
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
211
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aad9f90af5e8152c0014ac",
212
+ "shared": false, "size": 4608, "source_parser": {"missing_tokens": []}, "status":
213
+ {"code": 3, "elapsed": 1, "message": "The source is being created"}, "subscription":
214
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-25T14:17:29.714000"}'
215
+ http_version: '1.1'
216
+ recorded_at: Wed, 25 Jun 2014 14:17:29 GMT
217
+ - request:
218
+ method: get
219
+ uri: https://bigml.io/dev/andromeda/source/53aad9f90af5e8152c0014ac?username=<USERNAME>&api_key=<API_KEY>
220
+ body:
221
+ encoding: US-ASCII
222
+ string: ''
223
+ headers: {}
224
+ response:
225
+ status:
226
+ code: 200
227
+ message: OK
228
+ headers:
229
+ access-control-allow-methods:
230
+ - POST,GET,PUT,DELETE
231
+ access-control-allow-origin:
232
+ - "*"
233
+ content-type:
234
+ - application/json
235
+ date:
236
+ - Wed, 25 Jun 2014 14:17:30 GMT
237
+ server:
238
+ - nginx/1.0.12
239
+ vary:
240
+ - Accept-Encoding
241
+ content-length:
242
+ - '1478'
243
+ connection:
244
+ - Close
245
+ body:
246
+ encoding: UTF-8
247
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
248
+ "created": "2014-06-25T14:17:29.513000", "credits": 0.0, "description": "",
249
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
250
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
251
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
252
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
253
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
254
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
255
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
256
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
257
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
258
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53aad9f90af5e8152c0014ac",
259
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
260
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
261
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
262
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
263
+ 5, "elapsed": 335, "message": "The source has been created"}, "subscription":
264
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
265
+ "2014-06-25T14:17:30.063000"}'
266
+ http_version: '1.1'
267
+ recorded_at: Wed, 25 Jun 2014 14:17:31 GMT
268
+ - request:
269
+ method: post
270
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
271
+ body:
272
+ encoding: UTF-8
273
+ string: '{"source":"source/53aad9f90af5e8152c0014ac"}'
274
+ headers:
275
+ content-type:
276
+ - application/json
277
+ response:
278
+ status:
279
+ code: 201
280
+ message: CREATED
281
+ headers:
282
+ access-control-allow-methods:
283
+ - POST,GET,PUT,DELETE
284
+ access-control-allow-origin:
285
+ - "*"
286
+ content-type:
287
+ - application/json
288
+ date:
289
+ - Wed, 25 Jun 2014 14:17:31 GMT
290
+ location:
291
+ - http://bigml.io/andromeda/dataset/53aad9fbffa04408550016be
292
+ server:
293
+ - nginx/1.0.12
294
+ transfer-encoding:
295
+ - chunked
296
+ connection:
297
+ - Close
298
+ body:
299
+ encoding: UTF-8
300
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
301
+ true, "code": 201, "columns": 0, "created": "2014-06-25T14:17:31.166300",
302
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
303
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
304
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
305
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
306
+ "total": 0}, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
307
+ 0}, "locale": "en-US", "missing_numeric_rows": 0, "missing_tokens": [], "name":
308
+ "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
309
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
310
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
311
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aad9fbffa04408550016be",
312
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
313
+ "source": "source/53aad9f90af5e8152c0014ac", "source_status": true, "status":
314
+ {"code": 1, "message": "The dataset is being processed and will be created
315
+ soon"}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T14:17:31.166336",
316
+ "user_metadata": {}}'
317
+ http_version: '1.1'
318
+ recorded_at: Wed, 25 Jun 2014 14:17:31 GMT
319
+ - request:
320
+ method: get
321
+ uri: https://bigml.io/dev/andromeda/dataset/53aad9fbffa04408550016be?username=<USERNAME>&api_key=<API_KEY>
322
+ body:
323
+ encoding: US-ASCII
324
+ string: ''
325
+ headers: {}
326
+ response:
327
+ status:
328
+ code: 200
329
+ message: OK
330
+ headers:
331
+ access-control-allow-methods:
332
+ - POST,GET,PUT,DELETE
333
+ access-control-allow-origin:
334
+ - "*"
335
+ content-type:
336
+ - application/json
337
+ date:
338
+ - Wed, 25 Jun 2014 14:17:31 GMT
339
+ server:
340
+ - nginx/1.0.12
341
+ vary:
342
+ - Accept-Encoding
343
+ transfer-encoding:
344
+ - chunked
345
+ connection:
346
+ - Close
347
+ body:
348
+ encoding: UTF-8
349
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
350
+ true, "code": 200, "columns": 5, "created": "2014-06-25T14:17:31.166000",
351
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
352
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
353
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
354
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
355
+ "total": 5}, "fields": {"000000": {"column_number": 0, "name": "sepal length",
356
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
357
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
358
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
359
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
360
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
361
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
362
+ 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
363
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
364
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
365
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
366
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
367
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
368
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aad9fbffa04408550016be",
369
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
370
+ "source": "source/53aad9f90af5e8152c0014ac", "source_status": true, "status":
371
+ {"bytes": 0, "code": 2, "elapsed": 0, "field_errors": [], "message": "The
372
+ dataset creation has been started. No partial summary yet", "row_format_errors":
373
+ [], "serialized_rows": 0}, "subscription": false, "tags": [], "term_limit":
374
+ 32, "updated": "2014-06-25T14:17:31.267000", "user_metadata": {}}'
375
+ http_version: '1.1'
376
+ recorded_at: Wed, 25 Jun 2014 14:17:31 GMT
377
+ - request:
378
+ method: get
379
+ uri: https://bigml.io/dev/andromeda/dataset/53aad9fbffa04408550016be?username=<USERNAME>&api_key=<API_KEY>
380
+ body:
381
+ encoding: US-ASCII
382
+ string: ''
383
+ headers: {}
384
+ response:
385
+ status:
386
+ code: 200
387
+ message: OK
388
+ headers:
389
+ access-control-allow-methods:
390
+ - POST,GET,PUT,DELETE
391
+ access-control-allow-origin:
392
+ - "*"
393
+ content-type:
394
+ - application/json
395
+ date:
396
+ - Wed, 25 Jun 2014 14:17:32 GMT
397
+ server:
398
+ - nginx/1.0.12
399
+ vary:
400
+ - Accept-Encoding
401
+ transfer-encoding:
402
+ - chunked
403
+ connection:
404
+ - Close
405
+ body:
406
+ encoding: UTF-8
407
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
408
+ true, "code": 200, "columns": 5, "created": "2014-06-25T14:17:31.166000",
409
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
410
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
411
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
412
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
413
+ "total": 5}, "fields": {"000000": {"column_number": 0, "datatype": "double",
414
+ "name": "sepal length", "optype": "numeric", "order": 0, "preferred": true,
415
+ "summary": {"bins": [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625,
416
+ 16], [5.1, 9], [5.2, 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8],
417
+ [5.8, 7], [5.9, 3], [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5,
418
+ 5], [6.6, 2], [6.7, 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3,
419
+ 1], [7.4, 1], [7.6, 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333,
420
+ "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population": 150,
421
+ "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
422
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
423
+ 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
424
+ 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "standard_deviation":
425
+ 0.82807, "sum": 876.5, "sum_squares": 5223.85, "variance": 0.68569}}, "000001":
426
+ {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
427
+ "numeric", "order": 1, "preferred": true, "summary": {"counts": [[2, 1], [2.2,
428
+ 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10],
429
+ [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7,
430
+ 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
431
+ 4.4, "mean": 3.05733, "median": 3.02044, "minimum": 2, "missing_count": 0,
432
+ "population": 150, "standard_deviation": 0.43587, "sum": 458.6, "sum_squares":
433
+ 1430.4, "variance": 0.18998}}, "000002": {"column_number": 2, "datatype":
434
+ "double", "name": "petal length", "optype": "numeric", "order": 2, "preferred":
435
+ true, "summary": {"bins": [[1, 1], [1.16667, 3], [1.3, 7], [1.4, 13], [1.5,
436
+ 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1], [3.3, 2], [3.5, 2], [3.6, 1], [3.75,
437
+ 2], [3.9, 3], [4.0375, 8], [4.23333, 6], [4.46667, 12], [4.6, 3], [4.74444,
438
+ 9], [4.94444, 9], [5.1, 8], [5.25, 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95,
439
+ 4], [6.1, 3], [6.3, 1], [6.4, 1], [6.6, 1], [6.7, 2], [6.9, 1]], "maximum":
440
+ 6.9, "mean": 3.758, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
441
+ 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
442
+ 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
443
+ 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
444
+ 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "standard_deviation":
445
+ 1.7653, "sum": 563.7, "sum_squares": 2582.71, "variance": 3.11628}}, "000003":
446
+ {"column_number": 3, "datatype": "double", "name": "petal width", "optype":
447
+ "numeric", "order": 3, "preferred": true, "summary": {"counts": [[0.1, 5],
448
+ [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
449
+ 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
450
+ [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
451
+ "mean": 1.19933, "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population":
452
+ 150, "standard_deviation": 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance":
453
+ 0.58101}}, "000004": {"column_number": 4, "datatype": "string", "name": "species",
454
+ "optype": "categorical", "order": 4, "preferred": true, "summary": {"categories":
455
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count":
456
+ 0}, "term_analysis": {"enabled": true}}}, "fields_meta": {"count": 5, "limit":
457
+ 1000, "offset": 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
458
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
459
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
460
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
461
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
462
+ 0, "number_of_models": 0, "number_of_predictions": 0, "objective_field": {"column_number":
463
+ 4, "datatype": "string", "id": "000004", "name": "species", "optype": "categorical",
464
+ "order": 4, "term_analysis": {"enabled": true}}, "price": 0.0, "private":
465
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aad9fbffa04408550016be",
466
+ "rows": 150, "sample_rates": null, "seeds": null, "shared": false, "size":
467
+ 4608, "source": "source/53aad9f90af5e8152c0014ac", "source_status": true,
468
+ "status": {"bytes": 4608, "code": 5, "elapsed": 390, "field_errors": [], "message":
469
+ "The dataset has been created", "row_format_errors": [], "serialized_rows":
470
+ 150}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T14:17:31.804000",
471
+ "user_metadata": {}}'
472
+ http_version: '1.1'
473
+ recorded_at: Wed, 25 Jun 2014 14:17:32 GMT
474
+ - request:
475
+ method: post
476
+ uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
477
+ body:
478
+ encoding: UTF-8
479
+ string: '{"dataset":"dataset/53aad9fbffa04408550016be"}'
480
+ headers:
481
+ content-type:
482
+ - application/json
483
+ response:
484
+ status:
485
+ code: 201
486
+ message: CREATED
487
+ headers:
488
+ access-control-allow-methods:
489
+ - POST,GET,PUT,DELETE
490
+ access-control-allow-origin:
491
+ - "*"
492
+ content-type:
493
+ - application/json
494
+ date:
495
+ - Wed, 25 Jun 2014 14:17:33 GMT
496
+ location:
497
+ - http://bigml.io/andromeda/model/53aad9fcffa04408550016c1
498
+ server:
499
+ - nginx/1.0.12
500
+ transfer-encoding:
501
+ - chunked
502
+ connection:
503
+ - Close
504
+ body:
505
+ encoding: UTF-8
506
+ string: '{"balance_objective": false, "category": 0, "code": 201, "columns":
507
+ 1, "created": "2014-06-25T14:17:32.862823", "credits": 0.017578125, "credits_per_prediction":
508
+ 0.0, "dataset": "dataset/53aad9fbffa04408550016be", "dataset_field_types":
509
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
510
+ "total": 5}, "dataset_status": true, "dataset_type": 0, "description": "",
511
+ "dev": true, "ensemble": false, "ensemble_id": "", "ensemble_index": 0, "excluded_fields":
512
+ [], "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total": 0}, "input_fields":
513
+ [], "locale": "en-US", "max_columns": 5, "max_rows": 150, "name": "iris''
514
+ dataset model", "node_threshold": 512, "number_of_batchpredictions": 0, "number_of_evaluations":
515
+ 0, "number_of_predictions": 0, "number_of_public_predictions": 0, "objective_field":
516
+ "000004", "objective_fields": ["000004"], "ordering": 0, "out_of_bag": false,
517
+ "price": 0.0, "private": true, "randomize": false, "range": [1, 150], "replacement":
518
+ false, "resource": "model/53aad9fcffa04408550016c1", "rows": 150, "sample_rate":
519
+ 1.0, "shared": false, "size": 4608, "source": "source/53aad9f90af5e8152c0014ac",
520
+ "source_status": true, "status": {"code": 1, "message": "The model is being
521
+ processed and will be created soon"}, "subscription": false, "tags": ["species"],
522
+ "updated": "2014-06-25T14:17:32.862859", "white_box": false}'
523
+ http_version: '1.1'
524
+ recorded_at: Wed, 25 Jun 2014 14:17:33 GMT
525
+ - request:
526
+ method: get
527
+ uri: https://bigml.io/dev/andromeda/model/53aad9fcffa04408550016c1?username=<USERNAME>&api_key=<API_KEY>
528
+ body:
529
+ encoding: US-ASCII
530
+ string: ''
531
+ headers: {}
532
+ response:
533
+ status:
534
+ code: 200
535
+ message: OK
536
+ headers:
537
+ access-control-allow-methods:
538
+ - POST,GET,PUT,DELETE
539
+ access-control-allow-origin:
540
+ - "*"
541
+ content-type:
542
+ - application/json
543
+ date:
544
+ - Wed, 25 Jun 2014 14:17:33 GMT
545
+ server:
546
+ - nginx/1.0.12
547
+ vary:
548
+ - Accept-Encoding
549
+ transfer-encoding:
550
+ - chunked
551
+ connection:
552
+ - Close
553
+ body:
554
+ encoding: UTF-8
555
+ string: '{"balance_objective": false, "category": 0, "code": 200, "columns":
556
+ 5, "created": "2014-06-25T14:17:32.862000", "credits": 0.017578125, "credits_per_prediction":
557
+ 0.0, "dataset": "dataset/53aad9fbffa04408550016be", "dataset_field_types":
558
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
559
+ "total": 5}, "dataset_status": true, "dataset_type": 0, "description": "",
560
+ "dev": true, "ensemble": false, "ensemble_id": "", "ensemble_index": 0, "excluded_fields":
561
+ [], "fields_meta": {"count": 5, "limit": 1000, "offset": 0, "query_total":
562
+ 5, "total": 5}, "input_fields": ["000000", "000001", "000002", "000003"],
563
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "model": {"fields":
564
+ {"000000": {"column_number": 0, "datatype": "double", "name": "sepal length",
565
+ "optype": "numeric", "order": 0, "preferred": true, "summary": {"bins": [[4.3,
566
+ 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625, 16], [5.1, 9], [5.2, 4],
567
+ [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8], [5.8, 7], [5.9, 3], [6,
568
+ 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5, 5], [6.6, 2], [6.7, 8],
569
+ [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3, 1], [7.4, 1], [7.6,
570
+ 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333, "median": 5.77889,
571
+ "minimum": 4.3, "missing_count": 0, "population": 150, "splits": [4.51526,
572
+ 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992, 5.11148, 5.18177, 5.35681,
573
+ 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889, 5.85381, 5.97078, 6.05104,
574
+ 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383, 6.63013, 6.70719, 6.79218,
575
+ 6.92597, 7.20423, 7.64746], "standard_deviation": 0.82807, "sum": 876.5, "sum_squares":
576
+ 5223.85, "variance": 0.68569}}, "000001": {"column_number": 1, "datatype":
577
+ "double", "name": "sepal width", "optype": "numeric", "order": 1, "preferred":
578
+ true, "summary": {"counts": [[2, 1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8],
579
+ [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3,
580
+ 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1,
581
+ 1], [4.2, 1], [4.4, 1]], "maximum": 4.4, "mean": 3.05733, "median": 3.02044,
582
+ "minimum": 2, "missing_count": 0, "population": 150, "standard_deviation":
583
+ 0.43587, "sum": 458.6, "sum_squares": 1430.4, "variance": 0.18998}}, "000002":
584
+ {"column_number": 2, "datatype": "double", "name": "petal length", "optype":
585
+ "numeric", "order": 2, "preferred": true, "summary": {"bins": [[1, 1], [1.16667,
586
+ 3], [1.3, 7], [1.4, 13], [1.5, 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1],
587
+ [3.3, 2], [3.5, 2], [3.6, 1], [3.75, 2], [3.9, 3], [4.0375, 8], [4.23333,
588
+ 6], [4.46667, 12], [4.6, 3], [4.74444, 9], [4.94444, 9], [5.1, 8], [5.25,
589
+ 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95, 4], [6.1, 3], [6.3, 1], [6.4, 1],
590
+ [6.6, 1], [6.7, 2], [6.9, 1]], "maximum": 6.9, "mean": 3.758, "median": 4.34142,
591
+ "minimum": 1, "missing_count": 0, "population": 150, "splits": [1.25138, 1.32426,
592
+ 1.37171, 1.40962, 1.44567, 1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033,
593
+ 3.675, 3.94203, 4.0469, 4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566,
594
+ 4.83445, 4.93363, 5.03807, 5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496,
595
+ 6.02913, 6.38125], "standard_deviation": 1.7653, "sum": 563.7, "sum_squares":
596
+ 2582.71, "variance": 3.11628}}, "000003": {"column_number": 3, "datatype":
597
+ "double", "name": "petal width", "optype": "numeric", "order": 3, "preferred":
598
+ true, "summary": {"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5,
599
+ 1], [0.6, 1], [1, 7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12],
600
+ [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3,
601
+ 8], [2.4, 3], [2.5, 3]], "maximum": 2.5, "mean": 1.19933, "median": 1.32848,
602
+ "minimum": 0.1, "missing_count": 0, "population": 150, "standard_deviation":
603
+ 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance": 0.58101}}, "000004":
604
+ {"column_number": 4, "datatype": "string", "name": "species", "optype": "categorical",
605
+ "order": 4, "preferred": true, "summary": {"categories": [["Iris-setosa",
606
+ 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count": 0},
607
+ "term_analysis": {"enabled": true}}}, "kind": "mtree", "missing_tokens": ["",
608
+ "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!", "?", "#NULL!", "#NUM!",
609
+ "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A", "NA"], "model_fields":
610
+ {"000004": {"column_number": 4, "datatype": "string", "name": "species", "optype":
611
+ "categorical", "preferred": true, "term_analysis": {"enabled": true}}}, "node_threshold":
612
+ 512}, "name": "iris'' dataset model", "node_threshold": 512, "number_of_batchpredictions":
613
+ 0, "number_of_evaluations": 0, "number_of_predictions": 0, "number_of_public_predictions":
614
+ 0, "objective_field": "000004", "objective_fields": ["000004"], "ordering":
615
+ 0, "out_of_bag": false, "price": 0.0, "private": true, "randomize": false,
616
+ "range": [1, 150], "replacement": false, "resource": "model/53aad9fcffa04408550016c1",
617
+ "rows": 150, "sample_rate": 1.0, "shared": false, "size": 4608, "source":
618
+ "source/53aad9f90af5e8152c0014ac", "source_status": true, "status": {"code":
619
+ 2, "elapsed": 0, "message": "The model creation has been started. No partial
620
+ model yet", "progress": 0}, "subscription": false, "tags": ["species"], "updated":
621
+ "2014-06-25T14:17:33.039000", "white_box": false}'
622
+ http_version: '1.1'
623
+ recorded_at: Wed, 25 Jun 2014 14:17:33 GMT
624
+ - request:
625
+ method: get
626
+ uri: https://bigml.io/dev/andromeda/model/53aad9fcffa04408550016c1?username=<USERNAME>&api_key=<API_KEY>
627
+ body:
628
+ encoding: US-ASCII
629
+ string: ''
630
+ headers: {}
631
+ response:
632
+ status:
633
+ code: 200
634
+ message: OK
635
+ headers:
636
+ access-control-allow-methods:
637
+ - POST,GET,PUT,DELETE
638
+ access-control-allow-origin:
639
+ - "*"
640
+ content-type:
641
+ - application/json
642
+ date:
643
+ - Wed, 25 Jun 2014 14:17:34 GMT
644
+ server:
645
+ - nginx/1.0.12
646
+ vary:
647
+ - Accept-Encoding
648
+ transfer-encoding:
649
+ - chunked
650
+ connection:
651
+ - Close
652
+ body:
653
+ encoding: UTF-8
654
+ string: '{"balance_objective": false, "category": 0, "code": 200, "columns":
655
+ 5, "created": "2014-06-25T14:17:32.862000", "credits": 0.017578125, "credits_per_prediction":
656
+ 0.0, "dataset": "dataset/53aad9fbffa04408550016be", "dataset_field_types":
657
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
658
+ "total": 5}, "dataset_status": true, "dataset_type": 0, "description": "",
659
+ "dev": true, "ensemble": false, "ensemble_id": "", "ensemble_index": 0, "excluded_fields":
660
+ [], "fields_meta": {"count": 5, "limit": 1000, "offset": 0, "query_total":
661
+ 5, "total": 5}, "input_fields": ["000000", "000001", "000002", "000003"],
662
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "model": {"depth_threshold":
663
+ 512, "distribution": {"predictions": {"categories": [["Iris-setosa", 50],
664
+ ["Iris-versicolor", 50], ["Iris-virginica", 50]]}, "training": {"categories":
665
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]]}},
666
+ "fields": {"000000": {"column_number": 0, "datatype": "double", "name": "sepal
667
+ length", "optype": "numeric", "order": 0, "preferred": true, "summary": {"bins":
668
+ [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625, 16], [5.1, 9], [5.2,
669
+ 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8], [5.8, 7], [5.9, 3],
670
+ [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5, 5], [6.6, 2], [6.7,
671
+ 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3, 1], [7.4, 1], [7.6,
672
+ 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333, "median": 5.77889,
673
+ "minimum": 4.3, "missing_count": 0, "population": 150, "splits": [4.51526,
674
+ 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992, 5.11148, 5.18177, 5.35681,
675
+ 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889, 5.85381, 5.97078, 6.05104,
676
+ 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383, 6.63013, 6.70719, 6.79218,
677
+ 6.92597, 7.20423, 7.64746], "standard_deviation": 0.82807, "sum": 876.5, "sum_squares":
678
+ 5223.85, "variance": 0.68569}}, "000001": {"column_number": 1, "datatype":
679
+ "double", "name": "sepal width", "optype": "numeric", "order": 1, "preferred":
680
+ true, "summary": {"counts": [[2, 1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8],
681
+ [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3,
682
+ 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1,
683
+ 1], [4.2, 1], [4.4, 1]], "maximum": 4.4, "mean": 3.05733, "median": 3.02044,
684
+ "minimum": 2, "missing_count": 0, "population": 150, "standard_deviation":
685
+ 0.43587, "sum": 458.6, "sum_squares": 1430.4, "variance": 0.18998}}, "000002":
686
+ {"column_number": 2, "datatype": "double", "name": "petal length", "optype":
687
+ "numeric", "order": 2, "preferred": true, "summary": {"bins": [[1, 1], [1.16667,
688
+ 3], [1.3, 7], [1.4, 13], [1.5, 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1],
689
+ [3.3, 2], [3.5, 2], [3.6, 1], [3.75, 2], [3.9, 3], [4.0375, 8], [4.23333,
690
+ 6], [4.46667, 12], [4.6, 3], [4.74444, 9], [4.94444, 9], [5.1, 8], [5.25,
691
+ 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95, 4], [6.1, 3], [6.3, 1], [6.4, 1],
692
+ [6.6, 1], [6.7, 2], [6.9, 1]], "maximum": 6.9, "mean": 3.758, "median": 4.34142,
693
+ "minimum": 1, "missing_count": 0, "population": 150, "splits": [1.25138, 1.32426,
694
+ 1.37171, 1.40962, 1.44567, 1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033,
695
+ 3.675, 3.94203, 4.0469, 4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566,
696
+ 4.83445, 4.93363, 5.03807, 5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496,
697
+ 6.02913, 6.38125], "standard_deviation": 1.7653, "sum": 563.7, "sum_squares":
698
+ 2582.71, "variance": 3.11628}}, "000003": {"column_number": 3, "datatype":
699
+ "double", "name": "petal width", "optype": "numeric", "order": 3, "preferred":
700
+ true, "summary": {"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5,
701
+ 1], [0.6, 1], [1, 7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12],
702
+ [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3,
703
+ 8], [2.4, 3], [2.5, 3]], "maximum": 2.5, "mean": 1.19933, "median": 1.32848,
704
+ "minimum": 0.1, "missing_count": 0, "population": 150, "standard_deviation":
705
+ 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance": 0.58101}}, "000004":
706
+ {"column_number": 4, "datatype": "string", "name": "species", "optype": "categorical",
707
+ "order": 4, "preferred": true, "summary": {"categories": [["Iris-setosa",
708
+ 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count": 0},
709
+ "term_analysis": {"enabled": true}}}, "importance": [["000002", 0.70194],
710
+ ["000003", 0.29094], ["000001", 0.00712]], "kind": "mtree", "missing_tokens":
711
+ ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!", "?", "#NULL!",
712
+ "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A", "NA"], "model_fields":
713
+ {"000001": {"column_number": 1, "datatype": "double", "name": "sepal width",
714
+ "optype": "numeric", "preferred": true}, "000002": {"column_number": 2, "datatype":
715
+ "double", "name": "petal length", "optype": "numeric", "preferred": true},
716
+ "000003": {"column_number": 3, "datatype": "double", "name": "petal width",
717
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
718
+ "string", "name": "species", "optype": "categorical", "preferred": true, "term_analysis":
719
+ {"enabled": true}}}, "node_threshold": 512, "root": {"children": [{"children":
720
+ [{"children": [{"confidence": 0.91799, "count": 43, "id": 3, "objective_summary":
721
+ {"categories": [["Iris-virginica", 43]]}, "output": "Iris-virginica", "predicate":
722
+ {"field": "000002", "operator": ">", "value": 4.85}}, {"children": [{"confidence":
723
+ 0.20654, "count": 1, "id": 5, "objective_summary": {"categories": [["Iris-versicolor",
724
+ 1]]}, "output": "Iris-versicolor", "predicate": {"field": "000001", "operator":
725
+ ">", "value": 3.1}}, {"confidence": 0.34237, "count": 2, "id": 6, "objective_summary":
726
+ {"categories": [["Iris-virginica", 2]]}, "output": "Iris-virginica", "predicate":
727
+ {"field": "000001", "operator": "<=", "value": 3.1}}], "confidence": 0.20765,
728
+ "count": 3, "id": 4, "objective_summary": {"categories": [["Iris-virginica",
729
+ 2], ["Iris-versicolor", 1]]}, "output": "Iris-virginica", "predicate": {"field":
730
+ "000002", "operator": "<=", "value": 4.85}}], "confidence": 0.88664, "count":
731
+ 46, "id": 2, "objective_summary": {"categories": [["Iris-virginica", 45],
732
+ ["Iris-versicolor", 1]]}, "output": "Iris-virginica", "predicate": {"field":
733
+ "000003", "operator": ">", "value": 1.75}}, {"children": [{"children": [{"children":
734
+ [{"confidence": 0.20654, "count": 1, "id": 10, "objective_summary": {"categories":
735
+ [["Iris-virginica", 1]]}, "output": "Iris-virginica", "predicate": {"field":
736
+ "000002", "operator": ">", "value": 5.45}}, {"confidence": 0.34237, "count":
737
+ 2, "id": 11, "objective_summary": {"categories": [["Iris-versicolor", 2]]},
738
+ "output": "Iris-versicolor", "predicate": {"field": "000002", "operator":
739
+ "<=", "value": 5.45}}], "confidence": 0.20765, "count": 3, "id": 9, "objective_summary":
740
+ {"categories": [["Iris-versicolor", 2], ["Iris-virginica", 1]]}, "output":
741
+ "Iris-versicolor", "predicate": {"field": "000003", "operator": ">", "value":
742
+ 1.55}}, {"confidence": 0.43849, "count": 3, "id": 12, "objective_summary":
743
+ {"categories": [["Iris-virginica", 3]]}, "output": "Iris-virginica", "predicate":
744
+ {"field": "000003", "operator": "<=", "value": 1.55}}], "confidence": 0.29999,
745
+ "count": 6, "id": 8, "objective_summary": {"categories": [["Iris-virginica",
746
+ 4], ["Iris-versicolor", 2]]}, "output": "Iris-virginica", "predicate": {"field":
747
+ "000002", "operator": ">", "value": 4.95}}, {"children": [{"confidence": 0.20654,
748
+ "count": 1, "id": 14, "objective_summary": {"categories": [["Iris-virginica",
749
+ 1]]}, "output": "Iris-virginica", "predicate": {"field": "000003", "operator":
750
+ ">", "value": 1.65}}, {"confidence": 0.92444, "count": 47, "id": 15, "objective_summary":
751
+ {"categories": [["Iris-versicolor", 47]]}, "output": "Iris-versicolor", "predicate":
752
+ {"field": "000003", "operator": "<=", "value": 1.65}}], "confidence": 0.89101,
753
+ "count": 48, "id": 13, "objective_summary": {"categories": [["Iris-versicolor",
754
+ 47], ["Iris-virginica", 1]]}, "output": "Iris-versicolor", "predicate": {"field":
755
+ "000002", "operator": "<=", "value": 4.95}}], "confidence": 0.8009, "count":
756
+ 54, "id": 7, "objective_summary": {"categories": [["Iris-versicolor", 49],
757
+ ["Iris-virginica", 5]]}, "output": "Iris-versicolor", "predicate": {"field":
758
+ "000003", "operator": "<=", "value": 1.75}}], "confidence": 0.40383, "count":
759
+ 100, "id": 1, "objective_summary": {"categories": [["Iris-versicolor", 50],
760
+ ["Iris-virginica", 50]]}, "output": "Iris-versicolor", "predicate": {"field":
761
+ "000002", "operator": ">", "value": 2.45}}, {"confidence": 0.92865, "count":
762
+ 50, "id": 16, "objective_summary": {"categories": [["Iris-setosa", 50]]},
763
+ "output": "Iris-setosa", "predicate": {"field": "000002", "operator": "<=",
764
+ "value": 2.45}}], "confidence": 0.26289, "count": 150, "id": 0, "objective_summary":
765
+ {"categories": [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica",
766
+ 50]]}, "output": "Iris-setosa", "predicate": true}}, "name": "iris'' dataset
767
+ model", "node_threshold": 512, "number_of_batchpredictions": 0, "number_of_evaluations":
768
+ 0, "number_of_predictions": 0, "number_of_public_predictions": 0, "objective_field":
769
+ "000004", "objective_fields": ["000004"], "ordering": 0, "out_of_bag": false,
770
+ "price": 0.0, "private": true, "randomize": false, "range": [1, 150], "replacement":
771
+ false, "resource": "model/53aad9fcffa04408550016c1", "rows": 150, "sample_rate":
772
+ 1.0, "selective_pruning": true, "shared": false, "size": 4608, "source": "source/53aad9f90af5e8152c0014ac",
773
+ "source_status": true, "stat_pruning": true, "status": {"code": 5, "elapsed":
774
+ 213, "message": "The model has been created", "progress": 1.0}, "subscription":
775
+ false, "tags": ["species"], "updated": "2014-06-25T14:17:33.220000", "white_box":
776
+ false}'
777
+ http_version: '1.1'
778
+ recorded_at: Wed, 25 Jun 2014 14:17:34 GMT
779
+ - request:
780
+ method: get
781
+ uri: https://bigml.io/dev/andromeda/dataset/53aad9fbffa04408550016be?username=<USERNAME>&api_key=<API_KEY>
782
+ body:
783
+ encoding: US-ASCII
784
+ string: ''
785
+ headers: {}
786
+ response:
787
+ status:
788
+ code: 200
789
+ message: OK
790
+ headers:
791
+ access-control-allow-methods:
792
+ - POST,GET,PUT,DELETE
793
+ access-control-allow-origin:
794
+ - "*"
795
+ content-type:
796
+ - application/json
797
+ date:
798
+ - Wed, 25 Jun 2014 14:17:34 GMT
799
+ server:
800
+ - nginx/1.0.12
801
+ vary:
802
+ - Accept-Encoding
803
+ transfer-encoding:
804
+ - chunked
805
+ connection:
806
+ - Close
807
+ body:
808
+ encoding: UTF-8
809
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
810
+ true, "code": 200, "columns": 5, "created": "2014-06-25T14:17:31.166000",
811
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
812
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
813
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
814
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
815
+ "total": 5}, "fields": {"000000": {"column_number": 0, "datatype": "double",
816
+ "name": "sepal length", "optype": "numeric", "order": 0, "preferred": true,
817
+ "summary": {"bins": [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625,
818
+ 16], [5.1, 9], [5.2, 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8],
819
+ [5.8, 7], [5.9, 3], [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5,
820
+ 5], [6.6, 2], [6.7, 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3,
821
+ 1], [7.4, 1], [7.6, 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333,
822
+ "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population": 150,
823
+ "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
824
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
825
+ 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
826
+ 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "standard_deviation":
827
+ 0.82807, "sum": 876.5, "sum_squares": 5223.85, "variance": 0.68569}}, "000001":
828
+ {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
829
+ "numeric", "order": 1, "preferred": true, "summary": {"counts": [[2, 1], [2.2,
830
+ 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10],
831
+ [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7,
832
+ 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
833
+ 4.4, "mean": 3.05733, "median": 3.02044, "minimum": 2, "missing_count": 0,
834
+ "population": 150, "standard_deviation": 0.43587, "sum": 458.6, "sum_squares":
835
+ 1430.4, "variance": 0.18998}}, "000002": {"column_number": 2, "datatype":
836
+ "double", "name": "petal length", "optype": "numeric", "order": 2, "preferred":
837
+ true, "summary": {"bins": [[1, 1], [1.16667, 3], [1.3, 7], [1.4, 13], [1.5,
838
+ 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1], [3.3, 2], [3.5, 2], [3.6, 1], [3.75,
839
+ 2], [3.9, 3], [4.0375, 8], [4.23333, 6], [4.46667, 12], [4.6, 3], [4.74444,
840
+ 9], [4.94444, 9], [5.1, 8], [5.25, 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95,
841
+ 4], [6.1, 3], [6.3, 1], [6.4, 1], [6.6, 1], [6.7, 2], [6.9, 1]], "maximum":
842
+ 6.9, "mean": 3.758, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
843
+ 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
844
+ 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
845
+ 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
846
+ 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "standard_deviation":
847
+ 1.7653, "sum": 563.7, "sum_squares": 2582.71, "variance": 3.11628}}, "000003":
848
+ {"column_number": 3, "datatype": "double", "name": "petal width", "optype":
849
+ "numeric", "order": 3, "preferred": true, "summary": {"counts": [[0.1, 5],
850
+ [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
851
+ 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
852
+ [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
853
+ "mean": 1.19933, "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population":
854
+ 150, "standard_deviation": 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance":
855
+ 0.58101}}, "000004": {"column_number": 4, "datatype": "string", "name": "species",
856
+ "optype": "categorical", "order": 4, "preferred": true, "summary": {"categories":
857
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count":
858
+ 0}, "term_analysis": {"enabled": true}}}, "fields_meta": {"count": 5, "limit":
859
+ 1000, "offset": 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
860
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
861
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
862
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
863
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
864
+ 0, "number_of_models": 1, "number_of_predictions": 0, "objective_field": {"column_number":
865
+ 4, "datatype": "string", "id": "000004", "name": "species", "optype": "categorical",
866
+ "order": 4, "term_analysis": {"enabled": true}}, "price": 0.0, "private":
867
+ true, "ranges": null, "replacements": null, "resource": "dataset/53aad9fbffa04408550016be",
868
+ "rows": 150, "sample_rates": null, "seeds": null, "shared": false, "size":
869
+ 4608, "source": "source/53aad9f90af5e8152c0014ac", "source_status": true,
870
+ "status": {"bytes": 4608, "code": 5, "elapsed": 390, "field_errors": [], "message":
871
+ "The dataset has been created", "row_format_errors": [], "serialized_rows":
872
+ 150}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-25T14:17:32.882000",
873
+ "user_metadata": {}}'
874
+ http_version: '1.1'
875
+ recorded_at: Wed, 25 Jun 2014 14:17:34 GMT
876
+ - request:
877
+ method: post
878
+ uri: https://bigml.io/dev/andromeda/evaluation?username=<USERNAME>&api_key=<API_KEY>
879
+ body:
880
+ encoding: UTF-8
881
+ string: '{"model":"model/53aad9fcffa04408550016c1","dataset":"dataset/53aad9fbffa04408550016be"}'
882
+ headers:
883
+ content-type:
884
+ - application/json
885
+ response:
886
+ status:
887
+ code: 201
888
+ message: CREATED
889
+ headers:
890
+ access-control-allow-methods:
891
+ - POST,GET,PUT,DELETE
892
+ access-control-allow-origin:
893
+ - "*"
894
+ content-type:
895
+ - application/json
896
+ date:
897
+ - Wed, 25 Jun 2014 14:17:35 GMT
898
+ location:
899
+ - http://bigml.io/andromeda/evaluation/53aad9feffa04408550016c4
900
+ server:
901
+ - nginx/1.0.12
902
+ transfer-encoding:
903
+ - chunked
904
+ connection:
905
+ - Close
906
+ body:
907
+ encoding: UTF-8
908
+ string: '{"category": 0, "code": 201, "combiner": 0, "created": "2014-06-25T14:17:34.850471",
909
+ "credits": 1.5, "dataset": "dataset/53aad9fbffa04408550016be", "dataset_status":
910
+ true, "dataset_type": 0, "datasets": [], "description": "", "dev": true, "ensemble":
911
+ "", "fields_map": {}, "locale": "en-US", "max_rows": 150, "missing_strategy":
912
+ 0, "model": "model/53aad9fcffa04408550016c1", "model_status": true, "model_type":
913
+ 0, "name": "Evaluation of iris'' dataset model with iris'' dataset", "number_of_models":
914
+ 1, "ordering": 0, "out_of_bag": false, "private": true, "range": [1, 150],
915
+ "replacement": false, "resource": "evaluation/53aad9feffa04408550016c4", "result":
916
+ {}, "rows": 150, "sample_rate": 1.0, "sampled_rows": 150, "shared": false,
917
+ "size": 4608, "status": {"code": 1, "message": "The evaluation is being processed
918
+ and will be performed soon"}, "subscription": false, "tags": [], "type": 0,
919
+ "updated": "2014-06-25T14:17:34.850512"}'
920
+ http_version: '1.1'
921
+ recorded_at: Wed, 25 Jun 2014 14:17:35 GMT
922
+ recorded_with: VCR 2.9.2