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
@@ -6,158 +6,84 @@ http_interactions:
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
- headers:
10
- connection:
11
- - close
9
+ headers: {}
12
10
  response:
13
11
  status:
14
12
  code: 200
15
13
  message: OK
16
14
  headers:
15
+ access-control-allow-methods:
16
+ - POST,GET,PUT,DELETE
17
+ access-control-allow-origin:
18
+ - "*"
17
19
  content-type:
18
- - application/json; charset=utf-8
20
+ - application/json
19
21
  date:
20
- - Sat, 14 Jul 2012 15:23:51 GMT
22
+ - Thu, 26 Jun 2014 14:50:15 GMT
21
23
  server:
22
24
  - nginx/1.0.12
23
25
  content-length:
24
- - '1293'
26
+ - '101'
25
27
  connection:
26
28
  - Close
27
29
  body:
28
- encoding: US-ASCII
29
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-07-14T15:25:21.809000", "credits":
32
- 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
33
- 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
34
- 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
35
- 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
36
- 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
37
- 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
38
- "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
39
- 1, "number_of_models": 1, "number_of_predictions": 1, "private": true, "resource":
40
- "source/50018f611552681d68000031", "size": 4608, "source_parser": {"header":
41
- true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
42
- "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
43
- "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
44
- {"code": 5, "elapsed": 83, "message": "The source has been created"}, "tags":
45
- [], "type": 0, "updated": "2012-07-14T15:24:22.590000"}]}'
46
- http_version: '1.1'
47
- recorded_at: Sat, 14 Jul 2012 15:24:54 GMT
48
- - request:
49
- method: delete
50
- uri: https://bigml.io/dev/andromeda/source/50018f611552681d68000031?username=<USERNAME>&api_key=<API_KEY>
51
- body:
52
- encoding: US-ASCII
53
- string: ''
54
- headers:
55
- connection:
56
- - close
57
- response:
58
- status:
59
- code: 204
60
- message: NO CONTENT
61
- headers:
62
- content-length:
63
- - '0'
64
- content-type:
65
- - text/html; charset=utf-8
66
- date:
67
- - Sat, 14 Jul 2012 15:18:53 GMT
68
- server:
69
- - nginx/1.0.12
70
- connection:
71
- - Close
72
- body:
73
- encoding: US-ASCII
74
- string: ''
30
+ encoding: UTF-8
31
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
32
+ "total_count": 0}, "objects": []}'
75
33
  http_version: '1.1'
76
- recorded_at: Sat, 14 Jul 2012 15:24:56 GMT
34
+ recorded_at: Thu, 26 Jun 2014 14:50:16 GMT
77
35
  - request:
78
36
  method: get
79
37
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
80
38
  body:
81
39
  encoding: US-ASCII
82
40
  string: ''
83
- headers:
84
- connection:
85
- - close
41
+ headers: {}
86
42
  response:
87
43
  status:
88
44
  code: 200
89
45
  message: OK
90
46
  headers:
47
+ access-control-allow-methods:
48
+ - POST,GET,PUT,DELETE
49
+ access-control-allow-origin:
50
+ - "*"
91
51
  content-type:
92
- - application/json; charset=utf-8
93
- date:
94
- - Sat, 14 Jul 2012 15:23:54 GMT
95
- server:
96
- - nginx/1.0.12
97
- content-length:
98
- - '717'
99
- connection:
100
- - Close
101
- body:
102
- encoding: US-ASCII
103
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
104
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
105
- "created": "2012-07-14T15:25:23.379000", "credits": 0.00439453125, "description":
106
- "", "dev": true, "locale": "en_US", "name": "iris'' dataset", "number_of_models":
107
- 1, "number_of_predictions": 1, "private": true, "resource": "dataset/50018f631552681ee4000016",
108
- "rows": 150, "size": 4608, "source": "source/50018f611552681d68000031", "source_status":
109
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 842, "field_errors":
110
- [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
111
- 150}, "tags": [], "updated": "2012-07-14T15:24:22.596000"}]}'
112
- http_version: '1.1'
113
- recorded_at: Sat, 14 Jul 2012 15:24:57 GMT
114
- - request:
115
- method: delete
116
- uri: https://bigml.io/dev/andromeda/dataset/50018f631552681ee4000016?username=<USERNAME>&api_key=<API_KEY>
117
- body:
118
- encoding: US-ASCII
119
- string: ''
120
- headers:
121
- connection:
122
- - close
123
- response:
124
- status:
125
- code: 204
126
- message: NO CONTENT
127
- headers:
128
- content-length:
129
- - '0'
130
- content-type:
131
- - text/html; charset=utf-8
52
+ - application/json
132
53
  date:
133
- - Sat, 14 Jul 2012 15:18:58 GMT
54
+ - Thu, 26 Jun 2014 14:50:15 GMT
134
55
  server:
135
56
  - nginx/1.0.12
57
+ transfer-encoding:
58
+ - chunked
136
59
  connection:
137
60
  - Close
138
61
  body:
139
- encoding: US-ASCII
140
- string: ''
62
+ encoding: UTF-8
63
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
64
+ "total_count": 0}, "objects": []}'
141
65
  http_version: '1.1'
142
- recorded_at: Sat, 14 Jul 2012 15:25:01 GMT
66
+ recorded_at: Thu, 26 Jun 2014 14:50:16 GMT
143
67
  - request:
