big_ml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +2 -1
  2. data/big_ml.gemspec +1 -1
  3. data/lib/big_ml/util/client.rb +7 -2
  4. data/lib/big_ml/util/config.rb +7 -2
  5. data/lib/big_ml/version.rb +1 -1
  6. data/spec/spec_helper.rb +2 -2
  7. data/spec/units/client_spec.rb +37 -6
  8. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +16 -95
  9. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +69 -67
  10. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +72 -71
  11. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +104 -103
  12. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +66 -65
  13. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +148 -147
  14. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +147 -146
  15. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +83 -80
  16. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +119 -74
  17. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +36 -36
  18. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +89 -87
  19. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +101 -99
  20. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml +91 -89
  21. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +191 -200
  22. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +109 -231
  23. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +272 -252
  24. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +126 -252
  25. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +117 -113
  26. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +158 -120
  27. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +101 -56
  28. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +96 -94
  29. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +126 -124
  30. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +147 -145
  31. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +141 -139
  32. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +159 -157
  33. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +161 -159
  34. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +145 -143
  35. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +148 -146
  36. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +75 -74
  37. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +25 -24
  38. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +32 -32
  39. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +21 -21
  40. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +48 -47
  41. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -42
  42. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +77 -76
  43. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +78 -77
  44. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +53 -51
  45. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +52 -50
  46. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +14 -14
  47. metadata +5 -5
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
5
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -17,36 +17,37 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Thu, 28 Jun 2012 22:26:25 GMT
20
+ - Sat, 14 Jul 2012 15:23:51 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '1293'
25
25
  connection:
26
26
  - Close
27
27
  body:
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-28T22:30:27.499000", "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
- 1, "private": true, "resource": "source/4fecdb03035d0741f0003378", "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": 85, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:30:35.394000"}]}'
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"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:31:11 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:24:54 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdb03035d0741f0003378?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50018f611552681d68000031?username=<USERNAME>&api_key=<API_KEY>
50
51
  body:
51
52
  encoding: US-ASCII
52
53
  string: ''
@@ -63,7 +64,7 @@ http_interactions:
63
64
  content-type:
64
65
  - text/html; charset=utf-8
65
66
  date:
66
- - Thu, 28 Jun 2012 22:29:02 GMT
67
+ - Sat, 14 Jul 2012 15:18:53 GMT
67
68
  server:
68
69
  - nginx/1.0.12
69
70
  connection:
@@ -72,10 +73,10 @@ http_interactions:
72
73
  encoding: US-ASCII
73
74
  string: ''
74
75
  http_version: '1.1'
75
- recorded_at: Thu, 28 Jun 2012 22:31:15 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:24:56 GMT
76
77
  - request:
77
78
  method: get
78
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
79
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
79
80
  body:
80
81
  encoding: US-ASCII
81
82
  string: ''
@@ -90,29 +91,29 @@ http_interactions:
90
91
  content-type:
91
92
  - application/json; charset=utf-8
92
93
  date:
93
- - Thu, 28 Jun 2012 22:26:29 GMT
94
+ - Sat, 14 Jul 2012 15:23:54 GMT
94
95
  server:
95
96
  - nginx/1.0.12
96
97
  content-length:
97
- - '704'
98
+ - '717'
98
99
  connection:
99
100
  - Close
100
101
  body:
101
102
  encoding: US-ASCII
102
103
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
104
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-28T22:31:18.381000", "credits": 0.00439453125, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
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":
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":
109
110
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-28T22:30:35.401000"}]}'
111
+ 150}, "tags": [], "updated": "2012-07-14T15:24:22.596000"}]}'
111
112
  http_version: '1.1'
112
- recorded_at: Thu, 28 Jun 2012 22:31:16 GMT
113
+ recorded_at: Sat, 14 Jul 2012 15:24:57 GMT
113
114
  - request:
