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
@@ -17,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:53:56 GMT
20
+ - Thu, 28 Jun 2012 22:26:56 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -28,25 +28,25 @@ http_interactions:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T03:57:57.649000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:28:27.473000", "credits":
32
32
  0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
33
  "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
34
  "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
35
35
  "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
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/4fe14a451552687d43000133", "size":
38
+ "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
39
+ 0, "private": true, "resource": "source/4fecda8b035d0741f000336a", "size":
40
40
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
41
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
42
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 67, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:57:33.219000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 58, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:28:32.880000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:57:46 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:29:09 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14a451552687d43000133?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecda8b035d0741f000336a?username=<USERNAME>&api_key=<API_KEY>
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
@@ -63,7 +63,7 @@ http_interactions:
63
63
  content-type:
64
64
  - text/html; charset=utf-8
65
65
  date:
66
- - Wed, 20 Jun 2012 03:56:17 GMT
66
+ - Thu, 28 Jun 2012 22:24:26 GMT
67
67
  server:
68
68
  - nginx/1.0.12
69
69
  connection:
@@ -72,7 +72,7 @@ http_interactions:
72
72
  encoding: US-ASCII
73
73
  string: ''
74
74
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 03:57:48 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:29:12 GMT
76
76
  - request:
77
77
  method: get
78
78
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,29 +90,29 @@ http_interactions:
90
90
  content-type:
91
91
  - application/json; charset=utf-8
92
92
  date:
93
- - Wed, 20 Jun 2012 03:53:59 GMT
93
+ - Thu, 28 Jun 2012 22:27:01 GMT
94
94
  server:
95
95
  - nginx/1.0.12
96
- transfer-encoding:
97
- - chunked
96
+ content-length:
97
+ - '704'
98
98
  connection:
99
99
  - Close
100
100
  body:
101
101
  encoding: US-ASCII
102
102
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
103
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:57:58.955000", "credits": 0.0087890625, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe14a461552687d42000145", "rows":
107
- 150, "size": 4608, "source": "source/4fe14a451552687d43000133", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 228, "field_errors":
104
+ "created": "2012-06-28T22:29:18.011000", "credits": 0.00439453125, "description":
105
+ "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
106
+ 0, "private": true, "resource": "dataset/4fecdabe15526875f70033d2", "rows":
107
+ 150, "size": 4608, "source": "source/4fecda8b035d0741f000336a", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 281, "field_errors":
109
109
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:57:33.226000"}]}'
110
+ 150}, "tags": [], "updated": "2012-06-28T22:28:32.889000"}]}'
111
111
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:57:49 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:29:14 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14a461552687d42000145?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecdabe15526875f70033d2?username=<USERNAME>&api_key=<API_KEY>
116
116
  body:
117
117
  encoding: US-ASCII
118
118
  string: ''
@@ -129,7 +129,7 @@ http_interactions:
129
129
  content-type:
130
130
  - text/html; charset=utf-8
131
131
  date:
132
- - Wed, 20 Jun 2012 03:56:20 GMT
132
+ - Thu, 28 Jun 2012 22:24:29 GMT
133
133
  server:
134
134
  - nginx/1.0.12
135
135
  connection:
@@ -138,7 +138,7 @@ http_interactions:
138
138
  encoding: US-ASCII
139
139
  string: ''
140
140
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:57:51 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:29:16 GMT
142
142
  - request:
143
143
  method: get
144
144
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -156,57 +156,19 @@ http_interactions:
156
156
  content-type:
157
157
  - application/json; charset=utf-8
158
158
  date:
159
- - Wed, 20 Jun 2012 03:54:01 GMT
159
+ - Thu, 28 Jun 2012 22:27:04 GMT
160
160
  server:
161
161
  - nginx/1.0.12
162
162
  content-length:
163
- - '843'
163
+ - '101'
164
164
  connection:
165
165
  - Close
166
166
  body:
167
167
  encoding: US-ASCII
168
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-20T03:57:33.206000", "credits": 0.03515625, "dataset":
171
- "dataset/4fe14a461552687d42000145", "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/4fe14a2d035d074a1e0000f7", "rows":
176
- 150, "size": 4608, "source": "source/4fe14a451552687d43000133", "source_status":
177
- false, "status": {"code": 5, "elapsed": 150, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:57:34.597000"}]}'
179
- http_version: '1.1'
180
- recorded_at: Wed, 20 Jun 2012 03:57:52 GMT
181
- - request:
182
- method: delete
183
- uri: https://bigml.io/andromeda/model/4fe14a2d035d074a1e0000f7?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
- - Wed, 20 Jun 2012 03:56:22 GMT
201
- server:
202
- - nginx/1.0.12
203
- connection:
204
- - Close
205
- body:
206
- encoding: US-ASCII
207
- string: ''
169
+ "total_count": 0}, "objects": []}'
208
170
  http_version: '1.1'
