big_ml 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +55 -18
  3. data/big_ml.gemspec +1 -0
  4. data/lib/big_ml/base.rb +21 -11
  5. data/lib/big_ml/dataset.rb +10 -4
  6. data/lib/big_ml/model.rb +16 -10
  7. data/lib/big_ml/prediction.rb +6 -4
  8. data/lib/big_ml/source.rb +10 -4
  9. data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
  10. data/lib/big_ml/util/client.rb +26 -0
  11. data/lib/big_ml/util/config.rb +32 -0
  12. data/lib/big_ml/{request.rb → util/request.rb} +0 -0
  13. data/lib/big_ml/version.rb +1 -1
  14. data/lib/big_ml.rb +8 -4
  15. data/spec/integration/dataset_spec.rb +17 -0
  16. data/spec/integration/model_spec.rb +17 -0
  17. data/spec/integration/prediction_spec.rb +11 -0
  18. data/spec/integration/source_spec.rb +19 -6
  19. data/spec/units/client_spec.rb +5 -5
  20. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
  21. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
  22. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
  23. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
  24. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
  27. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
  28. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
  29. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
  30. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
  31. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
  32. data/spec/vcr_cassettes/BigML_Model/one_model/{must_have_the_same_file_name.yml → must_be_able_to_be_deleted_using_the_destroy_method.yml} +90 -107
  33. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
  34. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
  35. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
  36. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
  37. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
  38. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
  39. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
  40. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
  41. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
  42. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
  43. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
  44. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
  45. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
  46. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
  47. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
  49. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
  50. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
  51. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
  52. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
  53. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
  54. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
  55. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
  56. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
  57. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
  58. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
  59. metadata +50 -9
  60. data/.rvmrc +0 -1
  61. data/lib/big_ml/client.rb +0 -29
  62. data/lib/big_ml/config.rb +0 -30
