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:49 GMT
20
+ - Sat, 14 Jul 2012 15:19:40 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:32:07.857000", "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/4fecdb6715526875f800333a", "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": 64, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:32:14.796000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:25:08.102000", "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/50018f54035d07404e000032", "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": 74, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:26:17.569000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:32:02 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:25:43 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdb6715526875f800333a?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50018f54035d07404e000032?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:27:18 GMT
67
+ - Sat, 14 Jul 2012 15:24:44 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:32:05 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:25:47 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:29:53 GMT
94
+ - Sat, 14 Jul 2012 15:19:45 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:20.783000", "credits": 0.00439453125, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 1, "private": true, "resource": "dataset/4fecdb38035d0741f000337f", "rows":
107
- 150, "size": 4608, "source": "source/4fecdb6715526875f800333a", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 229, "field_errors":
105
+ "created": "2012-07-14T15:25:09.877000", "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/50018f55035d07405900003c",
108
+ "rows": 150, "size": 4608, "source": "source/50018f54035d07404e000032", "source_status":
109
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 223, "field_errors":
109
110
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-28T22:32:14.810000"}]}'
111
+ 150}, "tags": [], "updated": "2012-07-14T15:26:17.578000"}]}'
111
112
  http_version: '1.1'
112
- recorded_at: Thu, 28 Jun 2012 22:32:06 GMT
113
+ recorded_at: Sat, 14 Jul 2012 15:25:48 GMT
113
114
  - request:
