big_ml 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 04:06:43 GMT
20
+ - Thu, 28 Jun 2012 22:26:25 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -28,7 +28,7 @@ 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-20T04:10:44.716000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:30:27.499000", "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":
@@ -36,17 +36,17 @@ http_interactions:
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
38
  "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 1, "number_of_predictions":
39
- 1, "private": true, "resource": "source/4fe14d441552687d43000145", "size":
39
+ 1, "private": true, "resource": "source/4fecdb03035d0741f0003378", "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": 87, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T04:10:20.627000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 85, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:30:35.394000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 04:10:34 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:31:11 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14d441552687d43000145?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecdb03035d0741f0003378?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 04:09:05 GMT
66
+ - Thu, 28 Jun 2012 22:29:02 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 04:10:36 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:31:15 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 04:06:46 GMT
93
+ - Thu, 28 Jun 2012 22:26:29 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-20T04:10:46.019000", "credits": 0.0087890625, "description":
104
+ "created": "2012-06-28T22:31:18.381000", "credits": 0.00439453125, "description":
105
105
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 1, "private": true, "resource": "dataset/4fe14d461552687d48000115", "rows":
107
- 150, "size": 4608, "source": "source/4fe14d441552687d43000145", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 199, "field_errors":
106
+ 1, "private": true, "resource": "dataset/4fecdb3615526875f8003337", "rows":
107
+ 150, "size": 4608, "source": "source/4fecdb03035d0741f0003378", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 371, "field_errors":
109
109
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T04:10:20.637000"}]}'
110
+ 150}, "tags": [], "updated": "2012-06-28T22:30:35.401000"}]}'
111
111
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 04:10:37 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:31:16 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14d461552687d48000115?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecdb3615526875f8003337?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 04:09:07 GMT
132
+ - Thu, 28 Jun 2012 22:29:05 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 04:10:38 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:31:18 GMT
142
142
  - request:
143
143
  method: get
144
144
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -156,31 +156,31 @@ http_interactions:
156
156
  content-type:
157
157
  - application/json; charset=utf-8
158
158
  date:
159
- - Wed, 20 Jun 2012 04:06:49 GMT
159
+ - Thu, 28 Jun 2012 22:26:33 GMT
160
160
  server:
161
161
  - nginx/1.0.12
162
162
  content-length:
163
- - '843'
163
+ - '844'
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
169
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
- "created": "2012-06-20T04:10:19.105000", "credits": 0.03515625, "dataset":
171
- "dataset/4fe14d461552687d48000115", "dataset_status": false, "description":
170
+ "created": "2012-06-28T22:31:21.927000", "credits": 0.017578125, "dataset":
171
+ "dataset/4fecdb3615526875f8003337", "dataset_status": false, "description":
172
172
  "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
173
173
  "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
174
174
  model", "number_of_predictions": 1, "objective_fields": ["000004"], "private":
175
- true, "range": [1, 150], "resource": "model/4fe14d2b035d074a1c000109", "rows":
176
- 150, "size": 4608, "source": "source/4fe14d441552687d43000145", "source_status":
177
- false, "status": {"code": 5, "elapsed": 181, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:10:20.641000"}]}'
175
+ true, "range": [1, 150], "resource": "model/4fecdb3915526875f300333f", "rows":
176
+ 150, "size": 4608, "source": "source/4fecdb03035d0741f0003378", "source_status":
177
+ false, "status": {"code": 5, "elapsed": 131, "message": "The model has been
178
+ created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:30:35.404000"}]}'
179
179
  http_version: '1.1'
180
- recorded_at: Wed, 20 Jun 2012 04:10:39 GMT
180
+ recorded_at: Thu, 28 Jun 2012 22:31:19 GMT
181
181
  - request:
182
182
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fe14d2b035d074a1c000109?username=<USERNAME>&api_key=<API_KEY>
183
+ uri: https://bigml.io/andromeda/model/4fecdb3915526875f300333f?username=<USERNAME>&api_key=<API_KEY>
184
184
  body:
185
185
  encoding: US-ASCII
186
186
  string: ''
@@ -197,7 +197,7 @@ http_interactions:
197
197
  content-type:
198
198
  - text/html; charset=utf-8
199
199
  date:
200
- - Wed, 20 Jun 2012 04:09:10 GMT
200
+ - Thu, 28 Jun 2012 22:29:08 GMT
201
201
  server:
202
202
  - nginx/1.0.12
203
203
  connection:
@@ -206,7 +206,7 @@ http_interactions:
206
206
  encoding: US-ASCII
207
207
  string: ''
208
208
  http_version: '1.1'
209
- recorded_at: Wed, 20 Jun 2012 04:10:40 GMT
209
+ recorded_at: Thu, 28 Jun 2012 22:31:21 GMT
210
210
  - request:
211
211
  method: get
212
212
  uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
@@ -224,7 +224,7 @@ http_interactions:
224
224
  content-type:
225
225
  - application/json; charset=utf-8
226
226
  date:
227
- - Wed, 20 Jun 2012 04:06:51 GMT
227
+ - Thu, 28 Jun 2012 22:26:38 GMT
228
228
  server:
229
229
  - nginx/1.0.12
230
230
  content-length:
@@ -234,27 +234,27 @@ http_interactions:
234
234
  body:
235
235
  encoding: US-ASCII
236
236
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
237
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-20T04:10:20.621000",
238
- "credits": 0.01, "dataset": "dataset/4fe14d461552687d48000115", "dataset_status":
237
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-28T22:30:35.389000",
238
+ "credits": 0.01, "dataset": "dataset/4fecdb3615526875f8003337", "dataset_status":
239
239
  false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
240
240
  "double", "name": "sepal width", "optype": "numeric", "preferred": true},
241
241
  "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
242
242
  "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
243
243
  "string", "name": "species", "optype": "categorical", "preferred": true}},