114
115
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fecdb3615526875f8003337?username=<USERNAME>&api_key=<API_KEY>
116
+ uri: https://bigml.io/dev/andromeda/dataset/50018f631552681ee4000016?username=<USERNAME>&api_key=<API_KEY>
116
117
  body:
117
118
  encoding: US-ASCII
118
119
  string: ''
@@ -129,7 +130,7 @@ http_interactions:
129
130
  content-type:
130
131
  - text/html; charset=utf-8
131
132
  date:
132
- - Thu, 28 Jun 2012 22:29:05 GMT
133
+ - Sat, 14 Jul 2012 15:18:58 GMT
133
134
  server:
134
135
  - nginx/1.0.12
135
136
  connection:
@@ -138,10 +139,10 @@ http_interactions:
138
139
  encoding: US-ASCII
139
140
  string: ''
140
141
  http_version: '1.1'
141
- recorded_at: Thu, 28 Jun 2012 22:31:18 GMT
142
+ recorded_at: Sat, 14 Jul 2012 15:25:01 GMT
142
143
  - request:
143
144
  method: get
144
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
145
+ uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
145
146
  body:
146
147
  encoding: US-ASCII
147
148
  string: ''
@@ -156,31 +157,31 @@ http_interactions:
156
157
  content-type:
157
158
  - application/json; charset=utf-8
158
159
  date:
159
- - Thu, 28 Jun 2012 22:26:33 GMT
160
+ - Sat, 14 Jul 2012 15:23:59 GMT
160
161
  server:
161
162
  - nginx/1.0.12
162
- content-length:
163
- - '844'
163
+ transfer-encoding:
164
+ - chunked
164
165
  connection:
165
166
  - Close
166
167
  body:
167
168
  encoding: US-ASCII
168
169
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
170
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
- "created": "2012-06-28T22:31:21.927000", "credits": 0.017578125, "dataset":
171
- "dataset/4fecdb3615526875f8003337", "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": 1, "objective_fields": ["000004"], "private":
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"}]}'
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"}]}'
179
180
  http_version: '1.1'
180
- recorded_at: Thu, 28 Jun 2012 22:31:19 GMT
181
+ recorded_at: Sat, 14 Jul 2012 15:25:02 GMT
181
182
  - request:
182
183
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fecdb3915526875f300333f?username=<USERNAME>&api_key=<API_KEY>
184
+ uri: https://bigml.io/dev/andromeda/model/50018f24035d074059000036?username=<USERNAME>&api_key=<API_KEY>
184
185
  body:
185
186
  encoding: US-ASCII
186
187
  string: ''
@@ -197,7 +198,7 @@ http_interactions:
197
198
  content-type:
198
199
  - text/html; charset=utf-8
199
200
  date:
200
- - Thu, 28 Jun 2012 22:29:08 GMT
201
+ - Sat, 14 Jul 2012 15:19:01 GMT
201
202
  server:
202
203
  - nginx/1.0.12
203
204
  connection:
@@ -206,10 +207,10 @@ http_interactions:
206
207
  encoding: US-ASCII
207
208
  string: ''
208
209
  http_version: '1.1'
209
- recorded_at: Thu, 28 Jun 2012 22:31:21 GMT
210
+ recorded_at: Sat, 14 Jul 2012 15:25:04 GMT
210
211
  - request:
211
212
  method: get
212
- uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
213
+ uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
213
214
  body:
214
215
  encoding: US-ASCII
215
216
  string: ''
@@ -224,37 +225,37 @@ http_interactions:
224
225
  content-type:
225
226
  - application/json; charset=utf-8
226
227
  date:
227
- - Thu, 28 Jun 2012 22:26:38 GMT
228
+ - Sat, 14 Jul 2012 15:24:04 GMT
228
229
  server:
229
230
  - nginx/1.0.12
230
231
  content-length:
231
- - '1326'
232
+ - '1339'
232
233
  connection:
233
234
  - Close