209
- recorded_at: Wed, 20 Jun 2012 03:57:53 GMT
171
+ recorded_at: Thu, 28 Jun 2012 22:29:18 GMT
210
172
  - request:
211
173
  method: post
212
174
  uri: https://bigml.io/andromeda/source
@@ -228,9 +190,9 @@ http_interactions:
228
190
  content-type:
229
191
  - application/json; charset=utf-8
230
192
  date:
231
- - Wed, 20 Jun 2012 03:54:04 GMT
193
+ - Thu, 28 Jun 2012 22:24:34 GMT
232
194
  location:
233
- - http://bigml.io/andromeda/source/4fe14a37035d074a1b000113
195
+ - http://bigml.io/andromeda/source/4fecda9f035d0741f000336e
234
196
  server:
235
197
  - nginx/1.0.12
236
198
  content-length:
@@ -240,21 +202,21 @@ http_interactions:
240
202
  body:
241
203
  encoding: US-ASCII
242
204
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
243
- "created": "2012-06-20T03:57:43.613354", "credits": 0.0, "description": "",
205
+ "created": "2012-06-28T22:28:47.980182", "credits": 0.0, "description": "",
244
206
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
245
207
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
246
- 0, "private": true, "resource": "source/4fe14a37035d074a1b000113", "size":
208
+ 0, "private": true, "resource": "source/4fecda9f035d0741f000336e", "size":
247
209
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
248
210
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
249
- "2012-06-20T03:57:43.613380"}'
211
+ "2012-06-28T22:28:47.980209"}'
250
212
  http_version: '1.1'
251
- recorded_at: Wed, 20 Jun 2012 03:57:54 GMT
213
+ recorded_at: Thu, 28 Jun 2012 22:29:20 GMT
252
214
  - request:
253
215
  method: post
254
216
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
255
217
  body:
256
218
  encoding: UTF-8
257
- string: ! '{"source":"source/4fe14a37035d074a1b000113"}'
219
+ string: ! '{"source":"source/4fecda9f035d0741f000336e"}'
258
220
  headers:
259
221
  content-type:
260
222
  - application/json
@@ -268,37 +230,37 @@ http_interactions:
268
230
  content-type:
269
231
  - application/json; charset=utf-8
270
232
  date:
271
- - Wed, 20 Jun 2012 03:56:25 GMT
233
+ - Thu, 28 Jun 2012 22:27:09 GMT
272
234
  location:
273
- - http://bigml.io/andromeda/dataset/4fe14a38035d074a1c0000fb
235
+ - http://bigml.io/andromeda/dataset/4fecdaa1035d0741ef003297
274
236
  server:
275
237
  - nginx/1.0.12
276
238
  content-length:
277
- - '920'
239
+ - '921'
278
240
  connection:
279
241
  - Close
280
242
  body:
281
243
  encoding: US-ASCII