144
68
  method: get
145
69
  uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
146
70
  body:
147
71
  encoding: US-ASCII
148
72
  string: ''
149
- headers:
150
- connection:
151
- - close
73
+ headers: {}
152
74
  response:
153
75
  status:
154
76
  code: 200
155
77
  message: OK
156
78
  headers:
79
+ access-control-allow-methods:
80
+ - POST,GET,PUT,DELETE
81
+ access-control-allow-origin:
82
+ - "*"
157
83
  content-type:
158
- - application/json; charset=utf-8
84
+ - application/json
159
85
  date:
160
- - Sat, 14 Jul 2012 15:23:59 GMT
86
+ - Thu, 26 Jun 2014 14:50:15 GMT
161
87
  server:
162
88
  - nginx/1.0.12
163
89
  transfer-encoding:
@@ -165,123 +91,43 @@ http_interactions:
165
91
  connection:
166
92
  - Close
167
93
  body:
168
- encoding: US-ASCII
169
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
170
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
171
- "created": "2012-07-14T15:24:20.992000", "credits": 0.017578125, "dataset":
172
- "dataset/50018f631552681ee4000016", "dataset_status": false, "description":
173
- "", "dev": true, "holdout": 0.0, "input_fields": ["000000", "000001", "000002",
174
- "000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris''
175
- dataset model", "number_of_predictions": 1, "objective_fields": ["000004"],
176
- "private": true, "range": [1, 150], "resource": "model/50018f24035d074059000036",
177
- "rows": 150, "size": 4608, "source": "source/50018f611552681d68000031", "source_status":
178
- false, "status": {"code": 5, "elapsed": 142, "message": "The model has been
179
- created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:24:22.599000"}]}'
180
- http_version: '1.1'
181
- recorded_at: Sat, 14 Jul 2012 15:25:02 GMT
182
- - request:
183
- method: delete
184
- uri: https://bigml.io/dev/andromeda/model/50018f24035d074059000036?username=<USERNAME>&api_key=<API_KEY>
185
- body:
186
- encoding: US-ASCII
187
- string: ''
188
- headers:
189
- connection:
190
- - close
191
- response:
192
- status:
193
- code: 204
194
- message: NO CONTENT
195
- headers:
196
- content-length:
197
- - '0'
198
- content-type:
199
- - text/html; charset=utf-8
200
- date:
201
- - Sat, 14 Jul 2012 15:19:01 GMT
202
- server:
203
- - nginx/1.0.12
204
- connection:
205
- - Close
206
- body:
207
- encoding: US-ASCII
208
- string: ''
94
+ encoding: UTF-8
95
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
96
+ "total_count": 0}, "objects": []}'
209
97
  http_version: '1.1'
210
- recorded_at: Sat, 14 Jul 2012 15:25:04 GMT
98
+ recorded_at: Thu, 26 Jun 2014 14:50:16 GMT
211
99
  - request:
212
100
  method: get
213
101
  uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
214
102
  body:
215
103
  encoding: US-ASCII
216
104
  string: ''
217
- headers:
218
- connection:
219
- - close
105
+ headers: {}
220
106
  response:
221
107
  status:
222
108
  code: 200
223
109
  message: OK
224
110
  headers:
111
+ access-control-allow-methods:
112
+ - POST,GET,PUT,DELETE
113
+ access-control-allow-origin:
114
+ - "*"
225
115
  content-type:
226
- - application/json; charset=utf-8
227
- date:
228
- - Sat, 14 Jul 2012 15:24:04 GMT
229
- server:
230
- - nginx/1.0.12
231
- content-length:
232
- - '1339'
233
- connection:
234
- - Close
235
- body:
236
- encoding: US-ASCII
237
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
238
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-07-14T15:24:22.584000",
239
- "credits": 0.01, "dataset": "dataset/50018f631552681ee4000016", "dataset_status":
240
- false, "description": "", "dev": true, "fields": {"000001": {"column_number":
241
- 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
242
- true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
243
- length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
244
- 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
245
- true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f24035d074059000036",
246
- "model_status": false, "name": "Prediction for species", "objective_fields":
247
- ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
248
- {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
249
- "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
250
- [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f26035d07404e00002b",
251
- "source": "source/50018f611552681d68000031", "source_status": false, "status":
252
- {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
253
- "2012-07-14T15:24:22.584000"}]}'
254
- http_version: '1.1'
255
- recorded_at: Sat, 14 Jul 2012 15:25:07 GMT
256
- - request:
257
- method: delete
258
- uri: https://bigml.io/dev/andromeda/prediction/50018f26035d07404e00002b?username=<USERNAME>&api_key=<API_KEY>
259
- body:
260
- encoding: US-ASCII
261
- string: ''
262
- headers:
263
- connection:
264
- - close
265
- response:
266
- status:
267
- code: 204
268
- message: NO CONTENT
269
- headers:
270
- content-length:
271
- - '0'
272
- content-type:
273
- - text/html; charset=utf-8
116
+ - application/json
274
117
  date:
275
- - Sat, 14 Jul 2012 15:19:05 GMT
118
+ - Thu, 26 Jun 2014 14:50:17 GMT
276
119
  server:
277
120
  - nginx/1.0.12
121
+ transfer-encoding:
122
+ - chunked
278
123
  connection:
279
124
  - Close
280
125
  body:
281
- encoding: US-ASCII
282
- string: ''
126
+ encoding: UTF-8
127
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
128
+ "total_count": 0}, "objects": []}'
283
129
  http_version: '1.1'