234
235
  body:
235
236
  encoding: US-ASCII
236
237
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
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
- false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
240
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
241
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
242
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
243
- "string", "name": "species", "optype": "categorical", "preferred": true}},
244
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3915526875f300333f",
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",
245
246
  "model_status": false, "name": "Prediction for species", "objective_fields":
246
247
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
247
248
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
248
249
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
249
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb0b035d0741ed003308",
250
- "source": "source/4fecdb03035d0741f0003378", "source_status": false, "status":
250
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f26035d07404e00002b",
251
+ "source": "source/50018f611552681d68000031", "source_status": false, "status":
251
252
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
252
- "2012-06-28T22:30:35.389000"}]}'
253
+ "2012-07-14T15:24:22.584000"}]}'
253
254
  http_version: '1.1'
254
- recorded_at: Thu, 28 Jun 2012 22:31:24 GMT
255
+ recorded_at: Sat, 14 Jul 2012 15:25:07 GMT
255
256
  - request:
256
257
  method: delete
257
- uri: https://bigml.io/andromeda/prediction/4fecdb0b035d0741ed003308?username=<USERNAME>&api_key=<API_KEY>
258
+ uri: https://bigml.io/dev/andromeda/prediction/50018f26035d07404e00002b?username=<USERNAME>&api_key=<API_KEY>
258
259
  body:
259
260
  encoding: US-ASCII
260
261
  string: ''
@@ -271,7 +272,7 @@ http_interactions:
271
272
  content-type:
272
273
  - text/html; charset=utf-8
273
274
  date:
274
- - Thu, 28 Jun 2012 22:29:12 GMT
275
+ - Sat, 14 Jul 2012 15:19:05 GMT
275
276
  server:
276
277
  - nginx/1.0.12
277
278
  connection:
@@ -280,10 +281,10 @@ http_interactions:
280
281
  encoding: US-ASCII
281
282
  string: ''
282
283
  http_version: '1.1'
283
- recorded_at: Thu, 28 Jun 2012 22:31:25 GMT
284
+ recorded_at: Sat, 14 Jul 2012 15:25:08 GMT
284
285
  - request:
285
286
  method: post
286
- uri: https://bigml.io/andromeda/source
287
+ uri: https://bigml.io/dev/andromeda/source
287
288
  body:
288
289
  encoding: US-ASCII
289
290
  string: ''
@@ -291,7 +292,7 @@ http_interactions:
291
292
  content-type:
292
293
  - multipart/form-data; boundary=-----------RubyMultipartPost
293
294
  content-length:
294
- - '5147'
295
+ - '5149'
295
296
  connection:
296
297
  - close
297
298
  response:
@@ -302,33 +303,33 @@ http_interactions:
302
303
  content-type:
303
304
  - application/json; charset=utf-8
304
305
  date:
305
- - Thu, 28 Jun 2012 22:26:41 GMT
306
+ - Sat, 14 Jul 2012 15:24:07 GMT
306
307
  location:
307
- - http://bigml.io/andromeda/source/4fecdb4f15526875f500331c
308
+ - http://bigml.io/andromeda/source/50018f7b155268794e000029
308
309
  server:
309
310
  - nginx/1.0.12
310
311
  content-length:
311
- - '567'
312
+ - '580'
312
313
  connection:
313
314
  - Close
314
315
  body:
315
316
  encoding: US-ASCII
316
317
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
317
- "created": "2012-06-28T22:31:43.742628", "credits": 0.0, "description": "",
318
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
319
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
320
- 0, "private": true, "resource": "source/4fecdb4f15526875f500331c", "size":
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":
321
322
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
322
323
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
323
- "2012-06-28T22:31:43.742655"}'
324
+ "2012-07-14T15:25:47.146041"}'
324
325
  http_version: '1.1'
325
- recorded_at: Thu, 28 Jun 2012 22:31:27 GMT
326
+ recorded_at: Sat, 14 Jul 2012 15:25:10 GMT
326
327
  - request:
327
328
  method: post
328
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
329
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
329
330
  body:
330
331
  encoding: UTF-8
331
- string: ! '{"source":"source/4fecdb4f15526875f500331c"}'
332
+ string: ! '{"source":"source/50018f7b155268794e000029"}'
332
333
  headers:
333
334
  content-type:
334
335
  - application/json
@@ -342,37 +343,37 @@ http_interactions:
342
343
  content-type:
343
344
  - application/json; charset=utf-8
344
345
  date:
345
- - Thu, 28 Jun 2012 22:29:16 GMT
346
+ - Sat, 14 Jul 2012 15:19:09 GMT
346
347
  location:
347
- - http://bigml.io/andromeda/dataset/4fecdb5115526875f70033dd
348
+ - http://bigml.io/andromeda/dataset/50018f3c035d07404e00002e
348
349
  server:
349
350
  - nginx/1.0.12
350
351
  content-length:
351
- - '921'
352
+ - '934'
352
353
  connection:
353
354
  - Close
354
355
  body:
355
356
  encoding: US-ASCII
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
- 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
359
- 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
360
- 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
361
- 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
362
- 4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
363
- "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
364
- true, "resource": "dataset/4fecdb5115526875f70033dd", "rows": 0, "size": 4608,
365
- "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
366
- {"code": 1, "message": "The dataset is being processed and will be created
367
- soon"}, "tags": [], "updated": "2012-06-28T22:31:45.366304"}'
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"}'
368
369
  http_version: '1.1'
369
- recorded_at: Thu, 28 Jun 2012 22:31:29 GMT
370
+ recorded_at: Sat, 14 Jul 2012 15:25:12 GMT
370
371
  - request:
371
372
  method: post
372
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
373
+ uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
373
374
  body:
374
375
  encoding: UTF-8
375
- string: ! '{"dataset":"dataset/4fecdb5115526875f70033dd"}'
376
+ string: ! '{"dataset":"dataset/50018f3c035d07404e00002e"}'
376
377
  headers:
377
378
  content-type:
378
379
  - application/json
@@ -386,33 +387,34 @@ http_interactions:
386
387
  content-type:
387
388
  - application/json; charset=utf-8
388
389
  date:
389
- - Thu, 28 Jun 2012 22:26:45 GMT
390
+ - Sat, 14 Jul 2012 15:24:10 GMT
390
391
  location:
391
- - http://bigml.io/andromeda/model/4fecdb22035d0741f100331c
392
+ - http://bigml.io/andromeda/model/50018f3e035d074059000039
392
393
  server:
393
394
  - nginx/1.0.12
394
395
  content-length:
395
- - '691'
396
+ - '704'
396
397
  connection:
397
398
  - Close
398
399
  body:
399
400
  encoding: US-ASCII
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
- true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
403
- "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
404
- 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
405
- "model/4fecdb22035d0741f100331c", "rows": 150, "size": 4608, "source": "source/4fecdb4f15526875f500331c",
406
- "source_status": true, "status": {"code": 1, "message": "The model is being
407
- processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:30:58.334831"}'
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"}'
408
410
  http_version: '1.1'
409
- recorded_at: Thu, 28 Jun 2012 22:31:31 GMT
411
+ recorded_at: Sat, 14 Jul 2012 15:25:13 GMT
410
412
  - request:
411
413
  method: post
412
- uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
414
+ uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
413
415
  body:
414
416
  encoding: UTF-8
415
- string: ! '{"model":"model/4fecdb22035d0741f100331c","input_data":{"000001":3}}'
417
+ string: ! '{"model":"model/50018f3e035d074059000039","input_data":{"000001":3}}'
416
418
  headers:
417
419
  content-type:
418
420
  - application/json
@@ -426,38 +428,38 @@ http_interactions:
426
428
  content-type:
427
429
  - application/json; charset=utf-8
428
430
  date:
429
- - Thu, 28 Jun 2012 22:29:20 GMT
431
+ - Sat, 14 Jul 2012 15:19:13 GMT
430
432
  location:
431
- - http://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f
433
+ - http://bigml.io/andromeda/prediction/50018f811552681d68000033
432
434
  server:
433
435
  - nginx/1.0.12
434
436
  content-length:
435
- - '1222'
437
+ - '1235'
436
438
  connection:
437
439
  - Close
438
440
  body:
439
441
  encoding: US-ASCII
440
- string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:31:00.627152",
441
- "credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "dataset_status":
442
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
443
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
444
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
445
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
446
- "string", "name": "species", "optype": "categorical", "preferred": true}},
447
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb22035d0741f100331c",
442
+ string: ! '{"category": 0, "code": 201, "created": "2012-07-14T15:25:53.262233",
443
+ "credits": 0.01, "dataset": "dataset/50018f3c035d07404e00002e", "dataset_status":
444
+ 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",
448
450
  "model_status": true, "name": "Prediction for species", "objective_fields":
