big_ml 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +55 -18
  3. data/big_ml.gemspec +1 -0
  4. data/lib/big_ml/base.rb +21 -11
  5. data/lib/big_ml/dataset.rb +10 -4
  6. data/lib/big_ml/model.rb +16 -10
  7. data/lib/big_ml/prediction.rb +6 -4
  8. data/lib/big_ml/source.rb +10 -4
  9. data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
  10. data/lib/big_ml/util/client.rb +26 -0
  11. data/lib/big_ml/util/config.rb +32 -0
  12. data/lib/big_ml/{request.rb → util/request.rb} +0 -0
  13. data/lib/big_ml/version.rb +1 -1
  14. data/lib/big_ml.rb +8 -4
  15. data/spec/integration/dataset_spec.rb +17 -0
  16. data/spec/integration/model_spec.rb +17 -0
  17. data/spec/integration/prediction_spec.rb +11 -0
  18. data/spec/integration/source_spec.rb +19 -6
  19. data/spec/units/client_spec.rb +5 -5
  20. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
  21. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
  22. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
  23. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
  24. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
  27. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
  28. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
  29. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
  30. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
  31. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
  32. data/spec/vcr_cassettes/BigML_Model/one_model/{must_have_the_same_file_name.yml → must_be_able_to_be_deleted_using_the_destroy_method.yml} +90 -107
  33. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
  34. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
  35. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
  36. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
  37. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
  38. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
  39. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
  40. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
  41. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
  42. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
  43. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
  44. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
  45. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
  46. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
  47. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
  49. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
  50. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
  51. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
  52. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
  53. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
  54. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
  55. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
  56. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
  57. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
  58. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
  59. metadata +50 -9
  60. data/.rvmrc +0 -1
  61. data/lib/big_ml/client.rb +0 -29
  62. data/lib/big_ml/config.rb +0 -30