282
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:57:44.916904",
283
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
244
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:28:49.685404",
245
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
284
246
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
285
247
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
286
248
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
287
249
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
288
250
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
289
251
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
290
- true, "resource": "dataset/4fe14a38035d074a1c0000fb", "rows": 0, "size": 4608,
291
- "source": "source/4fe14a37035d074a1b000113", "source_status": true, "status":
252
+ true, "resource": "dataset/4fecdaa1035d0741ef003297", "rows": 0, "size": 4608,
253
+ "source": "source/4fecda9f035d0741f000336e", "source_status": true, "status":
292
254
  {"code": 1, "message": "The dataset is being processed and will be created
293
- soon"}, "tags": [], "updated": "2012-06-20T03:57:44.916923"}'
255
+ soon"}, "tags": [], "updated": "2012-06-28T22:28:49.685423"}'
294
256
  http_version: '1.1'
295
- recorded_at: Wed, 20 Jun 2012 03:57:56 GMT
257
+ recorded_at: Thu, 28 Jun 2012 22:29:22 GMT
296
258
  - request:
297
259
  method: post
298
260
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
299
261
  body:
300
262
  encoding: UTF-8
301
- string: ! '{"dataset":"dataset/4fe14a38035d074a1c0000fb"}'
263
+ string: ! '{"dataset":"dataset/4fecdaa1035d0741ef003297"}'
302
264
  headers:
303
265
  content-type:
304
266
  - application/json
@@ -312,30 +274,59 @@ http_interactions:
312
274
  content-type:
313
275
  - application/json; charset=utf-8
314
276
  date:
315
- - Wed, 20 Jun 2012 03:54:07 GMT
277
+ - Thu, 28 Jun 2012 22:24:37 GMT
316
278
  location:
317
- - http://bigml.io/andromeda/model/4fe14a561552687d42000148
279
+ - http://bigml.io/andromeda/model/4fecdad415526875f5003304
318
280
  server:
319
281
  - nginx/1.0.12
320
282
  content-length:
321
- - '690'
283
+ - '691'
322
284
  connection:
323
285
  - Close
324
286
  body:
325
287
  encoding: US-ASCII
326
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:58:14.682267",
327
- "credits": 0.03515625, "dataset": "dataset/4fe14a38035d074a1c0000fb", "dataset_status":
288
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:29:40.119735",
289
+ "credits": 0.017578125, "dataset": "dataset/4fecdaa1035d0741ef003297", "dataset_status":
328
290
  true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
329
291
  "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
330
292
  0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
331
- "model/4fe14a561552687d42000148", "rows": 150, "size": 4608, "source": "source/4fe14a37035d074a1b000113",
293
+ "model/4fecdad415526875f5003304", "rows": 150, "size": 4608, "source": "source/4fecda9f035d0741f000336e",
332
294
  "source_status": true, "status": {"code": 1, "message": "The model is being
333
- processed and will be created soon"}, "tags": [], "updated": "2012-06-20T03:58:14.682285"}'
295
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:29:40.119758"}'
334
296
  http_version: '1.1'
335
- recorded_at: Wed, 20 Jun 2012 03:57:57 GMT
297
+ recorded_at: Thu, 28 Jun 2012 22:29:24 GMT
298
+ - request:
299
+ method: delete
300
+ uri: https://bigml.io/andromeda/model/4fecdad415526875f5003304?username=<USERNAME>&api_key=<API_KEY>
301
+ body:
302
+ encoding: US-ASCII
303
+ string: ''
304
+ headers:
305
+ connection:
306
+ - close
307
+ response:
308
+ status:
309
+ code: 204
310
+ message: NO CONTENT
311
+ headers:
312
+ content-length:
313
+ - '0'
314
+ content-type:
315
+ - text/html; charset=utf-8
316
+ date:
317
+ - Thu, 28 Jun 2012 22:27:13 GMT
318
+ server:
319
+ - nginx/1.0.12
320
+ connection:
321
+ - Close
322
+ body:
323
+ encoding: US-ASCII
324
+ string: ''
325
+ http_version: '1.1'
326
+ recorded_at: Thu, 28 Jun 2012 22:29:26 GMT
336
327
  - request:
337
328
  method: get
338
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
329
+ uri: https://bigml.io/andromeda/model/4fecdad415526875f5003304?username=<USERNAME>&api_key=<API_KEY>
339
330
  body:
340
331
  encoding: US-ASCII
341
332
  string: ''
@@ -344,32 +335,24 @@ http_interactions:
344
335
  - close
345
336
  response:
346
337
  status:
347
- code: 200
348
- message: OK
338
+ code: 404
339
+ message: NOT FOUND
349
340
  headers:
350
341
  content-type:
351
342
  - application/json; charset=utf-8
352
343
  date:
353
- - Wed, 20 Jun 2012 03:56:28 GMT
344
+ - Thu, 28 Jun 2012 22:24:41 GMT
354
345
  server:
355
346
  - nginx/1.0.12
356
347
  content-length:
357
- - '841'
348
+ - '168'
358
349
  connection:
359
350
  - Close
360
351
  body:
361
352
  encoding: US-ASCII
362
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
363
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
364
- "created": "2012-06-20T03:58:14.682000", "credits": 0.03515625, "dataset":
365
- "dataset/4fe14a38035d074a1c0000fb", "dataset_status": true, "description":
366
- "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
367
- "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
368
- model", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
369
- true, "range": [1, 150], "resource": "model/4fe14a561552687d42000148", "rows":
370
- 150, "size": 4608, "source": "source/4fe14a37035d074a1b000113", "source_status":
371
- true, "status": {"code": 5, "elapsed": 158, "message": "The model has been
372
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:14.932000"}]}'
353
+ string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
354
+ an instance of ''Model'' which matched ''pk=4fecdad415526875f5003304''."],
355
+ "message": "Id does not exist"}}'
373
356
  http_version: '1.1'
374
- recorded_at: Wed, 20 Jun 2012 03:57:59 GMT
357
+ recorded_at: Thu, 28 Jun 2012 22:29:27 GMT
375
358
  recorded_with: VCR 2.2.2