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:29:22 GMT
20
+ - Sat, 14 Jul 2012 15:19:15 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:31:43.742000", "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/4fecdb4f15526875f500331c", "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": 76, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:31:00.633000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:25:47.146000", "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/50018f7b155268794e000029", "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": 68, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:25:53.270000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:31:35 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:25:18 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdb4f15526875f500331c?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50018f7b155268794e000029?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:26:51 GMT
67
+ - Sat, 14 Jul 2012 15:24:19 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:37 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:25:22 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,7 +91,7 @@ http_interactions:
90
91
  content-type:
91
92
  - application/json; charset=utf-8
92
93
  date:
93
- - Thu, 28 Jun 2012 22:29:25 GMT
94
+ - Sat, 14 Jul 2012 15:19:20 GMT
94
95
  server:
95
96
  - nginx/1.0.12
96
97
  transfer-encoding:
@@ -101,18 +102,18 @@ http_interactions:
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:45.366000", "credits": 0.00439453125, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 1, "private": true, "resource": "dataset/4fecdb5115526875f70033dd", "rows":
107
- 150, "size": 4608, "source": "source/4fecdb4f15526875f500331c", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 185, "field_errors":
105
+ "created": "2012-07-14T15:24:44.779000", "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/50018f3c035d07404e00002e",
108
+ "rows": 150, "size": 4608, "source": "source/50018f7b155268794e000029", "source_status":
109
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 182, "field_errors":
109
110
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-28T22:31:00.640000"}]}'
111
+ 150}, "tags": [], "updated": "2012-07-14T15:25:53.291000"}]}'
111
112
  http_version: '1.1'
112
- recorded_at: Thu, 28 Jun 2012 22:31:39 GMT
113
+ recorded_at: Sat, 14 Jul 2012 15:25:23 GMT
113
114
  - request:
114
115
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fecdb5115526875f70033dd?username=<USERNAME>&api_key=<API_KEY>
116
+ uri: https://bigml.io/dev/andromeda/dataset/50018f3c035d07404e00002e?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:26:55 GMT
133
+ - Sat, 14 Jul 2012 15:24:23 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:41 GMT
142
+ recorded_at: Sat, 14 Jul 2012 15:25:26 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:29:30 GMT
160
+ - Sat, 14 Jul 2012 15:19:24 GMT
160
161
  server:
161
162
  - nginx/1.0.12
162
163
  content-length:
163
- - '844'
164
+ - '857'
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:30:58.334000", "credits": 0.017578125, "dataset":
171
- "dataset/4fecdb5115526875f70033dd", "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/4fecdb22035d0741f100331c", "rows":
176
- 150, "size": 4608, "source": "source/4fecdb4f15526875f500331c", "source_status":
177
- false, "status": {"code": 5, "elapsed": 130, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:31:00.645000"}]}'
171
+ "created": "2012-07-14T15:24:46.351000", "credits": 0.017578125, "dataset":
172
+ "dataset/50018f3c035d07404e00002e", "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/50018f3e035d074059000039",
177
+ "rows": 150, "size": 4608, "source": "source/50018f7b155268794e000029", "source_status":
178
+ false, "status": {"code": 5, "elapsed": 145, "message": "The model has been
179
+ created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:25:53.299000"}]}'
179
180
  http_version: '1.1'
180
- recorded_at: Thu, 28 Jun 2012 22:31:43 GMT
181
+ recorded_at: Sat, 14 Jul 2012 15:25:27 GMT
181
182
  - request:
182
183
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fecdb22035d0741f100331c?username=<USERNAME>&api_key=<API_KEY>
184
+ uri: https://bigml.io/dev/andromeda/model/50018f3e035d074059000039?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:26:58 GMT
201
+ - Sat, 14 Jul 2012 15:24:26 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:44 GMT
210
+ recorded_at: Sat, 14 Jul 2012 15:25:29 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:29:34 GMT
228
+ - Sat, 14 Jul 2012 15:19:29 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:31:00.627000",
238
- "credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "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/4fecdb22035d0741f100331c",
238
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-07-14T15:25:53.262000",
239
+ "credits": 0.01, "dataset": "dataset/50018f3c035d07404e00002e", "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/50018f3e035d074059000039",
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/4fecdb24035d0741f100331f",
250
- "source": "source/4fecdb4f15526875f500331c", "source_status": false, "status":
250
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f811552681d68000033",
251
+ "source": "source/50018f7b155268794e000029", "source_status": false, "status":
251
252
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
252
- "2012-06-28T22:31:00.627000"}]}'
253
+ "2012-07-14T15:25:53.262000"}]}'
253
254
  http_version: '1.1'
254
- recorded_at: Thu, 28 Jun 2012 22:31:47 GMT
255
+ recorded_at: Sat, 14 Jul 2012 15:25:32 GMT
255
256
  - request:
256
257
  method: delete