284
- recorded_at: Sat, 14 Jul 2012 15:25:08 GMT
130
+ recorded_at: Thu, 26 Jun 2014 14:50:18 GMT
285
131
  - request:
286
132
  method: post
287
133
  uri: https://bigml.io/dev/andromeda/source
@@ -292,213 +138,415 @@ http_interactions:
292
138
  content-type:
293
139
  - multipart/form-data; boundary=-----------RubyMultipartPost
294
140
  content-length:
295
- - '5149'
296
- connection:
297
- - close
141
+ - '5150'
298
142
  response:
299
143
  status:
300
144
  code: 201
301
145
  message: CREATED
302
146
  headers:
147
+ access-control-allow-methods:
148
+ - POST,GET,PUT,DELETE
149
+ access-control-allow-origin:
150
+ - "*"
303
151
  content-type:
304
- - application/json; charset=utf-8
152
+ - application/json
305
153
  date:
306
- - Sat, 14 Jul 2012 15:24:07 GMT
154
+ - Thu, 26 Jun 2014 14:50:17 GMT
307
155
  location:
308
- - http://bigml.io/andromeda/source/50018f7b155268794e000029
156
+ - http://bigml.io/andromeda/source/53ac33290af5e8152c005f6b
309
157
  server:
310
158
  - nginx/1.0.12
311
159
  content-length:
312
- - '580'
160
+ - '736'
313
161
  connection:
314
162
  - Close
315
163
  body:
316
- encoding: US-ASCII
317
- string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
318
- "created": "2012-07-14T15:25:47.146007", "credits": 0.0, "description": "",
319
- "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
320
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
321
- 0, "private": true, "resource": "source/50018f7b155268794e000029", "size":
322
- 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
323
- been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
324
- "2012-07-14T15:25:47.146041"}'
164
+ encoding: UTF-8
165
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
166
+ "created": "2014-06-26T14:50:17.884000", "credits": 0.0, "description": "",
167
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
168
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
169
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
170
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
171
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
172
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
173
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
174
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
175
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
176
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac33290af5e8152c005f6b",
177
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
178
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
179
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
180
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
181
+ 5, "elapsed": 329, "message": "The source has been created"}, "subscription":
182
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
183
+ "2014-06-26T14:50:18.408000"}'
325
184
  http_version: '1.1'
326
- recorded_at: Sat, 14 Jul 2012 15:25:10 GMT
185
+ recorded_at: Thu, 26 Jun 2014 14:50:18 GMT
327
186
  - request:
328
187
  method: post
329
188
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
330
189
  body:
331
190
  encoding: UTF-8
332
- string: ! '{"source":"source/50018f7b155268794e000029"}'
191
+ string: '{"source":"source/53ac33290af5e8152c005f6b"}'
333
192
  headers:
334
193
  content-type:
335
194
  - application/json
336
- connection:
337
- - close
338
195
  response:
339
196
  status:
340
197
  code: 201
341
198
  message: CREATED
342
199
  headers:
200
+ access-control-allow-methods:
201
+ - POST,GET,PUT,DELETE
202
+ access-control-allow-origin:
203
+ - "*"
343
204
  content-type:
344
- - application/json; charset=utf-8
205
+ - application/json
345
206
  date:
346
- - Sat, 14 Jul 2012 15:19:09 GMT
207
+ - Thu, 26 Jun 2014 14:50:19 GMT
347
208
  location:
348
- - http://bigml.io/andromeda/dataset/50018f3c035d07404e00002e
209
+ - http://bigml.io/andromeda/dataset/53ac332b0af5e815310020fd
349
210
  server:
350
211
  - nginx/1.0.12
351
- content-length:
352
- - '934'
212
+ transfer-encoding:
213
+ - chunked
353
214
  connection:
354
215
  - Close
355
216
  body:
356
- encoding: US-ASCII
357
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:24:44.779713",
358
- "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
359
- {"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
360
- {"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
361
- {"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
362
- {"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
363
- {"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
364
- "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
365
- 0, "private": true, "resource": "dataset/50018f3c035d07404e00002e", "rows":
366
- 0, "size": 4608, "source": "source/50018f7b155268794e000029", "source_status":
367
- true, "status": {"code": 1, "message": "The dataset is being processed and
368
- will be created soon"}, "tags": [], "updated": "2012-07-14T15:24:44.779742"}'
217
+ encoding: UTF-8
218
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
219
+ true, "code": 200, "columns": 5, "created": "2014-06-26T14:50:19.593000",
220
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
221
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
222
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
223
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
224
+ "total": 5}, "fields": {"000000": {"column_number": 0, "datatype": "double",
225
+ "name": "sepal length", "optype": "numeric", "order": 0, "preferred": true,
226
+ "summary": {"bins": [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625,
227
+ 16], [5.1, 9], [5.2, 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8],
228
+ [5.8, 7], [5.9, 3], [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5,
229
+ 5], [6.6, 2], [6.7, 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3,
230
+ 1], [7.4, 1], [7.6, 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333,
231
+ "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population": 150,
232
+ "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
233
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
234
+ 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
235
+ 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "standard_deviation":
236
+ 0.82807, "sum": 876.5, "sum_squares": 5223.85, "variance": 0.68569}}, "000001":
237
+ {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
238
+ "numeric", "order": 1, "preferred": true, "summary": {"counts": [[2, 1], [2.2,
239
+ 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10],
240
+ [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7,
241
+ 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
242
+ 4.4, "mean": 3.05733, "median": 3.02044, "minimum": 2, "missing_count": 0,
243
+ "population": 150, "standard_deviation": 0.43587, "sum": 458.6, "sum_squares":
244
+ 1430.4, "variance": 0.18998}}, "000002": {"column_number": 2, "datatype":
245
+ "double", "name": "petal length", "optype": "numeric", "order": 2, "preferred":
246
+ true, "summary": {"bins": [[1, 1], [1.16667, 3], [1.3, 7], [1.4, 13], [1.5,
247
+ 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1], [3.3, 2], [3.5, 2], [3.6, 1], [3.75,
248
+ 2], [3.9, 3], [4.0375, 8], [4.23333, 6], [4.46667, 12], [4.6, 3], [4.74444,
249
+ 9], [4.94444, 9], [5.1, 8], [5.25, 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95,
250
+ 4], [6.1, 3], [6.3, 1], [6.4, 1], [6.6, 1], [6.7, 2], [6.9, 1]], "maximum":
251
+ 6.9, "mean": 3.758, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
252
+ 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
253
+ 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
254
+ 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
255
+ 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "standard_deviation":
256
+ 1.7653, "sum": 563.7, "sum_squares": 2582.71, "variance": 3.11628}}, "000003":
257
+ {"column_number": 3, "datatype": "double", "name": "petal width", "optype":
258
+ "numeric", "order": 3, "preferred": true, "summary": {"counts": [[0.1, 5],
259
+ [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
260
+ 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
261
+ [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
262
+ "mean": 1.19933, "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population":
263
+ 150, "standard_deviation": 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance":
264
+ 0.58101}}, "000004": {"column_number": 4, "datatype": "string", "name": "species",
265
+ "optype": "categorical", "order": 4, "preferred": true, "summary": {"categories":
266
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count":
267
+ 0}, "term_analysis": {"enabled": true}}}, "fields_meta": {"count": 5, "limit":
268
+ 1000, "offset": 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
269
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
270
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
271
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
272
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
273
+ 0, "number_of_models": 0, "number_of_predictions": 0, "objective_field": {"column_number":
274
+ 4, "datatype": "string", "id": "000004", "name": "species", "optype": "categorical",
275
+ "order": 4, "term_analysis": {"enabled": true}}, "price": 0.0, "private":
276
+ true, "ranges": null, "replacements": null, "resource": "dataset/53ac332b0af5e815310020fd",
277
+ "rows": 150, "sample_rates": null, "seeds": null, "shared": false, "size":
278
+ 4608, "source": "source/53ac33290af5e8152c005f6b", "source_status": true,
279
+ "status": {"bytes": 4608, "code": 5, "elapsed": 443, "field_errors": [], "message":
280
+ "The dataset has been created", "row_format_errors": [], "serialized_rows":
281
+ 150}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-26T14:50:20.297000",
282
+ "user_metadata": {}}'
369
283
  http_version: '1.1'
370
- recorded_at: Sat, 14 Jul 2012 15:25:12 GMT
284
+ recorded_at: Thu, 26 Jun 2014 14:50:20 GMT
371
285
  - request:
372
286
  method: post
373
287
  uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
374
288
  body:
375
289
  encoding: UTF-8
376
- string: ! '{"dataset":"dataset/50018f3c035d07404e00002e"}'
290
+ string: '{"dataset":"dataset/53ac332b0af5e815310020fd"}'
377
291
  headers:
378
292
  content-type:
379
293
  - application/json
380
- connection:
381
- - close
382
294
  response:
383
295
  status:
384
296
  code: 201
385
297
  message: CREATED
386
298
  headers:
299
+ access-control-allow-methods:
300
+ - POST,GET,PUT,DELETE
301
+ access-control-allow-origin:
302
+ - "*"
387
303
  content-type:
388
- - application/json; charset=utf-8
304
+ - application/json
389
305
  date:
390
- - Sat, 14 Jul 2012 15:24:10 GMT
306
+ - Thu, 26 Jun 2014 14:50:21 GMT
391
307
  location:
392
- - http://bigml.io/andromeda/model/50018f3e035d074059000039
308
+ - http://bigml.io/andromeda/model/53ac332d0af5e8152c005f6f
393
309
  server:
394
310
  - nginx/1.0.12
395
- content-length:
396
- - '704'
311
+ transfer-encoding:
312
+ - chunked
397
313
  connection:
398
314
  - Close
399
315
  body:
400
- encoding: US-ASCII
401
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:24:46.351694",
402
- "credits": 0.017578125, "dataset": "dataset/50018f3c035d07404e00002e", "dataset_status":
403
- true, "description": "", "dev": true, "holdout": 0.0, "input_fields": [],
404
- "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
405
- model", "number_of_predictions": 0, "objective_fields": [], "private": true,
406
- "range": [1, 150], "resource": "model/50018f3e035d074059000039", "rows": 150,
407
- "size": 4608, "source": "source/50018f7b155268794e000029", "source_status":
408
- true, "status": {"code": 1, "message": "The model is being processed and will
409
- be created soon"}, "tags": [], "updated": "2012-07-14T15:24:46.351719"}'
316
+ encoding: UTF-8
317
+ string: '{"balance_objective": false, "category": 0, "code": 200, "columns":
318
+ 5, "created": "2014-06-26T14:50:21.400000", "credits": 0.017578125, "credits_per_prediction":
319
+ 0.0, "dataset": "dataset/53ac332b0af5e815310020fd", "dataset_field_types":
320
+ {"categorical": 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0,
321
+ "total": 5}, "dataset_status": true, "dataset_type": 0, "description": "",
322
+ "dev": true, "ensemble": false, "ensemble_id": "", "ensemble_index": 0, "excluded_fields":
323
+ [], "fields_meta": {"count": 5, "limit": 1000, "offset": 0, "query_total":
324
+ 5, "total": 5}, "input_fields": ["000000", "000001", "000002", "000003"],
325
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "model": {"depth_threshold":
326
+ 512, "distribution": {"predictions": {"categories": [["Iris-setosa", 50],
327
+ ["Iris-versicolor", 50], ["Iris-virginica", 50]]}, "training": {"categories":
328
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]]}},
329
+ "fields": {"000000": {"column_number": 0, "datatype": "double", "name": "sepal
330
+ length", "optype": "numeric", "order": 0, "preferred": true, "summary": {"bins":
331
+ [[4.3, 1], [4.425, 4], [4.6, 4], [4.77143, 7], [4.9625, 16], [5.1, 9], [5.2,
332
+ 4], [5.3, 1], [5.4, 6], [5.5, 7], [5.6, 6], [5.7, 8], [5.8, 7], [5.9, 3],
333
+ [6, 6], [6.1, 6], [6.2, 4], [6.3, 9], [6.4, 7], [6.5, 5], [6.6, 2], [6.7,
334
+ 8], [6.8, 3], [6.9, 4], [7, 1], [7.1, 1], [7.2, 3], [7.3, 1], [7.4, 1], [7.6,
335
+ 1], [7.7, 4], [7.9, 1]], "maximum": 7.9, "mean": 5.84333, "median": 5.77889,
336
+ "minimum": 4.3, "missing_count": 0, "population": 150, "splits": [4.51526,
337
+ 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992, 5.11148, 5.18177, 5.35681,
338
+ 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889, 5.85381, 5.97078, 6.05104,
339
+ 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383, 6.63013, 6.70719, 6.79218,
340
+ 6.92597, 7.20423, 7.64746], "standard_deviation": 0.82807, "sum": 876.5, "sum_squares":
341
+ 5223.85, "variance": 0.68569}}, "000001": {"column_number": 1, "datatype":
342
+ "double", "name": "sepal width", "optype": "numeric", "order": 1, "preferred":
343
+ true, "summary": {"counts": [[2, 1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8],
344
+ [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3,
345
+ 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1,
346
+ 1], [4.2, 1], [4.4, 1]], "maximum": 4.4, "mean": 3.05733, "median": 3.02044,
347
+ "minimum": 2, "missing_count": 0, "population": 150, "standard_deviation":
348
+ 0.43587, "sum": 458.6, "sum_squares": 1430.4, "variance": 0.18998}}, "000002":
349
+ {"column_number": 2, "datatype": "double", "name": "petal length", "optype":
350
+ "numeric", "order": 2, "preferred": true, "summary": {"bins": [[1, 1], [1.16667,
351
+ 3], [1.3, 7], [1.4, 13], [1.5, 13], [1.6, 7], [1.7, 4], [1.9, 2], [3, 1],
352
+ [3.3, 2], [3.5, 2], [3.6, 1], [3.75, 2], [3.9, 3], [4.0375, 8], [4.23333,
353
+ 6], [4.46667, 12], [4.6, 3], [4.74444, 9], [4.94444, 9], [5.1, 8], [5.25,
354
+ 4], [5.46, 5], [5.6, 6], [5.75, 6], [5.95, 4], [6.1, 3], [6.3, 1], [6.4, 1],
355
+ [6.6, 1], [6.7, 2], [6.9, 1]], "maximum": 6.9, "mean": 3.758, "median": 4.34142,
356
+ "minimum": 1, "missing_count": 0, "population": 150, "splits": [1.25138, 1.32426,
357
+ 1.37171, 1.40962, 1.44567, 1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033,
358
+ 3.675, 3.94203, 4.0469, 4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566,
359
+ 4.83445, 4.93363, 5.03807, 5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496,
360
+ 6.02913, 6.38125], "standard_deviation": 1.7653, "sum": 563.7, "sum_squares":
361
+ 2582.71, "variance": 3.11628}}, "000003": {"column_number": 3, "datatype":
362
+ "double", "name": "petal width", "optype": "numeric", "order": 3, "preferred":
363
+ true, "summary": {"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5,
364
+ 1], [0.6, 1], [1, 7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12],
365
+ [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3,
366
+ 8], [2.4, 3], [2.5, 3]], "maximum": 2.5, "mean": 1.19933, "median": 1.32848,
367
+ "minimum": 0.1, "missing_count": 0, "population": 150, "standard_deviation":
368
+ 0.76224, "sum": 179.9, "sum_squares": 302.33, "variance": 0.58101}}, "000004":
369
+ {"column_number": 4, "datatype": "string", "name": "species", "optype": "categorical",
370
+ "order": 4, "preferred": true, "summary": {"categories": [["Iris-setosa",
371
+ 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]], "missing_count": 0},
372
+ "term_analysis": {"enabled": true}}}, "importance": [["000002", 0.70194],
373
+ ["000003", 0.29094], ["000001", 0.00712]], "kind": "mtree", "missing_tokens":
374
+ ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!", "?", "#NULL!",
375
+ "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A", "NA"], "model_fields":
376
+ {"000001": {"column_number": 1, "datatype": "double", "name": "sepal width",
377
+ "optype": "numeric", "preferred": true}, "000002": {"column_number": 2, "datatype":
378
+ "double", "name": "petal length", "optype": "numeric", "preferred": true},
379
+ "000003": {"column_number": 3, "datatype": "double", "name": "petal width",
380
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
381
+ "string", "name": "species", "optype": "categorical", "preferred": true, "term_analysis":
382
+ {"enabled": true}}}, "node_threshold": 512, "root": {"children": [{"children":
383
+ [{"children": [{"confidence": 0.91799, "count": 43, "id": 3, "objective_summary":
384
+ {"categories": [["Iris-virginica", 43]]}, "output": "Iris-virginica", "predicate":
385
+ {"field": "000002", "operator": ">", "value": 4.85}}, {"children": [{"confidence":
386
+ 0.20654, "count": 1, "id": 5, "objective_summary": {"categories": [["Iris-versicolor",
387
+ 1]]}, "output": "Iris-versicolor", "predicate": {"field": "000001", "operator":
388
+ ">", "value": 3.1}}, {"confidence": 0.34237, "count": 2, "id": 6, "objective_summary":
389
+ {"categories": [["Iris-virginica", 2]]}, "output": "Iris-virginica", "predicate":
390
+ {"field": "000001", "operator": "<=", "value": 3.1}}], "confidence": 0.20765,
391
+ "count": 3, "id": 4, "objective_summary": {"categories": [["Iris-virginica",
392
+ 2], ["Iris-versicolor", 1]]}, "output": "Iris-virginica", "predicate": {"field":
393
+ "000002", "operator": "<=", "value": 4.85}}], "confidence": 0.88664, "count":
394
+ 46, "id": 2, "objective_summary": {"categories": [["Iris-virginica", 45],
395
+ ["Iris-versicolor", 1]]}, "output": "Iris-virginica", "predicate": {"field":
396
+ "000003", "operator": ">", "value": 1.75}}, {"children": [{"children": [{"children":
397
+ [{"confidence": 0.20654, "count": 1, "id": 10, "objective_summary": {"categories":
398
+ [["Iris-virginica", 1]]}, "output": "Iris-virginica", "predicate": {"field":
399
+ "000002", "operator": ">", "value": 5.45}}, {"confidence": 0.34237, "count":
400
+ 2, "id": 11, "objective_summary": {"categories": [["Iris-versicolor", 2]]},
401
+ "output": "Iris-versicolor", "predicate": {"field": "000002", "operator":
402
+ "<=", "value": 5.45}}], "confidence": 0.20765, "count": 3, "id": 9, "objective_summary":
403
+ {"categories": [["Iris-versicolor", 2], ["Iris-virginica", 1]]}, "output":
404
+ "Iris-versicolor", "predicate": {"field": "000003", "operator": ">", "value":
405
+ 1.55}}, {"confidence": 0.43849, "count": 3, "id": 12, "objective_summary":
406
+ {"categories": [["Iris-virginica", 3]]}, "output": "Iris-virginica", "predicate":
407
+ {"field": "000003", "operator": "<=", "value": 1.55}}], "confidence": 0.29999,
408
+ "count": 6, "id": 8, "objective_summary": {"categories": [["Iris-virginica",
409
+ 4], ["Iris-versicolor", 2]]}, "output": "Iris-virginica", "predicate": {"field":
410
+ "000002", "operator": ">", "value": 4.95}}, {"children": [{"confidence": 0.20654,
411
+ "count": 1, "id": 14, "objective_summary": {"categories": [["Iris-virginica",
412
+ 1]]}, "output": "Iris-virginica", "predicate": {"field": "000003", "operator":
413
+ ">", "value": 1.65}}, {"confidence": 0.92444, "count": 47, "id": 15, "objective_summary":
414
+ {"categories": [["Iris-versicolor", 47]]}, "output": "Iris-versicolor", "predicate":
415
+ {"field": "000003", "operator": "<=", "value": 1.65}}], "confidence": 0.89101,
416
+ "count": 48, "id": 13, "objective_summary": {"categories": [["Iris-versicolor",
417
+ 47], ["Iris-virginica", 1]]}, "output": "Iris-versicolor", "predicate": {"field":
418
+ "000002", "operator": "<=", "value": 4.95}}], "confidence": 0.8009, "count":
419
+ 54, "id": 7, "objective_summary": {"categories": [["Iris-versicolor", 49],
420
+ ["Iris-virginica", 5]]}, "output": "Iris-versicolor", "predicate": {"field":
421
+ "000003", "operator": "<=", "value": 1.75}}], "confidence": 0.40383, "count":
422
+ 100, "id": 1, "objective_summary": {"categories": [["Iris-versicolor", 50],
423
+ ["Iris-virginica", 50]]}, "output": "Iris-versicolor", "predicate": {"field":
424
+ "000002", "operator": ">", "value": 2.45}}, {"confidence": 0.92865, "count":
425
+ 50, "id": 16, "objective_summary": {"categories": [["Iris-setosa", 50]]},
426
+ "output": "Iris-setosa", "predicate": {"field": "000002", "operator": "<=",
427
+ "value": 2.45}}], "confidence": 0.26289, "count": 150, "id": 0, "objective_summary":
428
+ {"categories": [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica",
429
+ 50]]}, "output": "Iris-setosa", "predicate": true}}, "name": "iris'' dataset
430
+ model", "node_threshold": 512, "number_of_batchpredictions": 0, "number_of_evaluations":
431
+ 0, "number_of_predictions": 0, "number_of_public_predictions": 0, "objective_field":
432
+ "000004", "objective_fields": ["000004"], "ordering": 0, "out_of_bag": false,
433
+ "price": 0.0, "private": true, "randomize": false, "range": [1, 150], "replacement":
434
+ false, "resource": "model/53ac332d0af5e8152c005f6f", "rows": 150, "sample_rate":
435
+ 1.0, "selective_pruning": true, "shared": false, "size": 4608, "source": "source/53ac33290af5e8152c005f6b",
436
+ "source_status": true, "stat_pruning": true, "status": {"code": 5, "elapsed":
437
+ 289, "message": "The model has been created", "progress": 1.0}, "subscription":
438
+ false, "tags": ["species"], "updated": "2014-06-26T14:50:21.739000", "white_box":
439
+ false}'
410
440
  http_version: '1.1'
411
- recorded_at: Sat, 14 Jul 2012 15:25:13 GMT
441
+ recorded_at: Thu, 26 Jun 2014 14:50:22 GMT
412
442
  - request:
413
443
  method: post
414
444
  uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
415
445
  body:
416
446
  encoding: UTF-8
417
- string: ! '{"model":"model/50018f3e035d074059000039","input_data":{"000001":3}}'
447
+ string: '{"model":"model/53ac332d0af5e8152c005f6f","input_data":{"000001":3}}'
418
448
  headers:
419
449
  content-type:
420
450
  - application/json
421
- connection:
422
- - close
423
451
  response:
424
452
  status:
425
453
  code: 201
426
454
  message: CREATED
427
455
  headers:
456
+ access-control-allow-methods:
457
+ - POST,GET,PUT,DELETE
458
+ access-control-allow-origin:
459
+ - "*"
428
460
  content-type:
429
- - application/json; charset=utf-8
461
+ - application/json
430
462
  date:
431
- - Sat, 14 Jul 2012 15:19:13 GMT
463
+ - Thu, 26 Jun 2014 14:50:23 GMT
432
464
  location:
433
- - http://bigml.io/andromeda/prediction/50018f811552681d68000033
465
+ - http://bigml.io/andromeda/prediction/53ac332ffff5b278a7000118
434
466
  server:
435
467
  - nginx/1.0.12
436
- content-length:
437
- - '1235'
468
+ transfer-encoding:
469
+ - chunked
438
470
  connection:
439
471
  - Close
440
472
  body:
441
- encoding: US-ASCII
442
- string: ! '{"category": 0, "code": 201, "created": "2012-07-14T15:25:53.262233",
443
- "credits": 0.01, "dataset": "dataset/50018f3c035d07404e00002e", "dataset_status":
473
+ encoding: UTF-8
474
+ string: '{"category": 0, "code": 201, "confidence": 0.26289, "created": "2014-06-26T14:50:23.273128",
475
+ "credits": 0.01, "dataset": "dataset/53ac332b0af5e815310020fd", "dataset_status":
444
476
  true, "description": "", "dev": true, "fields": {"000001": {"column_number":
445
- 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
446
- true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
447
- length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
448
- 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
449
- true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f3e035d074059000039",
450
- "model_status": true, "name": "Prediction for species", "objective_fields":
451
- ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
452
- {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
453
- "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
454
- [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f811552681d68000033",
455
- "source": "source/50018f7b155268794e000029", "source_status": true, "status":
456
- {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
457
- "2012-07-14T15:25:53.262255"}'
477
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "order":
478
+ 1, "preferred": true}, "000002": {"column_number": 2, "datatype": "double",
479
+ "name": "petal length", "optype": "numeric", "order": 2, "preferred": true},
480
+ "000004": {"column_number": 4, "datatype": "string", "name": "species", "optype":
481
+ "categorical", "order": 4, "preferred": true, "term_analysis": {"enabled":
482
+ true}}}, "input_data": {"000001": 3}, "locale": "en_US", "missing_strategy":
483
+ 0, "model": "model/53ac332d0af5e8152c005f6f", "model_status": true, "model_type":
484
+ 0, "name": "Prediction for species", "number_of_models": 1, "objective_field":
485
+ "000004", "objective_field_name": "species", "objective_fields": ["000004"],
486
+ "output": "Iris-setosa", "prediction": {"000004": "Iris-setosa"}, "prediction_path":
487
+ {"bad_fields": [], "confidence": 0.26289, "next_predicates": [{"count": 100,
488
+ "field": "000002", "operator": ">", "value": 2.45}, {"count": 50, "field":
489
+ "000002", "operator": "<=", "value": 2.45}], "objective_summary": {"categories":
490
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]]}, "path":
491
+ [], "unknown_fields": []}, "private": true, "query_string": "", "resource":
492
+ "prediction/53ac332ffff5b278a7000118", "shared": false, "source": "source/53ac33290af5e8152c005f6b",
493
+ "source_status": true, "status": {"code": 5, "elapsed": 0.032, "message":
494
+ "The prediction has been created", "progress": 1}, "subscription": false,
495
+ "tags": [], "tlp": 1, "updated": "2014-06-26T14:50:23.273160"}'
458
496
  http_version: '1.1'
459
- recorded_at: Sat, 14 Jul 2012 15:25:16 GMT
497
+ recorded_at: Thu, 26 Jun 2014 14:50:24 GMT
460
498
  - request:
461
499
  method: get
462
- uri: https://bigml.io/dev/andromeda/prediction/50018f811552681d68000033?username=<USERNAME>&api_key=<API_KEY>
500
+ uri: https://bigml.io/dev/andromeda/prediction/53ac332ffff5b278a7000118?username=<USERNAME>&api_key=<API_KEY>
463
501
  body:
464
502
  encoding: US-ASCII
465
503
  string: ''
466
- headers:
467
- connection:
468
- - close
504
+ headers: {}
469
505
  response:
470
506
  status:
471
507
  code: 200
472
508
  message: OK
473
509
  headers:
510
+ access-control-allow-methods:
511
+ - POST,GET,PUT,DELETE
512
+ access-control-allow-origin:
513
+ - "*"
474
514
  content-type:
475
- - application/json; charset=utf-8
515
+ - application/json
476
516
  date:
477
- - Sat, 14 Jul 2012 15:24:14 GMT
517
+ - Thu, 26 Jun 2014 14:50:23 GMT
478
518
  server:
479
519
  - nginx/1.0.12
480
- content-length:
481
- - '1235'
520
+ vary:
521
+ - Accept-Encoding
522
+ transfer-encoding:
523
+ - chunked
482
524
  connection:
483
525
  - Close
484
526
  body:
485
- encoding: US-ASCII
486
- string: ! '{"category": 0, "code": 200, "created": "2012-07-14T15:25:53.262000",
487
- "credits": 0.01, "dataset": "dataset/50018f3c035d07404e00002e", "dataset_status":
527
+ encoding: UTF-8
528
+ string: '{"category": 0, "code": 200, "confidence": 0.26289, "created": "2014-06-26T14:50:23.273000",
529
+ "credits": 0.01, "dataset": "dataset/53ac332b0af5e815310020fd", "dataset_status":
488
530
  true, "description": "", "dev": true, "fields": {"000001": {"column_number":
489
- 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
490
- true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
491
- length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
492
- 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
493
- true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f3e035d074059000039",
494
- "model_status": true, "name": "Prediction for species", "objective_fields":
495
- ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
496
- {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
497
- "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
498
- [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f811552681d68000033",
499
- "source": "source/50018f7b155268794e000029", "source_status": true, "status":
500
- {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
501
- "2012-07-14T15:25:53.262000"}'
531
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "order":
532
+ 1, "preferred": true}, "000002": {"column_number": 2, "datatype": "double",
533
+ "name": "petal length", "optype": "numeric", "order": 2, "preferred": true},
534
+ "000004": {"column_number": 4, "datatype": "string", "name": "species", "optype":
535
+ "categorical", "order": 4, "preferred": true, "term_analysis": {"enabled":
536
+ true}}}, "input_data": {"000001": 3}, "locale": "en_US", "missing_strategy":
537
+ 0, "model": "model/53ac332d0af5e8152c005f6f", "model_status": true, "model_type":
538
+ 0, "name": "Prediction for species", "number_of_models": 1, "objective_field":
539
+ "000004", "objective_field_name": "species", "objective_fields": ["000004"],
540
+ "output": "Iris-setosa", "prediction": {"000004": "Iris-setosa"}, "prediction_path":
541
+ {"bad_fields": [], "confidence": 0.26289, "next_predicates": [{"count": 100,
542
+ "field": "000002", "operator": ">", "value": 2.45}, {"count": 50, "field":
543
+ "000002", "operator": "<=", "value": 2.45}], "objective_summary": {"categories":
544
+ [["Iris-setosa", 50], ["Iris-versicolor", 50], ["Iris-virginica", 50]]}, "path":
545
+ [], "unknown_fields": []}, "private": true, "query_string": "", "resource":
546
+ "prediction/53ac332ffff5b278a7000118", "shared": false, "source": "source/53ac33290af5e8152c005f6b",
547
+ "source_status": true, "status": {"code": 5, "elapsed": 0, "message": "The
548
+ prediction has been created", "progress": 1}, "subscription": false, "tags":
549
+ [], "tlp": 1, "updated": "2014-06-26T14:50:23.273000"}'
502
550
  http_version: '1.1'
503
- recorded_at: Sat, 14 Jul 2012 15:25:17 GMT
504
- recorded_with: VCR 2.2.2
551
+ recorded_at: Thu, 26 Jun 2014 14:50:24 GMT
552
+ recorded_with: VCR 2.9.2