@@ -17,18 +17,18 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:56:56 GMT
20
+ - Thu, 28 Jun 2012 22:23:54 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '3642'
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
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T03:58:09.524000", "credits":
30
+ "total_count": 3}, "objects": [{"category": 0, "code": 200, "content_type":
31
+ "application/octet-stream", "created": "2012-06-28T22:28:48.501000", "credits":
32
32
  0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
33
  "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
34
  "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
@@ -36,17 +36,47 @@ http_interactions:
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
38
  "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 1, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fe14a51035d074a21000148", "size":
39
+ 0, "private": true, "resource": "source/4fecdaa015526875f900328f", "size":
40
40
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
41
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
42
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
43
  "\"", "separator": ","}, "status": {"code": 5, "elapsed": 67, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:58:40.624000"}]}'
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:28:03.057000"},
45
+ {"category": 0, "code": 200, "content_type": "application/octet-stream", "created":
46
+ "2012-06-28T22:27:36.418000", "credits": 0.0, "description": "", "fields":
47
+ {"000000": {"column_number": 0, "name": "sepal length", "optype": "numeric"},
48
+ "000001": {"column_number": 1, "name": "sepal width", "optype": "numeric"},
49
+ "000002": {"column_number": 2, "name": "petal length", "optype": "numeric"},
50
+ "000003": {"column_number": 3, "name": "petal width", "optype": "numeric"},
51
+ "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
52
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
53
+ "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
54
+ 0, "private": true, "resource": "source/4fecda58035d0741f40032a6", "size":
55
+ 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
56
+ ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
57
+ "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
58
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 59, "message": "The
59
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:28:46.253000"},
60
+ {"category": 0, "code": 200, "content_type": "application/octet-stream", "created":
61
+ "2012-06-28T22:27:13.381000", "credits": 0.0, "description": "", "fields":
62
+ {"000000": {"column_number": 0, "name": "sepal length", "optype": "numeric"},
63
+ "000001": {"column_number": 1, "name": "sepal width", "optype": "numeric"},
64
+ "000002": {"column_number": 2, "name": "petal length", "optype": "numeric"},
65
+ "000003": {"column_number": 3, "name": "petal width", "optype": "numeric"},
66
+ "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
67
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
68
+ "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
69
+ 0, "private": true, "resource": "source/4fecda41035d0741f1003314", "size":
70
+ 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
71
+ ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
72
+ "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
73
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 98, "message": "The
74
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:27:54.182000"}]}'
45
75
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:58:27 GMT
76
+ recorded_at: Thu, 28 Jun 2012 22:28:40 GMT
47
77
  - request:
48
78
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14a51035d074a21000148?username=<USERNAME>&api_key=<API_KEY>
79
+ uri: https://bigml.io/andromeda/source/4fecdaa015526875f900328f?username=<USERNAME>&api_key=<API_KEY>
50
80
  body:
51
81
  encoding: US-ASCII
52
82
  string: ''
@@ -63,7 +93,7 @@ http_interactions:
63
93
  content-type:
64
94
  - text/html; charset=utf-8
65
95
  date:
66
- - Wed, 20 Jun 2012 03:54:38 GMT
96
+ - Thu, 28 Jun 2012 22:26:31 GMT
67
97
  server:
68
98
  - nginx/1.0.12
69
99
  connection:
@@ -72,7 +102,65 @@ http_interactions:
72
102
  encoding: US-ASCII
73
103
  string: ''
74
104
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 03:58:28 GMT
105
+ recorded_at: Thu, 28 Jun 2012 22:28:44 GMT
106
+ - request:
107
+ method: delete
108
+ uri: https://bigml.io/andromeda/source/4fecda58035d0741f40032a6?username=<USERNAME>&api_key=<API_KEY>
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ connection:
114
+ - close
115
+ response:
116
+ status:
117
+ code: 204
118
+ message: NO CONTENT
119
+ headers:
120
+ content-length:
121
+ - '0'
122
+ content-type:
123
+ - text/html; charset=utf-8
124
+ date:
125
+ - Thu, 28 Jun 2012 22:24:01 GMT
126
+ server:
127
+ - nginx/1.0.12
128
+ connection:
129
+ - Close
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ''
133
+ http_version: '1.1'
134
+ recorded_at: Thu, 28 Jun 2012 22:28:47 GMT
135
+ - request:
136
+ method: delete
137
+ uri: https://bigml.io/andromeda/source/4fecda41035d0741f1003314?username=<USERNAME>&api_key=<API_KEY>
138
+ body:
139
+ encoding: US-ASCII
140
+ string: ''
141
+ headers:
142
+ connection:
143
+ - close
144
+ response:
145
+ status:
146
+ code: 204
147
+ message: NO CONTENT
148
+ headers:
149
+ content-length:
150
+ - '0'
151
+ content-type:
152
+ - text/html; charset=utf-8
153
+ date:
154
+ - Thu, 28 Jun 2012 22:26:36 GMT
155
+ server:
156
+ - nginx/1.0.12
157
+ connection:
158
+ - Close
159
+ body:
160
+ encoding: US-ASCII
161
+ string: ''
162
+ http_version: '1.1'
163
+ recorded_at: Thu, 28 Jun 2012 22:28:49 GMT
76
164
  - request:
77
165
  method: get
78
166
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,29 +178,65 @@ http_interactions:
90
178
  content-type:
91
179
  - application/json; charset=utf-8
92
180
  date:
93
- - Wed, 20 Jun 2012 03:56:58 GMT
181
+ - Thu, 28 Jun 2012 22:24:04 GMT
94
182
  server:
95
183
  - nginx/1.0.12
96
- transfer-encoding:
97
- - chunked
184
+ content-length:
185
+ - '1311'
98
186
  connection:
99
187
  - Close
100
188
  body:
101
189
  encoding: US-ASCII
102
190
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:58:10.771000", "credits": 0.0087890625, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe14a52035d074a1e0000fd", "rows":
107
- 150, "size": 4608, "source": "source/4fe14a51035d074a21000148", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 228, "field_errors":
191
+ "total_count": 2}, "objects": [{"category": 0, "code": 200, "columns": 5,
192
+ "created": "2012-06-28T22:28:26.926000", "credits": 0.00439453125, "description":
193
+ "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
194
+ 0, "private": true, "resource": "dataset/4fecda8a15526875f800332e", "rows":
195
+ 150, "size": 4608, "source": "source/4fecda58035d0741f40032a6", "source_status":
196
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 12520, "field_errors":
109
197
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:58:40.631000"}]}'
198
+ 150}, "tags": [], "updated": "2012-06-28T22:28:46.260000"}, {"category": 0,
199
+ "code": 200, "columns": 5, "created": "2012-06-28T22:28:01.390000", "credits":
200
+ 0.00439453125, "description": "", "locale": "en_US", "name": "iris'' dataset",
201
+ "number_of_models": 1, "number_of_predictions": 0, "private": true, "resource":
202
+ "dataset/4fecda71035d0741ed0032ff", "rows": 150, "size": 4608, "source": "source/4fecdaa015526875f900328f",
203
+ "source_status": false, "status": {"bytes": 4608, "code": 5, "elapsed": 180,
204
+ "field_errors": [], "message": "The dataset has been created", "row_format_errors":
205
+ [], "serialized_rows": 150}, "tags": [], "updated": "2012-06-28T22:28:03.063000"}]}'
206
+ http_version: '1.1'
207
+ recorded_at: Thu, 28 Jun 2012 22:28:51 GMT
208
+ - request:
209
+ method: delete
210
+ uri: https://bigml.io/andromeda/dataset/4fecda8a15526875f800332e?username=<USERNAME>&api_key=<API_KEY>
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
214
+ headers:
215
+ connection:
216
+ - close
217
+ response:
218
+ status:
219
+ code: 204
220
+ message: NO CONTENT
221
+ headers:
222
+ content-length:
223
+ - '0'
224
+ content-type:
225
+ - text/html; charset=utf-8
226
+ date:
227
+ - Thu, 28 Jun 2012 22:26:40 GMT
228
+ server:
229
+ - nginx/1.0.12
230
+ connection:
231
+ - Close
232
+ body:
233
+ encoding: US-ASCII
234
+ string: ''
111
235
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:58:29 GMT
236
+ recorded_at: Thu, 28 Jun 2012 22:28:53 GMT
113
237
  - request:
114
238
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14a52035d074a1e0000fd?username=<USERNAME>&api_key=<API_KEY>
239
+ uri: https://bigml.io/andromeda/dataset/4fecda71035d0741ed0032ff?username=<USERNAME>&api_key=<API_KEY>
116
240
  body:
117
241
  encoding: US-ASCII
118
242
  string: ''
@@ -129,7 +253,7 @@ http_interactions:
129
253
  content-type:
130
254
  - text/html; charset=utf-8
131
255
  date:
132
- - Wed, 20 Jun 2012 03:54:40 GMT
256
+ - Thu, 28 Jun 2012 22:24:08 GMT
133
257
  server:
134
258
  - nginx/1.0.12
135
259
  connection:
@@ -138,7 +262,7 @@ http_interactions:
138
262
  encoding: US-ASCII
139
263
  string: ''
140
264
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:58:31 GMT
265
+ recorded_at: Thu, 28 Jun 2012 22:28:54 GMT
142
266
  - request:
143
267
  method: get
144
268
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -156,31 +280,31 @@ http_interactions:
156
280
  content-type:
157
281
  - application/json; charset=utf-8
158
282
  date:
159
- - Wed, 20 Jun 2012 03:57:01 GMT
283
+ - Thu, 28 Jun 2012 22:26:43 GMT
160
284
  server:
161
285
  - nginx/1.0.12
162
286
  content-length:
163
- - '832'
287
+ - '833'
164
288
  connection:
165
289
  - Close
166
290
  body:
167
291
  encoding: US-ASCII
168
292
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
293
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
- "created": "2012-06-20T03:58:40.600000", "credits": 0.03515625, "dataset":
171
- "dataset/4fe14a52035d074a1e0000fd", "dataset_status": false, "description":
294
+ "created": "2012-06-28T22:28:03.052000", "credits": 0.017578125, "dataset":
295
+ "dataset/4fecda71035d0741ed0032ff", "dataset_status": false, "description":
172
296
  "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
173
297
  "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "foo name",
174
298
  "number_of_predictions": 0, "objective_fields": ["000004"], "private": true,
175
- "range": [1, 150], "resource": "model/4fe14a701552687d4500014f", "rows": 150,
176
- "size": 4608, "source": "source/4fe14a51035d074a21000148", "source_status":
177
- false, "status": {"code": 5, "elapsed": 147, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:41.982000"}]}'
299
+ "range": [1, 150], "resource": "model/4fecda73035d0741f0003367", "rows": 150,
300
+ "size": 4608, "source": "source/4fecdaa015526875f900328f", "source_status":
301
+ false, "status": {"code": 5, "elapsed": 127, "message": "The model has been
302
+ created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:28:53.617000"}]}'
179
303
  http_version: '1.1'
180
- recorded_at: Wed, 20 Jun 2012 03:58:32 GMT
304
+ recorded_at: Thu, 28 Jun 2012 22:28:56 GMT
181
305
  - request:
182
306
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fe14a701552687d4500014f?username=<USERNAME>&api_key=<API_KEY>
307
+ uri: https://bigml.io/andromeda/model/4fecda73035d0741f0003367?username=<USERNAME>&api_key=<API_KEY>
184
308
  body:
185
309
  encoding: US-ASCII
186
310
  string: ''
@@ -197,7 +321,7 @@ http_interactions:
197
321
  content-type:
198
322
  - text/html; charset=utf-8
199
323
  date:
200
- - Wed, 20 Jun 2012 03:54:43 GMT
324
+ - Thu, 28 Jun 2012 22:24:11 GMT
201
325
  server:
202
326
  - nginx/1.0.12
203
327
  connection:
@@ -206,7 +330,7 @@ http_interactions:
206
330
  encoding: US-ASCII
207
331
  string: ''
208
332
  http_version: '1.1'
209
- recorded_at: Wed, 20 Jun 2012 03:58:33 GMT
333
+ recorded_at: Thu, 28 Jun 2012 22:28:58 GMT
210
334
  - request:
211
335
  method: post
212
336
  uri: https://bigml.io/andromeda/source
@@ -228,9 +352,9 @@ http_interactions:
228
352
  content-type:
229
353
  - application/json; charset=utf-8
230
354
  date:
231
- - Wed, 20 Jun 2012 03:57:04 GMT
355
+ - Thu, 28 Jun 2012 22:26:47 GMT
232
356
  location:
233
- - http://bigml.io/andromeda/source/4fe14a7c1552687d43000139
357
+ - http://bigml.io/andromeda/source/4fecda8b035d0741f000336a
234
358
  server:
235
359
  - nginx/1.0.12
236
360
  content-length:
@@ -240,21 +364,21 @@ http_interactions:
240
364
  body:
241
365
  encoding: US-ASCII
242
366
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
243
- "created": "2012-06-20T03:58:52.261553", "credits": 0.0, "description": "",
367
+ "created": "2012-06-28T22:28:27.473733", "credits": 0.0, "description": "",
244
368
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
245
369
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
246
- 0, "private": true, "resource": "source/4fe14a7c1552687d43000139", "size":
370
+ 0, "private": true, "resource": "source/4fecda8b035d0741f000336a", "size":
247
371
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
248
372
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
249
- "2012-06-20T03:58:52.261575"}'
373
+ "2012-06-28T22:28:27.473765"}'
250
374
  http_version: '1.1'
251
- recorded_at: Wed, 20 Jun 2012 03:58:35 GMT
375
+ recorded_at: Thu, 28 Jun 2012 22:29:00 GMT
252
376
  - request:
253
377
  method: post
254
378
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
255
379
  body:
256
380
  encoding: UTF-8
257
- string: ! '{"source":"source/4fe14a7c1552687d43000139"}'
381
+ string: ! '{"source":"source/4fecda8b035d0741f000336a"}'
258
382
  headers:
259
383
  content-type:
260
384
  - application/json
@@ -268,37 +392,37 @@ http_interactions:
268
392
  content-type:
269
393
  - application/json; charset=utf-8
270
394
  date:
271
- - Wed, 20 Jun 2012 03:54:46 GMT
395
+ - Thu, 28 Jun 2012 22:24:15 GMT
272
396
  location:
273
- - http://bigml.io/andromeda/dataset/4fe14a61035d074a200000f5
397
+ - http://bigml.io/andromeda/dataset/4fecdabe15526875f70033d2
274
398
  server:
275
399
  - nginx/1.0.12
276
400
  content-length:
277
- - '920'
401
+ - '921'
278
402
  connection:
279
403
  - Close
280
404
  body:
281
405
  encoding: US-ASCII
282
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:58:25.205111",
283
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
406
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:29:18.011375",
407
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
284
408
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
285
409
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
286
410
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
287
411
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
288
412
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
289
413
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
290
- true, "resource": "dataset/4fe14a61035d074a200000f5", "rows": 0, "size": 4608,
291
- "source": "source/4fe14a7c1552687d43000139", "source_status": true, "status":
414
+ true, "resource": "dataset/4fecdabe15526875f70033d2", "rows": 0, "size": 4608,
415
+ "source": "source/4fecda8b035d0741f000336a", "source_status": true, "status":
292
416
  {"code": 1, "message": "The dataset is being processed and will be created
293
- soon"}, "tags": [], "updated": "2012-06-20T03:58:25.205132"}'
417
+ soon"}, "tags": [], "updated": "2012-06-28T22:29:18.011406"}'
294
418
  http_version: '1.1'
295
- recorded_at: Wed, 20 Jun 2012 03:58:36 GMT
419
+ recorded_at: Thu, 28 Jun 2012 22:29:02 GMT
296
420
  - request:
297
421
  method: post
298
422
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
299
423
  body:
300
424
  encoding: UTF-8
301
- string: ! '{"dataset":"dataset/4fe14a61035d074a200000f5"}'
425
+ string: ! '{"dataset":"dataset/4fecdabe15526875f70033d2"}'
302
426
  headers:
303
427
  content-type:
304
428
  - application/json
@@ -312,30 +436,30 @@ http_interactions:
312
436
  content-type:
313
437
  - application/json; charset=utf-8
314
438
  date:
315
- - Wed, 20 Jun 2012 03:57:07 GMT
439
+ - Thu, 28 Jun 2012 22:26:51 GMT
316
440
  location:
317
- - http://bigml.io/andromeda/model/4fe14a62035d074a1b000118
441
+ - http://bigml.io/andromeda/model/4fecdac015526875f3003337
318
442
  server:
319
443
  - nginx/1.0.12
320
444
  content-length:
321
- - '690'
445
+ - '691'
322
446
  connection:
323
447
  - Close
324
448
  body:
325
449
  encoding: US-ASCII
326
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:58:26.896845",
327
- "credits": 0.03515625, "dataset": "dataset/4fe14a61035d074a200000f5", "dataset_status":
450
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:29:20.151395",
451
+ "credits": 0.017578125, "dataset": "dataset/4fecdabe15526875f70033d2", "dataset_status":
328
452
  true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
329
453
  "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
330
454
  0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
331
- "model/4fe14a62035d074a1b000118", "rows": 150, "size": 4608, "source": "source/4fe14a7c1552687d43000139",
455
+ "model/4fecdac015526875f3003337", "rows": 150, "size": 4608, "source": "source/4fecda8b035d0741f000336a",
332
456
  "source_status": true, "status": {"code": 1, "message": "The model is being
333
- processed and will be created soon"}, "tags": [], "updated": "2012-06-20T03:58:26.896874"}'
457
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:29:20.151423"}'
334
458
  http_version: '1.1'
335
- recorded_at: Wed, 20 Jun 2012 03:58:38 GMT
459
+ recorded_at: Thu, 28 Jun 2012 22:29:04 GMT
336
460
  - request:
337
461
  method: delete
338
- uri: https://bigml.io/andromeda/model/4fe14a62035d074a1b000118?username=<USERNAME>&api_key=<API_KEY>
462
+ uri: https://bigml.io/andromeda/model/4fecdac015526875f3003337?username=<USERNAME>&api_key=<API_KEY>
339
463
  body:
340
464
  encoding: US-ASCII
341
465
  string: ''
@@ -352,7 +476,7 @@ http_interactions:
352
476
  content-type:
353
477
  - text/html; charset=utf-8
354
478
  date:
355
- - Wed, 20 Jun 2012 03:54:49 GMT
479
+ - Thu, 28 Jun 2012 22:24:19 GMT
356
480
  server:
357
481
  - nginx/1.0.12
358
482
  connection:
@@ -361,10 +485,10 @@ http_interactions:
361
485
  encoding: US-ASCII
362
486
  string: ''
363
487
  http_version: '1.1'
364
- recorded_at: Wed, 20 Jun 2012 03:58:39 GMT
488
+ recorded_at: Thu, 28 Jun 2012 22:29:05 GMT
365
489
  - request:
366
490
  method: get
367
- uri: https://bigml.io/andromeda/model/4fe14a62035d074a1b000118?username=<USERNAME>&api_key=<API_KEY>
491
+ uri: https://bigml.io/andromeda/model/4fecdac015526875f3003337?username=<USERNAME>&api_key=<API_KEY>
368
492
  body:
369
493
  encoding: US-ASCII
370
494
  string: ''
@@ -379,7 +503,7 @@ http_interactions:
379
503
  content-type:
380
504
  - application/json; charset=utf-8
381
505
  date:
382
- - Wed, 20 Jun 2012 03:57:09 GMT
506
+ - Thu, 28 Jun 2012 22:26:54 GMT
383
507
  server:
384
508
  - nginx/1.0.12
385
509
  content-length:
@@ -389,10 +513,10 @@ http_interactions:
389
513
  body:
390
514
  encoding: US-ASCII
391
515
  string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
392
- an instance of ''Model'' which matched ''pk=4fe14a62035d074a1b000118''."],
516
+ an instance of ''Model'' which matched ''pk=4fecdac015526875f3003337''."],
393
517
  "message": "Id does not exist"}}'
394
518
  http_version: '1.1'
395
- recorded_at: Wed, 20 Jun 2012 03:58:40 GMT
519
+ recorded_at: Thu, 28 Jun 2012 22:29:07 GMT
396
520
  - request:
397
521
  method: get
398
522
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -410,7 +534,7 @@ http_interactions:
410
534
  content-type:
411
535
  - application/json; charset=utf-8
412
536
  date:
413
- - Wed, 20 Jun 2012 03:54:51 GMT
537
+ - Thu, 28 Jun 2012 22:24:21 GMT
414
538
  server:
415
539
  - nginx/1.0.12
416
540
  content-length:
@@ -422,5 +546,5 @@ http_interactions:
422
546
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
423
547
  "total_count": 0}, "objects": []}'
424
548
  http_version: '1.1'
425
- recorded_at: Wed, 20 Jun 2012 03:58:41 GMT
549
+ recorded_at: Thu, 28 Jun 2012 22:29:08 GMT
426
550
  recorded_with: VCR 2.2.2