257
- uri: https://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f?username=<USERNAME>&api_key=<API_KEY>
258
+ uri: https://bigml.io/dev/andromeda/prediction/50018f811552681d68000033?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:27:02 GMT
275
+ - Sat, 14 Jul 2012 15:24:30 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:48 GMT
284
+ recorded_at: Sat, 14 Jul 2012 15:25:33 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:29:38 GMT
306
+ - Sat, 14 Jul 2012 15:19:32 GMT
306
307
  location:
307
- - http://bigml.io/andromeda/source/4fecdb6715526875f800333a
308
+ - http://bigml.io/andromeda/source/50018f54035d07404e000032
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:32:07.857541", "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/4fecdb6715526875f800333a", "size":
318
+ "created": "2012-07-14T15:25:08.102045", "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/50018f54035d07404e000032", "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:32:07.857562"}'
324
+ "2012-07-14T15:25:08.102067"}'
324
325
  http_version: '1.1'
325
- recorded_at: Thu, 28 Jun 2012 22:31:51 GMT
326
+ recorded_at: Sat, 14 Jul 2012 15:25:35 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/4fecdb6715526875f800333a"}'
332
+ string: ! '{"source":"source/50018f54035d07404e000032"}'
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:27:07 GMT
346
+ - Sat, 14 Jul 2012 15:24:34 GMT
346
347
  location:
347
- - http://bigml.io/andromeda/dataset/4fecdb38035d0741f000337f
348
+ - http://bigml.io/andromeda/dataset/50018f55035d07405900003c
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:20.783653",
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/4fecdb38035d0741f000337f", "rows": 0, "size": 4608,
365
- "source": "source/4fecdb6715526875f800333a", "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:20.783685"}'
357
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:25:09.877964",
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/50018f55035d07405900003c", "rows":
366
+ 0, "size": 4608, "source": "source/50018f54035d07404e000032", "source_status":
367
+ true, "status": {"code": 1, "message": "The dataset is being processed and
368
+ will be created soon"}, "tags": [], "updated": "2012-07-14T15:25:09.877989"}'
368
369
  http_version: '1.1'
369
- recorded_at: Thu, 28 Jun 2012 22:31:53 GMT
370
+ recorded_at: Sat, 14 Jul 2012 15:25:37 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/4fecdb38035d0741f000337f"}'
376
+ string: ! '{"dataset":"dataset/50018f55035d07405900003c"}'
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:29:42 GMT
390
+ - Sat, 14 Jul 2012 15:19:35 GMT
390
391
  location:
391
- - http://bigml.io/andromeda/model/4fecdb3b035d0741f0003382
392
+ - http://bigml.io/andromeda/model/50018f971552681ee400001d
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:31:23.288353",
401
- "credits": 0.017578125, "dataset": "dataset/4fecdb38035d0741f000337f", "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/4fecdb3b035d0741f0003382", "rows": 150, "size": 4608, "source": "source/4fecdb6715526875f800333a",
406
- "source_status": true, "status": {"code": 1, "message": "The model is being
407
- processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:31:23.288374"}'
401
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:26:15.494806",
402
+ "credits": 0.017578125, "dataset": "dataset/50018f55035d07405900003c", "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/50018f971552681ee400001d", "rows": 150,
407
+ "size": 4608, "source": "source/50018f54035d07404e000032", "source_status":
408
+ true, "status": {"code": 1, "message": "The model is being processed and will
409
+ be created soon"}, "tags": [], "updated": "2012-07-14T15:26:15.494838"}'
408
410
  http_version: '1.1'
409
- recorded_at: Thu, 28 Jun 2012 22:31:56 GMT
411
+ recorded_at: Sat, 14 Jul 2012 15:25:38 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/4fecdb3b035d0741f0003382","input_data":{"000001":3}}'
417
+ string: ! '{"model":"model/50018f971552681ee400001d","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:27:12 GMT
431
+ - Sat, 14 Jul 2012 15:24:37 GMT
430
432
  location:
431
- - http://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e
433
+ - http://bigml.io/andromeda/prediction/50018f991552681edf000028
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:32:14.791822",
441
- "credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "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/4fecdb3b035d0741f0003382",
442
+ string: ! '{"category": 0, "code": 201, "created": "2012-07-14T15:26:17.563300",
443
+ "credits": 0.01, "dataset": "dataset/50018f55035d07405900003c", "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/50018f971552681ee400001d",
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/4fecdb6e15526875f500331e",
453
- "source": "source/4fecdb6715526875f800333a", "source_status": true, "status":
454
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f991552681edf000028",
455
+ "source": "source/50018f54035d07404e000032", "source_status": true, "status":
454
456
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
455
- "2012-06-28T22:32:14.791841"}'
457
+ "2012-07-14T15:26:17.563322"}'
456
458
  http_version: '1.1'
457
- recorded_at: Thu, 28 Jun 2012 22:31:58 GMT
459
+ recorded_at: Sat, 14 Jul 2012 15:25:40 GMT
458
460
  - request:
459
461
  method: put
460
- uri: https://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e?username=<USERNAME>&api_key=<API_KEY>
462
+ uri: https://bigml.io/dev/andromeda/prediction/50018f991552681edf000028?username=<USERNAME>&api_key=<API_KEY>
461
463
  body:
462
464
  encoding: UTF-8
463
465
  string: ! '{"name":"foo name"}'
@@ -474,35 +476,35 @@ http_interactions:
474
476
  content-type:
475
477
  - application/json; charset=utf-8
476
478
  date:
477
- - Thu, 28 Jun 2012 22:29:46 GMT
479
+ - Sat, 14 Jul 2012 15:19:38 GMT
478
480
  server:
479
481
  - nginx/1.0.12
480
- content-length:
481
- - '1208'
482
+ transfer-encoding:
483
+ - chunked
482
484
  connection:
483
485
  - Close
484
486
  body:
485
487
  encoding: US-ASCII
486
- string: ! '{"category": 0, "code": 202, "created": "2012-06-28T22:32:14.791000",
487
- "credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
488
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
489
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
490
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
491
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
492
- "string", "name": "species", "optype": "categorical", "preferred": true}},
493
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3b035d0741f0003382",
488
+ string: ! '{"category": 0, "code": 202, "created": "2012-07-14T15:26:17.563000",
489
+ "credits": 0.01, "dataset": "dataset/50018f55035d07405900003c", "dataset_status":
490
+ true, "description": "", "dev": true, "fields": {"000001": {"column_number":
491
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
492
+ true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
493
+ length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
494
+ 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
495
+ true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f971552681ee400001d",
494
496
  "model_status": true, "name": "foo name", "objective_fields": ["000004"],
495
497
  "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
496
498
  [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
497
499
  {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
498
- []}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e", "source":
499
- "source/4fecdb6715526875f800333a", "source_status": true, "status": {"code":
500
- 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:32:16.219595"}'
500
+ []}, "private": true, "resource": "prediction/50018f991552681edf000028", "source":
501
+ "source/50018f54035d07404e000032", "source_status": true, "status": {"code":
502
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-07-14T15:25:14.634494"}'
501
503
  http_version: '1.1'
502
- recorded_at: Thu, 28 Jun 2012 22:31:59 GMT
504
+ recorded_at: Sat, 14 Jul 2012 15:25:41 GMT
503
505
  - request:
504
506
  method: get
505
- uri: https://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e?username=<USERNAME>&api_key=<API_KEY>
507
+ uri: https://bigml.io/dev/andromeda/prediction/50018f991552681edf000028?username=<USERNAME>&api_key=<API_KEY>
506
508
  body:
507
509
  encoding: US-ASCII
508
510
  string: ''
@@ -517,7 +519,7 @@ http_interactions:
517
519
  content-type:
518
520
  - application/json; charset=utf-8
519
521
  date:
520
- - Thu, 28 Jun 2012 22:27:14 GMT
522
+ - Sat, 14 Jul 2012 15:24:39 GMT
521
523
  server:
522
524
  - nginx/1.0.12
523
525
  transfer-encoding:
@@ -526,21 +528,21 @@ http_interactions:
526
528
  - Close
527
529
  body:
528
530
  encoding: US-ASCII
529
- string: ! '{"category": 0, "code": 200, "created": "2012-06-28T22:32:14.791000",
530
- "credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
531
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
532
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
533
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
534
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
535
- "string", "name": "species", "optype": "categorical", "preferred": true}},
536
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3b035d0741f0003382",
531
+ string: ! '{"category": 0, "code": 200, "created": "2012-07-14T15:26:17.563000",
532
+ "credits": 0.01, "dataset": "dataset/50018f55035d07405900003c", "dataset_status":
533
+ true, "description": "", "dev": true, "fields": {"000001": {"column_number":
534
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
535
+ true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
536
+ length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
537
+ 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
538
+ true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f971552681ee400001d",
537
539
  "model_status": true, "name": "foo name", "objective_fields": ["000004"],
538
540
  "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
539
541
  [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
540
542
  {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
541
- []}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e", "source":
542
- "source/4fecdb6715526875f800333a", "source_status": true, "status": {"code":
543
- 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:32:16.219000"}'
543
+ []}, "private": true, "resource": "prediction/50018f991552681edf000028", "source":
544
+ "source/50018f54035d07404e000032", "source_status": true, "status": {"code":
545
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-07-14T15:25:14.634000"}'
544
546
  http_version: '1.1'
545
- recorded_at: Thu, 28 Jun 2012 22:32:01 GMT
547
+ recorded_at: Sat, 14 Jul 2012 15:25:42 GMT
546
548
  recorded_with: VCR 2.2.2