244
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fe14d2b035d074a1c000109",
244
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3915526875f300333f",
245
245
  "model_status": false, "name": "Prediction for species", "objective_fields":
246
246
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
247
247
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
248
248
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
249
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fe14d2c035d074a1b000129",
250
- "source": "source/4fe14d441552687d43000145", "source_status": false, "status":
249
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb0b035d0741ed003308",
250
+ "source": "source/4fecdb03035d0741f0003378", "source_status": false, "status":
251
251
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
252
- "2012-06-20T04:10:20.621000"}]}'
252
+ "2012-06-28T22:30:35.389000"}]}'
253
253
  http_version: '1.1'
254
- recorded_at: Wed, 20 Jun 2012 04:10:42 GMT
254
+ recorded_at: Thu, 28 Jun 2012 22:31:24 GMT
255
255
  - request:
256
256
  method: delete
257
- uri: https://bigml.io/andromeda/prediction/4fe14d2c035d074a1b000129?username=<USERNAME>&api_key=<API_KEY>
257
+ uri: https://bigml.io/andromeda/prediction/4fecdb0b035d0741ed003308?username=<USERNAME>&api_key=<API_KEY>
258
258
  body:
259
259
  encoding: US-ASCII
260
260
  string: ''
@@ -271,7 +271,7 @@ http_interactions:
271
271
  content-type:
272
272
  - text/html; charset=utf-8
273
273
  date:
274
- - Wed, 20 Jun 2012 04:09:12 GMT
274
+ - Thu, 28 Jun 2012 22:29:12 GMT
275
275
  server:
276
276
  - nginx/1.0.12
277
277
  connection:
@@ -280,7 +280,7 @@ http_interactions:
280
280
  encoding: US-ASCII
281
281
  string: ''
282
282
  http_version: '1.1'
283
- recorded_at: Wed, 20 Jun 2012 04:10:43 GMT
283
+ recorded_at: Thu, 28 Jun 2012 22:31:25 GMT
284
284
  - request:
285
285
  method: post
286
286
  uri: https://bigml.io/andromeda/source
@@ -302,9 +302,9 @@ http_interactions:
302
302
  content-type:
303
303
  - application/json; charset=utf-8
304
304
  date:
305
- - Wed, 20 Jun 2012 04:06:54 GMT
305
+ - Thu, 28 Jun 2012 22:26:41 GMT
306
306
  location:
307
- - http://bigml.io/andromeda/source/4fe14d551552687d48000119
307
+ - http://bigml.io/andromeda/source/4fecdb4f15526875f500331c
308
308
  server:
309
309
  - nginx/1.0.12
310
310
  content-length:
@@ -314,21 +314,21 @@ http_interactions:
314
314
  body:
315
315
  encoding: US-ASCII
316
316
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
317
- "created": "2012-06-20T04:11:01.678284", "credits": 0.0, "description": "",
317
+ "created": "2012-06-28T22:31:43.742628", "credits": 0.0, "description": "",
318
318
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
319
319
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
320
- 0, "private": true, "resource": "source/4fe14d551552687d48000119", "size":
320
+ 0, "private": true, "resource": "source/4fecdb4f15526875f500331c", "size":
321
321
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
322
322
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
323
- "2012-06-20T04:11:01.678305"}'
323
+ "2012-06-28T22:31:43.742655"}'
324
324
  http_version: '1.1'