449
451
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
450
452
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
451
453
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
452
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb24035d0741f100331f",
453
- "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
454
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f811552681d68000033",
455
+ "source": "source/50018f7b155268794e000029", "source_status": true, "status":
454
456
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
455
- "2012-06-28T22:31:00.627173"}'
457
+ "2012-07-14T15:25:53.262255"}'
456
458
  http_version: '1.1'
457
- recorded_at: Thu, 28 Jun 2012 22:31:33 GMT
459
+ recorded_at: Sat, 14 Jul 2012 15:25:16 GMT
458
460
  - request:
459
461
  method: get
460
- uri: https://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f?username=<USERNAME>&api_key=<API_KEY>
462
+ uri: https://bigml.io/dev/andromeda/prediction/50018f811552681d68000033?username=<USERNAME>&api_key=<API_KEY>
461
463
  body:
462
464
  encoding: US-ASCII
463
465
  string: ''
@@ -472,31 +474,31 @@ http_interactions:
472
474
  content-type:
473
475
  - application/json; charset=utf-8
474
476
  date:
475
- - Thu, 28 Jun 2012 22:26:47 GMT
477
+ - Sat, 14 Jul 2012 15:24:14 GMT
476
478
  server:
477
479
  - nginx/1.0.12
478
- transfer-encoding:
479
- - chunked
480
+ content-length:
481
+ - '1235'
480
482
  connection:
481
483
  - Close
482
484
  body:
483
485
  encoding: US-ASCII
484
- string: ! '{"category": 0, "code": 200, "created": "2012-06-28T22:31:00.627000",
485
- "credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "dataset_status":
486
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
487
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
488
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
489
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
490
- "string", "name": "species", "optype": "categorical", "preferred": true}},
491
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb22035d0741f100331c",
486
+ string: ! '{"category": 0, "code": 200, "created": "2012-07-14T15:25:53.262000",
487
+ "credits": 0.01, "dataset": "dataset/50018f3c035d07404e00002e", "dataset_status":
488
+ 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",
492
494
  "model_status": true, "name": "Prediction for species", "objective_fields":
493
495
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
494
496
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
495
497
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
496
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb24035d0741f100331f",
497
- "source": "source/4fecdb4f15526875f500331c", "source_status": true, "status":
498
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f811552681d68000033",
499
+ "source": "source/50018f7b155268794e000029", "source_status": true, "status":
498
500
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
499
- "2012-06-28T22:31:00.627000"}'
501
+ "2012-07-14T15:25:53.262000"}'
500
502
  http_version: '1.1'
501
- recorded_at: Thu, 28 Jun 2012 22:31:34 GMT
503
+ recorded_at: Sat, 14 Jul 2012 15:25:17 GMT
502
504
  recorded_with: VCR 2.2.2