114
115
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fecdb38035d0741f000337f?username=<USERNAME>&api_key=<API_KEY>
116
+ uri: https://bigml.io/dev/andromeda/dataset/50018f55035d07405900003c?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:27:21 GMT
133
+ - Sat, 14 Jul 2012 15:24:47 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:32:08 GMT
142
+ recorded_at: Sat, 14 Jul 2012 15:25:50 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:56 GMT
160
+ - Sat, 14 Jul 2012 15:19:49 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:31:23.288000", "credits": 0.017578125, "dataset":
171
- "dataset/4fecdb38035d0741f000337f", "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/4fecdb3b035d0741f0003382", "rows":
176
- 150, "size": 4608, "source": "source/4fecdb6715526875f800333a", "source_status":
177
- false, "status": {"code": 5, "elapsed": 131, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:32:14.830000"}]}'
171
+ "created": "2012-07-14T15:26:15.494000", "credits": 0.017578125, "dataset":
172
+ "dataset/50018f55035d07405900003c", "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/50018f971552681ee400001d",
177
+ "rows": 150, "size": 4608, "source": "source/50018f54035d07404e000032", "source_status":
178
+ false, "status": {"code": 5, "elapsed": 147, "message": "The model has been
179
+ created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:26:17.583000"}]}'
179
180
  http_version: '1.1'
180
- recorded_at: Thu, 28 Jun 2012 22:32:09 GMT
181
+ recorded_at: Sat, 14 Jul 2012 15:25:52 GMT
181
182
  - request:
182
183
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fecdb3b035d0741f0003382?username=<USERNAME>&api_key=<API_KEY>
184
+ uri: https://bigml.io/dev/andromeda/model/50018f971552681ee400001d?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:27:25 GMT
201
+ - Sat, 14 Jul 2012 15:24:53 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:32:11 GMT
210
+ recorded_at: Sat, 14 Jul 2012 15:25:56 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,36 +225,36 @@ http_interactions:
224
225
  content-type:
225
226
  - application/json; charset=utf-8
226
227
  date:
227
- - Thu, 28 Jun 2012 22:30:01 GMT
228
+ - Sat, 14 Jul 2012 15:19:55 GMT
228
229
  server:
229
230
  - nginx/1.0.12
230
231
  content-length:
231
- - '1312'
232
+ - '1325'
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:32:14.791000",
238
- "credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "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/4fecdb3b035d0741f0003382",
238
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-07-14T15:26:17.563000",
239
+ "credits": 0.01, "dataset": "dataset/50018f55035d07405900003c", "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/50018f971552681ee400001d",
245
246
  "model_status": false, "name": "foo name", "objective_fields": ["000004"],
246
247
  "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
247
248
  [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
248
249
  {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
249
- []}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e", "source":
250
- "source/4fecdb6715526875f800333a", "source_status": false, "status": {"code":
251
- 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:32:16.219000"}]}'
250
+ []}, "private": true, "resource": "prediction/50018f991552681edf000028", "source":
251
+ "source/50018f54035d07404e000032", "source_status": false, "status": {"code":
252
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-07-14T15:25:14.634000"}]}'
252
253
  http_version: '1.1'
253
- recorded_at: Thu, 28 Jun 2012 22:32:14 GMT
254
+ recorded_at: Sat, 14 Jul 2012 15:25:58 GMT
254
255
  - request:
255
256
  method: delete
256
- uri: https://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e?username=<USERNAME>&api_key=<API_KEY>
257
+ uri: https://bigml.io/dev/andromeda/prediction/50018f991552681edf000028?username=<USERNAME>&api_key=<API_KEY>
257
258
  body:
258
259
  encoding: US-ASCII
259
260
  string: ''
@@ -270,7 +271,7 @@ http_interactions:
270
271
  content-type:
271
272
  - text/html; charset=utf-8
272
273
  date:
273
- - Thu, 28 Jun 2012 22:27:29 GMT
274
+ - Sat, 14 Jul 2012 15:24:57 GMT
274
275
  server:
275
276
  - nginx/1.0.12
276
277
  connection:
@@ -279,10 +280,10 @@ http_interactions:
279
280
  encoding: US-ASCII
280
281
  string: ''
281
282
  http_version: '1.1'
282
- recorded_at: Thu, 28 Jun 2012 22:32:16 GMT
283
+ recorded_at: Sat, 14 Jul 2012 15:25:59 GMT
283
284
  - request:
284
285
  method: post
285
- uri: https://bigml.io/andromeda/source
286
+ uri: https://bigml.io/dev/andromeda/source
286
287
  body:
287
288
  encoding: US-ASCII
288
289
  string: ''
@@ -290,7 +291,7 @@ http_interactions:
290
291
  content-type:
291
292
  - multipart/form-data; boundary=-----------RubyMultipartPost
292
293
  content-length:
293
- - '5147'
294
+ - '5149'
294
295
  connection:
295
296
  - close
296
297
  response:
@@ -301,33 +302,33 @@ http_interactions:
301
302
  content-type:
302
303
  - application/json; charset=utf-8
303
304
  date:
304
- - Thu, 28 Jun 2012 22:30:05 GMT
305
+ - Sat, 14 Jul 2012 15:19:58 GMT
305
306
  location:
306
- - http://bigml.io/andromeda/source/4fecdb51035d0741f0003387
307
+ - http://bigml.io/andromeda/source/50018fae1552681d68000035
307
308
  server:
308
309
  - nginx/1.0.12
309
310
  content-length:
310
- - '567'
311
+ - '580'
311
312
  connection:
312
313
  - Close
313
314
  body:
314
315
  encoding: US-ASCII
315
316
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
316
- "created": "2012-06-28T22:31:45.718463", "credits": 0.0, "description": "",
317
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
318
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
319
- 0, "private": true, "resource": "source/4fecdb51035d0741f0003387", "size":
317
+ "created": "2012-07-14T15:26:38.657245", "credits": 0.0, "description": "",
318
+ "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
319
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
320
+ 0, "private": true, "resource": "source/50018fae1552681d68000035", "size":
320
321
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
321
322
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
322
- "2012-06-28T22:31:45.718486"}'
323
+ "2012-07-14T15:26:38.657266"}'
323
324
  http_version: '1.1'
324
- recorded_at: Thu, 28 Jun 2012 22:32:18 GMT
325
+ recorded_at: Sat, 14 Jul 2012 15:26:01 GMT
325
326
  - request:
326
327
  method: post
327
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
328
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
328
329
  body:
329
330
  encoding: UTF-8
330
- string: ! '{"source":"source/4fecdb51035d0741f0003387"}'
331
+ string: ! '{"source":"source/50018fae1552681d68000035"}'
331
332
  headers:
332
333
  content-type:
333
334
  - application/json
@@ -341,37 +342,37 @@ http_interactions:
341
342
  content-type:
342
343
  - application/json; charset=utf-8
343
344
  date:
344
- - Thu, 28 Jun 2012 22:27:34 GMT
345
+ - Sat, 14 Jul 2012 15:25:00 GMT
345
346
  location:
346
- - http://bigml.io/andromeda/dataset/4fecdb8415526875f800333d
347
+ - http://bigml.io/andromeda/dataset/50018faf1552681c60000023
347
348
  server:
348
349
  - nginx/1.0.12
349
350
  content-length:
350
- - '921'
351
+ - '934'
351
352
  connection:
352
353
  - Close
353
354
  body:
354
355
  encoding: US-ASCII
355
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:32:36.425955",
356
- "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
357
- 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
358
- 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
359
- 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
360
- 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
361
- 4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
362
- "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
363
- true, "resource": "dataset/4fecdb8415526875f800333d", "rows": 0, "size": 4608,
364
- "source": "source/4fecdb51035d0741f0003387", "source_status": true, "status":
365
- {"code": 1, "message": "The dataset is being processed and will be created
366
- soon"}, "tags": [], "updated": "2012-06-28T22:32:36.425985"}'
356
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:26:39.967439",
357
+ "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
358
+ {"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
359
+ {"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
360
+ {"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
361
+ {"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
362
+ {"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
363
+ "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
364
+ 0, "private": true, "resource": "dataset/50018faf1552681c60000023", "rows":
365
+ 0, "size": 4608, "source": "source/50018fae1552681d68000035", "source_status":
366
+ true, "status": {"code": 1, "message": "The dataset is being processed and
367
+ will be created soon"}, "tags": [], "updated": "2012-07-14T15:26:39.967466"}'
367
368
  http_version: '1.1'
368
- recorded_at: Thu, 28 Jun 2012 22:32:21 GMT
369
+ recorded_at: Sat, 14 Jul 2012 15:26:03 GMT
369
370
  - request:
370
371
  method: post
371
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
372
+ uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
372
373
  body:
373
374
  encoding: UTF-8
374
- string: ! '{"dataset":"dataset/4fecdb8415526875f800333d"}'
375
+ string: ! '{"dataset":"dataset/50018faf1552681c60000023"}'
375
376
  headers:
376
377
  content-type:
377
378
  - application/json
@@ -385,33 +386,34 @@ http_interactions:
385
386
  content-type:
386
387
  - application/json; charset=utf-8
387
388
  date:
388
- - Thu, 28 Jun 2012 22:30:11 GMT
389
+ - Sat, 14 Jul 2012 15:20:02 GMT
389
390
  location:
390
- - http://bigml.io/andromeda/model/4fecdb8715526875f70033e5
391
+ - http://bigml.io/andromeda/model/50018f71035d07404e000036
391
392
  server:
392
393
  - nginx/1.0.12
393
394
  content-length:
394
- - '691'
395
+ - '704'
395
396
  connection:
396
397
  - Close
397
398
  body:
398
399
  encoding: US-ASCII
399
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:32:39.438818",
400
- "credits": 0.017578125, "dataset": "dataset/4fecdb8415526875f800333d", "dataset_status":
401
- true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
402
- "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
403
- 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
404
- "model/4fecdb8715526875f70033e5", "rows": 150, "size": 4608, "source": "source/4fecdb51035d0741f0003387",
405
- "source_status": true, "status": {"code": 1, "message": "The model is being
406
- processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:32:39.438847"}'
400
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:25:37.571002",
401
+ "credits": 0.017578125, "dataset": "dataset/50018faf1552681c60000023", "dataset_status":
402
+ true, "description": "", "dev": true, "holdout": 0.0, "input_fields": [],
403
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
404
+ model", "number_of_predictions": 0, "objective_fields": [], "private": true,
405
+ "range": [1, 150], "resource": "model/50018f71035d07404e000036", "rows": 150,
406
+ "size": 4608, "source": "source/50018fae1552681d68000035", "source_status":
407
+ true, "status": {"code": 1, "message": "The model is being processed and will
408
+ be created soon"}, "tags": [], "updated": "2012-07-14T15:25:37.571023"}'
407
409
  http_version: '1.1'
408
- recorded_at: Thu, 28 Jun 2012 22:32:24 GMT
410
+ recorded_at: Sat, 14 Jul 2012 15:26:05 GMT
409
411
  - request:
410
412
  method: post
411
- uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
413
+ uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
412
414
  body:
413
415
  encoding: UTF-8
414
- string: ! '{"model":"model/4fecdb8715526875f70033e5","input_data":{"000001":3}}'
416
+ string: ! '{"model":"model/50018f71035d07404e000036","input_data":{"000001":3}}'
415
417
  headers:
416
418
  content-type:
417
419
  - application/json
@@ -425,38 +427,38 @@ http_interactions:
425
427
  content-type:
426
428
  - application/json; charset=utf-8
427
429
  date:
428
- - Thu, 28 Jun 2012 22:27:39 GMT
430
+ - Sat, 14 Jul 2012 15:25:03 GMT
429
431
  location:
430
- - http://bigml.io/andromeda/prediction/4fecdb59035d0741f0003389
432
+ - http://bigml.io/andromeda/prediction/50018f73035d075696000008
431
433
  server:
432
434
  - nginx/1.0.12
433
435
  content-length:
434
- - '1222'
436
+ - '1235'
435
437
  connection:
436
438
  - Close
437
439
  body:
438
440
  encoding: US-ASCII
439
- string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:31:53.456299",
440
- "credits": 0.01, "dataset": "dataset/4fecdb8415526875f800333d", "dataset_status":
441
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
442
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
443
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
444
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
445
- "string", "name": "species", "optype": "categorical", "preferred": true}},
446
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb8715526875f70033e5",
441
+ string: ! '{"category": 0, "code": 201, "created": "2012-07-14T15:25:39.731404",
442
+ "credits": 0.01, "dataset": "dataset/50018faf1552681c60000023", "dataset_status":
443
+ true, "description": "", "dev": true, "fields": {"000001": {"column_number":
444
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
445
+ true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
446
+ length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
447
+ 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
448
+ true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f71035d07404e000036",
447
449
  "model_status": true, "name": "Prediction for species", "objective_fields":
448
450
  ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
449
451
  {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
450
452
  "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
451
- [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb59035d0741f0003389",
452
- "source": "source/4fecdb51035d0741f0003387", "source_status": true, "status":
453
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/50018f73035d075696000008",
454
+ "source": "source/50018fae1552681d68000035", "source_status": true, "status":
453
455
  {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
454
- "2012-06-28T22:31:53.456320"}'
456
+ "2012-07-14T15:25:39.731425"}'
455
457
  http_version: '1.1'
456
- recorded_at: Thu, 28 Jun 2012 22:32:26 GMT
458
+ recorded_at: Sat, 14 Jul 2012 15:26:06 GMT
457
459
  - request:
458
460
  method: put
459
- uri: https://bigml.io/andromeda/prediction/4fecdb59035d0741f0003389?username=<USERNAME>&api_key=<API_KEY>
461
+ uri: https://bigml.io/dev/andromeda/prediction/50018f73035d075696000008?username=<USERNAME>&api_key=<API_KEY>
460
462
  body:
461
463
  encoding: UTF-8
462
464
  string: ! '{"name":"foo name"}'
@@ -473,35 +475,35 @@ http_interactions:
473
475
  content-type:
474
476
  - application/json; charset=utf-8
475
477
  date:
476
- - Thu, 28 Jun 2012 22:30:14 GMT
478
+ - Sat, 14 Jul 2012 15:20:05 GMT
477
479
  server:
478
480
  - nginx/1.0.12
479
481
  content-length:
480
- - '1208'
482
+ - '1221'
481
483
  connection:
482
484
  - Close
483
485
  body:
484
486
  encoding: US-ASCII
485
- string: ! '{"category": 0, "code": 202, "created": "2012-06-28T22:31:53.456000",
486
- "credits": 0.01, "dataset": "dataset/4fecdb8415526875f800333d", "dataset_status":
487
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
488
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
489
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
490
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
491
- "string", "name": "species", "optype": "categorical", "preferred": true}},
492
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb8715526875f70033e5",
487
+ string: ! '{"category": 0, "code": 202, "created": "2012-07-14T15:25:39.731000",
488
+ "credits": 0.01, "dataset": "dataset/50018faf1552681c60000023", "dataset_status":
489
+ true, "description": "", "dev": true, "fields": {"000001": {"column_number":
490
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
491
+ true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
492
+ length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
493
+ 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
494
+ true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f71035d07404e000036",
493
495
  "model_status": true, "name": "foo name", "objective_fields": ["000004"],
494
496
  "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
495
497
  [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
496
498
  {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
497
- []}, "private": true, "resource": "prediction/4fecdb59035d0741f0003389", "source":
498
- "source/4fecdb51035d0741f0003387", "source_status": true, "status": {"code":
499
- 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:31:55.043046"}'
499
+ []}, "private": true, "resource": "prediction/50018f73035d075696000008", "source":
500
+ "source/50018fae1552681d68000035", "source_status": true, "status": {"code":
501
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-07-14T15:26:45.183078"}'
500
502
  http_version: '1.1'
501
- recorded_at: Thu, 28 Jun 2012 22:32:27 GMT
503
+ recorded_at: Sat, 14 Jul 2012 15:26:08 GMT
502
504
  - request:
503
505
  method: get
504
- uri: https://bigml.io/andromeda/prediction/4fecdb59035d0741f0003389?username=<USERNAME>&api_key=<API_KEY>
506
+ uri: https://bigml.io/dev/andromeda/prediction/50018f73035d075696000008?username=<USERNAME>&api_key=<API_KEY>
505
507
  body:
506
508
  encoding: US-ASCII
507
509
  string: ''
@@ -516,30 +518,30 @@ http_interactions:
516
518
  content-type:
517
519
  - application/json; charset=utf-8
518
520
  date:
519
- - Thu, 28 Jun 2012 22:27:43 GMT
521
+ - Sat, 14 Jul 2012 15:25:06 GMT
520
522
  server:
521
523
  - nginx/1.0.12
522
- content-length:
523
- - '1208'
524
+ transfer-encoding:
525
+ - chunked
524
526
  connection:
525
527
  - Close
526
528
  body:
527
529
  encoding: US-ASCII
528
- string: ! '{"category": 0, "code": 200, "created": "2012-06-28T22:31:53.456000",
529
- "credits": 0.01, "dataset": "dataset/4fecdb8415526875f800333d", "dataset_status":
530
- true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
531
- "double", "name": "sepal width", "optype": "numeric", "preferred": true},
532
- "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
533
- "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
534
- "string", "name": "species", "optype": "categorical", "preferred": true}},
535
- "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb8715526875f70033e5",
530
+ string: ! '{"category": 0, "code": 200, "created": "2012-07-14T15:25:39.731000",
531
+ "credits": 0.01, "dataset": "dataset/50018faf1552681c60000023", "dataset_status":
532
+ true, "description": "", "dev": true, "fields": {"000001": {"column_number":
533
+ 1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
534
+ true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
535
+ length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
536
+ 4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
537
+ true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018f71035d07404e000036",
536
538
  "model_status": true, "name": "foo name", "objective_fields": ["000004"],
537
539
  "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
538
540
  [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
539
541
  {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
540
- []}, "private": true, "resource": "prediction/4fecdb59035d0741f0003389", "source":
541
- "source/4fecdb51035d0741f0003387", "source_status": true, "status": {"code":
542
- 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:31:55.043000"}'
542
+ []}, "private": true, "resource": "prediction/50018f73035d075696000008", "source":
543
+ "source/50018fae1552681d68000035", "source_status": true, "status": {"code":
544
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-07-14T15:26:45.183000"}'
543
545
  http_version: '1.1'
544
- recorded_at: Thu, 28 Jun 2012 22:32:29 GMT
546
+ recorded_at: Sat, 14 Jul 2012 15:26:09 GMT
545
547
  recorded_with: VCR 2.2.2