325
- recorded_at: Wed, 20 Jun 2012 04:10:44 GMT
325
+ recorded_at: Thu, 28 Jun 2012 22:31:27 GMT
326
326
  - request:
327
327
  method: post
328
328
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
329
329
  body:
330
330
  encoding: UTF-8
331
- string: ! '{"source":"source/4fe14d551552687d48000119"}'
331
+ string: ! '{"source":"source/4fecdb4f15526875f500331c"}'
332
332
  headers:
333
333
  content-type:
334
334
  - application/json
@@ -342,37 +342,37 @@ http_interactions:
342
342
  content-type:
343
343
  - application/json; charset=utf-8
344
344
  date:
345
- - Wed, 20 Jun 2012 04:09:15 GMT
345
+ - Thu, 28 Jun 2012 22:29:16 GMT
346
346
  location:
347
- - http://bigml.io/andromeda/dataset/4fe14d3a035d074a1e000116
347
+ - http://bigml.io/andromeda/dataset/4fecdb5115526875f70033dd
348
348
  server:
349
349
  - nginx/1.0.12
350
350
  content-length:
351
- - '920'
351
+ - '921'
352
352
  connection:
353
353
  - Close
354
354
  body:
355
355
  encoding: US-ASCII
356
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:10:34.713148",
357
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
356
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:31:45.366286",
357
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
358
358
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
359
359
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
360
360
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
361
361
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
362
362
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
363
363
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
364
- true, "resource": "dataset/4fe14d3a035d074a1e000116", "rows": 0, "size": 4608,
365
- "source": "source/4fe14d551552687d48000119", "source_status": true, "status":
364
+ true, "resource": "dataset/4fecdb5115526875f70033dd", "rows": 0, "size": 4608,
365
+ "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
366
366
  {"code": 1, "message": "The dataset is being processed and will be created
367
- soon"}, "tags": [], "updated": "2012-06-20T04:10:34.713173"}'
367
+ soon"}, "tags": [], "updated": "2012-06-28T22:31:45.366304"}'
368
368
  http_version: '1.1'
369
- recorded_at: Wed, 20 Jun 2012 04:10:45 GMT
369
+ recorded_at: Thu, 28 Jun 2012 22:31:29 GMT
370
370
  - request:
371
371
  method: post
372
372
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
373
373
  body:
374
374
  encoding: UTF-8
375
- string: ! '{"dataset":"dataset/4fe14d3a035d074a1e000116"}'
375
+ string: ! '{"dataset":"dataset/4fecdb5115526875f70033dd"}'
376
376
  headers:
377
377
  content-type:
378
378
  - application/json
@@ -386,33 +386,33 @@ http_interactions:
386
386
  content-type:
387
387
  - application/json; charset=utf-8
388
388
  date:
389
- - Wed, 20 Jun 2012 04:06:56 GMT
389
+ - Thu, 28 Jun 2012 22:26:45 GMT
390
390
  location:
391
- - http://bigml.io/andromeda/model/4fe14d3c035d074a21000150
391
+ - http://bigml.io/andromeda/model/4fecdb22035d0741f100331c
392
392
  server:
393
393
  - nginx/1.0.12
394
394
  content-length:
395
- - '690'
395
+ - '691'
396
396
  connection:
397
397
  - Close
398
398
  body:
399
399
  encoding: US-ASCII
400
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:10:36.050172",
401
- "credits": 0.03515625, "dataset": "dataset/4fe14d3a035d074a1e000116", "dataset_status":
400
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:30:58.334802",
401
+ "credits": 0.017578125, "dataset": "dataset/4fecdb5115526875f70033dd", "dataset_status":
402
402
  true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
403
403
  "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
404
404
  0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
405
- "model/4fe14d3c035d074a21000150", "rows": 150, "size": 4608, "source": "source/4fe14d551552687d48000119",
405
+ "model/4fecdb22035d0741f100331c", "rows": 150, "size": 4608, "source": "source/4fecdb4f15526875f500331c",
406
406
  "source_status": true, "status": {"code": 1, "message": "The model is being
407
- processed and will be created soon"}, "tags": [], "updated": "2012-06-20T04:10:36.050206"}'
407
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:30:58.334831"}'
408
408
  http_version: '1.1'
409
- recorded_at: Wed, 20 Jun 2012 04:10:47 GMT
409
+ recorded_at: Thu, 28 Jun 2012 22:31:31 GMT
410
410
  - request:
411
411
  method: post
412
412
  uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
413
413
  body:
414
414
  encoding: UTF-8
415
- string: ! '{"model":"model/4fe14d3c035d074a21000150","input_data":{"000001":3}}'
415
+ string: ! '{"model":"model/4fecdb22035d0741f100331c","input_data":{"000001":3}}'
416
416
  headers:
417
417
  content-type:
418
418
  - application/json
@@ -426,9 +426,9 @@ http_interactions:
426
426
  content-type:
427
427
  - application/json; charset=utf-8
428
428
  date:
429
- - Wed, 20 Jun 2012 04:09:17 GMT
429
+ - Thu, 28 Jun 2012 22:29:20 GMT
430
430
  location:
431
- - http://bigml.io/andromeda/prediction/4fe14d591552687d42000162
431
+ - http://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f
432
432
  server:
433
433
  - nginx/1.0.12
434
434
  content-length:
@@ -437,27 +437,27 @@ http_interactions:
437
437
  - Close
438
438
  body:
439
439
  encoding: US-ASCII
440
- string: ! '{"category": 0, "code": 201, "created": "2012-06-20T04:11:05.764484",
441
- "credits": 0.01, "dataset": "dataset/4fe14d3a035d074a1e000116", "dataset_status":
440
+ string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:31:00.627152",
441
+ "credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "dataset_status":
442
442
  true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
443
443
  "double", "name": "sepal width", "optype": "numeric", "preferred": true},
444
444
  "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
445
445
  "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
446
446
  "string", "name": "species", "optype": "categorical", "preferred": true}},