@@ -0,0 +1,474 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ connection:
11
+ - close
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ content-type:
18
+ - application/json; charset=utf-8
19
+ date:
20
+ - Thu, 28 Jun 2012 22:28:24 GMT
21
+ server:
22
+ - nginx/1.0.12
23
+ content-length:
24
+ - '1280'
25
+ connection:
26
+ - Close
27
+ 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-06-28T22:33:16.011000", "credits":
32
+ 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
+ "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
+ "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
35
+ "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
+ "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
+ "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
+ "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 1, "number_of_predictions":
39
+ 0, "private": true, "resource": "source/4fecdbac15526875f900329e", "size":
40
+ 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
+ ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
+ "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:33:22.774000"}]}'
45
+ http_version: '1.1'
46
+ recorded_at: Thu, 28 Jun 2012 22:33:11 GMT
47
+ - request:
48
+ method: delete
49
+ uri: https://bigml.io/andromeda/source/4fecdbac15526875f900329e?username=<USERNAME>&api_key=<API_KEY>
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ connection:
55
+ - close
56
+ response:
57
+ status:
58
+ code: 204
59
+ message: NO CONTENT
60
+ headers:
61
+ content-length:
62
+ - '0'
63
+ content-type:
64
+ - text/html; charset=utf-8
65
+ date:
66
+ - Thu, 28 Jun 2012 22:31:00 GMT
67
+ server:
68
+ - nginx/1.0.12
69
+ connection:
70
+ - Close
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ http_version: '1.1'
75
+ recorded_at: Thu, 28 Jun 2012 22:33:13 GMT
76
+ - request:
77
+ method: get
78
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ connection:
84
+ - close
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ content-type:
91
+ - application/json; charset=utf-8
92
+ date:
93
+ - Thu, 28 Jun 2012 22:28:28 GMT
94
+ server:
95
+ - nginx/1.0.12
96
+ content-length:
97
+ - '704'
98
+ connection:
99
+ - Close
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
+ "created": "2012-06-28T22:32:28.945000", "credits": 0.00439453125, "description":
105
+ "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
+ 0, "private": true, "resource": "dataset/4fecdb7c035d0741f1003325", "rows":
107
+ 150, "size": 4608, "source": "source/4fecdbac15526875f900329e", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 441, "field_errors":
109
+ [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
+ 150}, "tags": [], "updated": "2012-06-28T22:33:22.781000"}]}'
111
+ http_version: '1.1'
112
+ recorded_at: Thu, 28 Jun 2012 22:33:14 GMT
113
+ - request:
114
+ method: delete
115
+ uri: https://bigml.io/andromeda/dataset/4fecdb7c035d0741f1003325?username=<USERNAME>&api_key=<API_KEY>
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ''
119
+ headers:
120
+ connection:
121
+ - close
122
+ response:
123
+ status:
124
+ code: 204
125
+ message: NO CONTENT
126
+ headers:
127
+ content-length:
128
+ - '0'
129
+ content-type:
130
+ - text/html; charset=utf-8
131
+ date:
132
+ - Thu, 28 Jun 2012 22:31:03 GMT
133
+ server:
134
+ - nginx/1.0.12
135
+ connection:
136
+ - Close
137
+ body:
138
+ encoding: US-ASCII
139
+ string: ''
140
+ http_version: '1.1'
141
+ recorded_at: Thu, 28 Jun 2012 22:33:16 GMT
142
+ - request:
143
+ method: get
144
+ uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ headers:
149
+ connection:
150
+ - close
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ content-type:
157
+ - application/json; charset=utf-8
158
+ date:
159
+ - Thu, 28 Jun 2012 22:28:31 GMT
160
+ server:
161
+ - nginx/1.0.12
162
+ content-length:
163
+ - '844'
164
+ connection:
165
+ - Close
166
+ body:
167
+ encoding: US-ASCII
168
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
+ "created": "2012-06-28T22:32:30.873000", "credits": 0.017578125, "dataset":
171
+ "dataset/4fecdb7c035d0741f1003325", "dataset_status": false, "description":
172
+ "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
173
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
174
+ model", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
175
+ true, "range": [1, 150], "resource": "model/4fecdb7e035d0741f000338c", "rows":
176
+ 150, "size": 4608, "source": "source/4fecdbac15526875f900329e", "source_status":
177
+ false, "status": {"code": 5, "elapsed": 143, "message": "The model has been
178
+ created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:33:22.785000"}]}'
179
+ http_version: '1.1'
180
+ recorded_at: Thu, 28 Jun 2012 22:33:17 GMT
181
+ - request:
182
+ method: delete
183
+ uri: https://bigml.io/andromeda/model/4fecdb7e035d0741f000338c?username=<USERNAME>&api_key=<API_KEY>
184
+ body:
185
+ encoding: US-ASCII
186
+ string: ''
187
+ headers:
188
+ connection:
189
+ - close
190
+ response:
191
+ status:
192
+ code: 204
193
+ message: NO CONTENT
194
+ headers:
195
+ content-length:
196
+ - '0'
197
+ content-type:
198
+ - text/html; charset=utf-8
199
+ date:
200
+ - Thu, 28 Jun 2012 22:31:06 GMT
201
+ server:
202
+ - nginx/1.0.12
203
+ connection:
204
+ - Close
205
+ body:
206
+ encoding: US-ASCII
207
+ string: ''
208
+ http_version: '1.1'
209
+ recorded_at: Thu, 28 Jun 2012 22:33:19 GMT
210
+ - request:
211
+ method: get
212
+ uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers:
217
+ connection:
218
+ - close
219
+ response:
220
+ status:
221
+ code: 200
222
+ message: OK
223
+ headers:
224
+ content-type:
225
+ - application/json; charset=utf-8
226
+ date:
227
+ - Thu, 28 Jun 2012 22:28:36 GMT
228
+ server:
229
+ - nginx/1.0.12
230
+ content-length:
231
+ - '101'
232
+ connection:
233
+ - Close
234
+ body:
235
+ encoding: US-ASCII
236
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
237
+ "total_count": 0}, "objects": []}'
238
+ http_version: '1.1'
239
+ recorded_at: Thu, 28 Jun 2012 22:33:22 GMT
240
+ - request:
241
+ method: post
242
+ uri: https://bigml.io/andromeda/source
243
+ body:
244
+ encoding: US-ASCII
245
+ string: ''
246
+ headers:
247
+ content-type:
248
+ - multipart/form-data; boundary=-----------RubyMultipartPost
249
+ content-length:
250
+ - '5147'
251
+ connection:
252
+ - close
253
+ response:
254
+ status:
255
+ code: 201
256
+ message: CREATED
257
+ headers:
258
+ content-type:
259
+ - application/json; charset=utf-8
260
+ date:
261
+ - Thu, 28 Jun 2012 22:31:14 GMT
262
+ location:
263
+ - http://bigml.io/andromeda/source/4fecdb93035d0741ef0032a8
264
+ server:
265
+ - nginx/1.0.12
266
+ content-length:
267
+ - '567'
268
+ connection:
269
+ - Close
270
+ body:
271
+ encoding: US-ASCII
272
+ string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
273
+ "created": "2012-06-28T22:32:51.882428", "credits": 0.0, "description": "",
274
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
275
+ "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
276
+ 0, "private": true, "resource": "source/4fecdb93035d0741ef0032a8", "size":
277
+ 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
278
+ been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
279
+ "2012-06-28T22:32:51.882449"}'
280
+ http_version: '1.1'
281
+ recorded_at: Thu, 28 Jun 2012 22:33:27 GMT
282
+ - request:
283
+ method: post
284
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
285
+ body:
286
+ encoding: UTF-8
287
+ string: ! '{"source":"source/4fecdb93035d0741ef0032a8"}'
288
+ headers:
289
+ content-type:
290
+ - application/json
291
+ connection:
292
+ - close
293
+ response:
294
+ status:
295
+ code: 201
296
+ message: CREATED
297
+ headers:
298
+ content-type:
299
+ - application/json; charset=utf-8
300
+ date:
301
+ - Thu, 28 Jun 2012 22:28:44 GMT
302
+ location:
303
+ - http://bigml.io/andromeda/dataset/4fecdbc915526875f300334a
304
+ server:
305
+ - nginx/1.0.12
306
+ content-length:
307
+ - '921'
308
+ connection:
309
+ - Close
310
+ body:
311
+ encoding: US-ASCII
312
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:33:45.575681",
313
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
314
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
315
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
316
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
317
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
318
+ 4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
319
+ "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
320
+ true, "resource": "dataset/4fecdbc915526875f300334a", "rows": 0, "size": 4608,
321
+ "source": "source/4fecdb93035d0741ef0032a8", "source_status": true, "status":
322
+ {"code": 1, "message": "The dataset is being processed and will be created
323
+ soon"}, "tags": [], "updated": "2012-06-28T22:33:45.575704"}'
324
+ http_version: '1.1'
325
+ recorded_at: Thu, 28 Jun 2012 22:33:30 GMT
326
+ - request:
327
+ method: post
328
+ uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
329
+ body:
330
+ encoding: UTF-8
331
+ string: ! '{"dataset":"dataset/4fecdbc915526875f300334a"}'
332
+ headers:
333
+ content-type:
334
+ - application/json
335
+ connection:
336
+ - close
337
+ response:
338
+ status:
339
+ code: 201
340
+ message: CREATED
341
+ headers:
342
+ content-type:
343
+ - application/json; charset=utf-8
344
+ date:
345
+ - Thu, 28 Jun 2012 22:31:19 GMT
346
+ location:
347
+ - http://bigml.io/andromeda/model/4fecdbcc15526875f90032a2
348
+ server:
349
+ - nginx/1.0.12
350
+ content-length:
351
+ - '691'
352
+ connection:
353
+ - Close
354
+ body:
355
+ encoding: US-ASCII
356
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:33:48.524043",
357
+ "credits": 0.017578125, "dataset": "dataset/4fecdbc915526875f300334a", "dataset_status":
358
+ true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
359
+ "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
360
+ 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
361
+ "model/4fecdbcc15526875f90032a2", "rows": 150, "size": 4608, "source": "source/4fecdb93035d0741ef0032a8",
362
+ "source_status": true, "status": {"code": 1, "message": "The model is being
363
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:33:48.524074"}'
364
+ http_version: '1.1'
365
+ recorded_at: Thu, 28 Jun 2012 22:33:32 GMT
366
+ - request:
367
+ method: post
368
+ uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
369
+ body:
370
+ encoding: UTF-8
371
+ string: ! '{"model":"model/4fecdbcc15526875f90032a2","input_data":{"000001":3}}'
372
+ headers:
373
+ content-type:
374
+ - application/json
375
+ connection:
376
+ - close
377
+ response:
378
+ status:
379
+ code: 201
380
+ message: CREATED
381
+ headers:
382
+ content-type:
383
+ - application/json; charset=utf-8
384
+ date:
385
+ - Thu, 28 Jun 2012 22:28:48 GMT
386
+ location:
387
+ - http://bigml.io/andromeda/prediction/4fecdb9e035d0741f1003328
388
+ server:
389
+ - nginx/1.0.12
390
+ content-length:
391
+ - '1222'
392
+ connection:
393
+ - Close
394
+ body:
395
+ encoding: US-ASCII
396
+ string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:33:02.040803",
397
+ "credits": 0.01, "dataset": "dataset/4fecdbc915526875f300334a", "dataset_status":
398
+ true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
399
+ "double", "name": "sepal width", "optype": "numeric", "preferred": true},
400
+ "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
401
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
402
+ "string", "name": "species", "optype": "categorical", "preferred": true}},
403
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdbcc15526875f90032a2",
404
+ "model_status": true, "name": "Prediction for species", "objective_fields":
405
+ ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
406
+ {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
407
+ "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
408
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb9e035d0741f1003328",
409
+ "source": "source/4fecdb93035d0741ef0032a8", "source_status": true, "status":
410
+ {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
411
+ "2012-06-28T22:33:02.040825"}'
412
+ http_version: '1.1'
413
+ recorded_at: Thu, 28 Jun 2012 22:33:34 GMT
414
+ - request:
415
+ method: delete
416
+ uri: https://bigml.io/andromeda/prediction/4fecdb9e035d0741f1003328?username=<USERNAME>&api_key=<API_KEY>
417
+ body:
418
+ encoding: US-ASCII
419
+ string: ''
420
+ headers:
421
+ connection:
422
+ - close
423
+ response:
424
+ status:
425
+ code: 204
426
+ message: NO CONTENT
427
+ headers:
428
+ content-length:
429
+ - '0'
430
+ content-type:
431
+ - text/html; charset=utf-8
432
+ date:
433
+ - Thu, 28 Jun 2012 22:31:23 GMT
434
+ server:
435
+ - nginx/1.0.12
436
+ connection:
437
+ - Close
438
+ body:
439
+ encoding: US-ASCII
440
+ string: ''
441
+ http_version: '1.1'
442
+ recorded_at: Thu, 28 Jun 2012 22:33:36 GMT
443
+ - request:
444
+ method: get
445
+ uri: https://bigml.io/andromeda/prediction/4fecdb9e035d0741f1003328?username=<USERNAME>&api_key=<API_KEY>
446
+ body:
447
+ encoding: US-ASCII
448
+ string: ''
449
+ headers:
450
+ connection:
451
+ - close
452
+ response:
453
+ status:
454
+ code: 404
455
+ message: NOT FOUND
456
+ headers:
457
+ content-type:
458
+ - application/json; charset=utf-8
459
+ date:
460
+ - Thu, 28 Jun 2012 22:28:50 GMT
461
+ server:
462
+ - nginx/1.0.12
463
+ transfer-encoding:
464
+ - chunked
465
+ connection:
466
+ - Close
467
+ body:
468
+ encoding: US-ASCII
469
+ string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
470
+ an instance of ''Prediction'' which matched ''pk=4fecdb9e035d0741f1003328''."],
471
+ "message": "Id does not exist"}}'
472
+ http_version: '1.1'
473
+ recorded_at: Thu, 28 Jun 2012 22:33:37 GMT
474
+ recorded_with: VCR 2.2.2