447
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fe14d3c035d074a21000150",
447
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb22035d0741f100331c",
448
448
  "model_status": true, "name": "Prediction for species", "objective_fields":
449
449
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
450
450
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
451
451
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
452
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fe14d591552687d42000162",
453
- "source": "source/4fe14d551552687d48000119", "source_status": true, "status":
452
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb24035d0741f100331f",
453
+ "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
454
454
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
455
- "2012-06-20T04:11:05.764502"}'
455
+ "2012-06-28T22:31:00.627173"}'
456
456
  http_version: '1.1'
457
- recorded_at: Wed, 20 Jun 2012 04:10:48 GMT
457
+ recorded_at: Thu, 28 Jun 2012 22:31:33 GMT
458
458
  - request:
459
459
  method: get
460
- uri: https://bigml.io/andromeda/prediction/4fe14d591552687d42000162?username=<USERNAME>&api_key=<API_KEY>
460
+ uri: https://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f?username=<USERNAME>&api_key=<API_KEY>
461
461
  body:
462
462
  encoding: US-ASCII
463
463
  string: ''
@@ -472,7 +472,7 @@ http_interactions:
472
472
  content-type:
473
473
  - application/json; charset=utf-8
474
474
  date:
475
- - Wed, 20 Jun 2012 04:06:59 GMT
475
+ - Thu, 28 Jun 2012 22:26:47 GMT
476
476
  server:
477
477
  - nginx/1.0.12
478
478
  transfer-encoding:
@@ -481,22 +481,22 @@ http_interactions:
481
481
  - Close
482
482
  body:
483
483
  encoding: US-ASCII
484
- string: ! '{"category": 0, "code": 200, "created": "2012-06-20T04:11:05.764000",
485
- "credits": 0.01, "dataset": "dataset/4fe14d3a035d074a1e000116", "dataset_status":
484
+ string: ! '{"category": 0, "code": 200, "created": "2012-06-28T22:31:00.627000",
485
+ "credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "dataset_status":
486
486
  true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
487
487
  "double", "name": "sepal width", "optype": "numeric", "preferred": true},
488
488
  "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
489
489
  "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
490
490
  "string", "name": "species", "optype": "categorical", "preferred": true}},
491
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fe14d3c035d074a21000150",
491
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb22035d0741f100331c",
492
492
  "model_status": true, "name": "Prediction for species", "objective_fields":
493
493
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
494
494
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
495
495
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
496
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fe14d591552687d42000162",
497
- "source": "source/4fe14d551552687d48000119", "source_status": true, "status":
496
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb24035d0741f100331f",
497
+ "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
498
498
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
499
- "2012-06-20T04:11:05.764000"}'
499
+ "2012-06-28T22:31:00.627000"}'
500
500
  http_version: '1.1'
501
- recorded_at: Wed, 20 Jun 2012 04:10:49 GMT
501
+ recorded_at: Thu, 28 Jun 2012 22:31:34 GMT
502
502
  recorded_with: VCR 2.2.2