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,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:52:29 GMT
20
+ - Thu, 28 Jun 2012 22:21:53 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -28,7 +28,7 @@ http_interactions:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T03:56:33.693000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:23:31.187000", "credits":
32
32
  0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
33
  "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
34
  "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
@@ -36,17 +36,17 @@ http_interactions:
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
38
  "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fe149f11552687d45000143", "size":
39
+ 0, "private": true, "resource": "source/4fecd963035d0741ed0032f2", "size":
40
40
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
41
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
42
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 78, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:56:35.135000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 89, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:24:21.809000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:56:19 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:24:06 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe149f11552687d45000143?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecd963035d0741ed0032f2?username=<USERNAME>&api_key=<API_KEY>
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
@@ -63,7 +63,7 @@ http_interactions:
63
63
  content-type:
64
64
  - text/html; charset=utf-8
65
65
  date:
66
- - Wed, 20 Jun 2012 03:54:50 GMT
66
+ - Thu, 28 Jun 2012 22:19:24 GMT
67
67
  server:
68
68
  - nginx/1.0.12
69
69
  connection:
@@ -72,7 +72,7 @@ http_interactions:
72
72
  encoding: US-ASCII
73
73
  string: ''
74
74
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 03:56:21 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:24:10 GMT
76
76
  - request:
77
77
  method: get
78
78
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,29 +90,29 @@ http_interactions:
90
90
  content-type:
91
91
  - application/json; charset=utf-8
92
92
  date:
93
- - Wed, 20 Jun 2012 03:52:31 GMT
93
+ - Thu, 28 Jun 2012 22:21:59 GMT
94
94
  server:
95
95
  - nginx/1.0.12
96
96
  content-length:
97
- - '703'
97
+ - '705'
98
98
  connection:
99
99
  - Close
100
100
  body:
101
101
  encoding: US-ASCII
102
102
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
103
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:56:35.125000", "credits": 0.0087890625, "description":
104
+ "created": "2012-06-28T22:24:21.804000", "credits": 0.00439453125, "description":
105
105
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe149f31552687d480000f6", "rows":
107
- 150, "size": 4608, "source": "source/4fe149f11552687d45000143", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 126, "field_errors":
106
+ 0, "private": true, "resource": "dataset/4fecd99515526875f3003330", "rows":
107
+ 150, "size": 4608, "source": "source/4fecd963035d0741ed0032f2", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 1306, "field_errors":
109
109
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:56:09.315000"}]}'
110
+ 150}, "tags": [], "updated": "2012-06-28T22:23:35.631000"}]}'
111
111
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:56:22 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:24:12 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe149f31552687d480000f6?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecd99515526875f3003330?username=<USERNAME>&api_key=<API_KEY>
116
116
  body:
117
117
  encoding: US-ASCII
118
118
  string: ''
@@ -129,7 +129,7 @@ http_interactions:
129
129
  content-type:
130
130
  - text/html; charset=utf-8
131
131
  date:
132
- - Wed, 20 Jun 2012 03:54:52 GMT
132
+ - Thu, 28 Jun 2012 22:19:29 GMT
133
133
  server:
134
134
  - nginx/1.0.12
135
135
  connection:
@@ -138,7 +138,7 @@ http_interactions:
138
138
  encoding: US-ASCII
139
139
  string: ''
140
140
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:56:23 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:24:16 GMT
142
142
  - request:
143
143
  method: post
144
144
  uri: https://bigml.io/andromeda/source
@@ -160,9 +160,9 @@ http_interactions:
160
160
  content-type:
161
161
  - application/json; charset=utf-8
162
162
  date:
163
- - Wed, 20 Jun 2012 03:52:34 GMT
163
+ - Thu, 28 Jun 2012 22:22:06 GMT
164
164
  location:
165
- - http://bigml.io/andromeda/source/4fe149dd035d074a1c0000f2
165
+ - http://bigml.io/andromeda/source/4fecd9a215526875f50032f1
166
166
  server:
167
167
  - nginx/1.0.12
168
168
  content-length:
@@ -172,21 +172,21 @@ http_interactions:
172
172
  body:
173
173
  encoding: US-ASCII
174
174
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
175
- "created": "2012-06-20T03:56:13.244578", "credits": 0.0, "description": "",
175
+ "created": "2012-06-28T22:24:34.290180", "credits": 0.0, "description": "",
176
176
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
177
177
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
178
- 0, "private": true, "resource": "source/4fe149dd035d074a1c0000f2", "size":
178
+ 0, "private": true, "resource": "source/4fecd9a215526875f50032f1", "size":
179
179
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
180
180
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
181
- "2012-06-20T03:56:13.244598"}'
181
+ "2012-06-28T22:24:34.290203"}'
182
182
  http_version: '1.1'
183
- recorded_at: Wed, 20 Jun 2012 03:56:24 GMT
183
+ recorded_at: Thu, 28 Jun 2012 22:24:19 GMT
184
184
  - request:
185
185
  method: post
186
186
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
187
187
  body:
188
188
  encoding: UTF-8
189
- string: ! '{"source":"source/4fe149dd035d074a1c0000f2"}'
189
+ string: ! '{"source":"source/4fecd9a215526875f50032f1"}'
190
190
  headers:
191
191
  content-type:
192
192
  - application/json
@@ -200,31 +200,31 @@ http_interactions:
200
200
  content-type:
201
201
  - application/json; charset=utf-8
202
202
  date:
203
- - Wed, 20 Jun 2012 03:54:55 GMT
203
+ - Thu, 28 Jun 2012 22:19:35 GMT
204
204
  location:
205
- - http://bigml.io/andromeda/dataset/4fe149de035d074a1b00010c
205
+ - http://bigml.io/andromeda/dataset/4fecd974035d0741f400329b
206
206
  server:
207
207
  - nginx/1.0.12
208
208
  content-length:
209
- - '920'
209
+ - '921'
210
210
  connection:
211
211
  - Close
212
212
  body:
213
213
  encoding: US-ASCII
214
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:56:14.630980",
215
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
214
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:23:48.725020",
215
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
216
216
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
217
217
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
218
218
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
219
219
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
220
220
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
221
221
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
222
- true, "resource": "dataset/4fe149de035d074a1b00010c", "rows": 0, "size": 4608,
223
- "source": "source/4fe149dd035d074a1c0000f2", "source_status": true, "status":
222
+ true, "resource": "dataset/4fecd974035d0741f400329b", "rows": 0, "size": 4608,
223
+ "source": "source/4fecd9a215526875f50032f1", "source_status": true, "status":
224
224
  {"code": 1, "message": "The dataset is being processed and will be created
225
- soon"}, "tags": [], "updated": "2012-06-20T03:56:14.630999"}'
225
+ soon"}, "tags": [], "updated": "2012-06-28T22:23:48.725039"}'
226
226
  http_version: '1.1'
227
- recorded_at: Wed, 20 Jun 2012 03:56:26 GMT
227
+ recorded_at: Thu, 28 Jun 2012 22:24:21 GMT
228
228
  - request:
229
229
  method: get
230
230
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -242,24 +242,24 @@ http_interactions:
242
242
  content-type:
243
243
  - application/json; charset=utf-8
244
244
  date:
245
- - Wed, 20 Jun 2012 03:52:36 GMT
245
+ - Thu, 28 Jun 2012 22:22:09 GMT
246
246
  server:
247
247
  - nginx/1.0.12
248
248
  content-length:
249
- - '702'
249
+ - '703'
250
250
  connection:
251
251
  - Close
252
252
  body:
253
253
  encoding: US-ASCII
254
254
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
255
255
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
256
- "created": "2012-06-20T03:56:14.630000", "credits": 0.0087890625, "description":
256
+ "created": "2012-06-28T22:23:48.725000", "credits": 0.00439453125, "description":
257
257
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
258
- 0, "private": true, "resource": "dataset/4fe149de035d074a1b00010c", "rows":
259
- 150, "size": 4608, "source": "source/4fe149dd035d074a1c0000f2", "source_status":
260
- true, "status": {"bytes": 4608, "code": 5, "elapsed": 187, "field_errors":
258
+ 0, "private": true, "resource": "dataset/4fecd974035d0741f400329b", "rows":
259
+ 150, "size": 4608, "source": "source/4fecd9a215526875f50032f1", "source_status":
260
+ true, "status": {"bytes": 4608, "code": 5, "elapsed": 130, "field_errors":
261
261
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
262
- 150}, "tags": [], "updated": "2012-06-20T03:56:14.747000"}]}'
262
+ 150}, "tags": [], "updated": "2012-06-28T22:23:48.883000"}]}'
263
263
  http_version: '1.1'
264
- recorded_at: Wed, 20 Jun 2012 03:56:27 GMT
264
+ recorded_at: Thu, 28 Jun 2012 22:24:22 GMT
265
265
  recorded_with: VCR 2.2.2
@@ -17,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:54:57 GMT
20
+ - Thu, 28 Jun 2012 22:19:37 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -28,7 +28,7 @@ http_interactions:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T03:56:13.244000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:24:34.290000", "credits":
32
32
  0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
33
  "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
34
  "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
@@ -36,17 +36,17 @@ http_interactions:
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
38
  "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fe149dd035d074a1c0000f2", "size":
39
+ 0, "private": true, "resource": "source/4fecd9a215526875f50032f1", "size":
40
40
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
41
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
42
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 76, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:56:14.689000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 65, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:23:48.730000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:56:28 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:24:24 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe149dd035d074a1c0000f2?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecd9a215526875f50032f1?username=<USERNAME>&api_key=<API_KEY>
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
@@ -63,7 +63,7 @@ http_interactions:
63
63
  content-type:
64
64
  - text/html; charset=utf-8
65
65
  date:
66
- - Wed, 20 Jun 2012 03:52:39 GMT
66
+ - Thu, 28 Jun 2012 22:22:13 GMT
67
67
  server:
68
68
  - nginx/1.0.12
69
69
  connection:
@@ -72,7 +72,7 @@ http_interactions:
72
72
  encoding: US-ASCII
73
73
  string: ''
74
74
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 03:56:29 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:24:26 GMT
76
76
  - request:
77
77
  method: get
78
78
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,29 +90,29 @@ http_interactions:
90
90
  content-type:
91
91
  - application/json; charset=utf-8
92
92
  date:
93
- - Wed, 20 Jun 2012 03:54:59 GMT
93
+ - Thu, 28 Jun 2012 22:19:41 GMT
94
94
  server:
95
95
  - nginx/1.0.12
96
96
  content-length:
97
- - '703'
97
+ - '704'
98
98
  connection:
99
99
  - Close
100
100
  body:
101
101
  encoding: US-ASCII
102
102
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
103
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:56:14.630000", "credits": 0.0087890625, "description":
104
+ "created": "2012-06-28T22:23:48.725000", "credits": 0.00439453125, "description":
105
105
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe149de035d074a1b00010c", "rows":
107
- 150, "size": 4608, "source": "source/4fe149dd035d074a1c0000f2", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 187, "field_errors":
106
+ 0, "private": true, "resource": "dataset/4fecd974035d0741f400329b", "rows":
107
+ 150, "size": 4608, "source": "source/4fecd9a215526875f50032f1", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 130, "field_errors":
109
109
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:56:44.077000"}]}'
110
+ 150}, "tags": [], "updated": "2012-06-28T22:23:50.319000"}]}'
111
111
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:56:30 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:24:27 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe149de035d074a1b00010c?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecd974035d0741f400329b?username=<USERNAME>&api_key=<API_KEY>
116
116
  body:
117
117
  encoding: US-ASCII
118
118
  string: ''
@@ -129,7 +129,7 @@ http_interactions:
129
129
  content-type:
130
130
  - text/html; charset=utf-8
131
131
  date:
132
- - Wed, 20 Jun 2012 03:52:41 GMT
132
+ - Thu, 28 Jun 2012 22:22:16 GMT
133
133
  server:
134
134
  - nginx/1.0.12
135
135
  connection:
@@ -138,7 +138,7 @@ http_interactions:
138
138
  encoding: US-ASCII
139
139
  string: ''
140
140
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:56:32 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:24:30 GMT
142
142
  - request:
143
143
  method: post
144
144
  uri: https://bigml.io/andromeda/source
@@ -160,9 +160,9 @@ http_interactions:
160
160
  content-type:
161
161
  - application/json; charset=utf-8
162
162
  date:
163
- - Wed, 20 Jun 2012 03:55:02 GMT
163
+ - Thu, 28 Jun 2012 22:19:45 GMT
164
164
  location:
165
- - http://bigml.io/andromeda/source/4fe14a021552687d42000136
165
+ - http://bigml.io/andromeda/source/4fecd9b015526875f800331a
166
166
  server:
167
167
  - nginx/1.0.12
168
168
  content-length:
@@ -172,21 +172,21 @@ http_interactions:
172
172
  body:
173
173
  encoding: US-ASCII
174
174
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
175
- "created": "2012-06-20T03:56:50.608241", "credits": 0.0, "description": "",
175
+ "created": "2012-06-28T22:24:48.027091", "credits": 0.0, "description": "",
176
176
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
177
177
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
178
- 0, "private": true, "resource": "source/4fe14a021552687d42000136", "size":
178
+ 0, "private": true, "resource": "source/4fecd9b015526875f800331a", "size":
179
179
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
180
180
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
181
- "2012-06-20T03:56:50.608267"}'
181
+ "2012-06-28T22:24:48.027113"}'
182
182
  http_version: '1.1'
183
- recorded_at: Wed, 20 Jun 2012 03:56:33 GMT
183
+ recorded_at: Thu, 28 Jun 2012 22:24:31 GMT
184
184
  - request:
185
185
  method: post
186
186
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
187
187
  body:
188
188
  encoding: UTF-8
189
- string: ! '{"source":"source/4fe14a021552687d42000136"}'
189
+ string: ! '{"source":"source/4fecd9b015526875f800331a"}'
190
190
  headers:
191
191
  content-type:
192
192
  - application/json
@@ -200,31 +200,31 @@ http_interactions:
200
200
  content-type:
201
201
  - application/json; charset=utf-8
202
202
  date:
203
- - Wed, 20 Jun 2012 03:52:44 GMT
203
+ - Thu, 28 Jun 2012 22:22:20 GMT
204
204
  location:
205
- - http://bigml.io/andromeda/dataset/4fe149e7035d074a21000141
205
+ - http://bigml.io/andromeda/dataset/4fecd9b115526875f9003286
206
206
  server:
207
207
  - nginx/1.0.12
208
208
  content-length:
209
- - '920'
209
+ - '921'
210
210
  connection:
211
211
  - Close
212
212
  body:
213
213
  encoding: US-ASCII
214
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:56:23.634834",
215
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
214
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:24:49.730013",
215
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
216
216
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
217
217
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
218
218
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
219
219
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
220
220
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
221
221
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
222
- true, "resource": "dataset/4fe149e7035d074a21000141", "rows": 0, "size": 4608,
223
- "source": "source/4fe14a021552687d42000136", "source_status": true, "status":
222
+ true, "resource": "dataset/4fecd9b115526875f9003286", "rows": 0, "size": 4608,
223
+ "source": "source/4fecd9b015526875f800331a", "source_status": true, "status":
224
224
  {"code": 1, "message": "The dataset is being processed and will be created
225
- soon"}, "tags": [], "updated": "2012-06-20T03:56:23.634852"}'
225
+ soon"}, "tags": [], "updated": "2012-06-28T22:24:49.730031"}'
226
226
  http_version: '1.1'
227
- recorded_at: Wed, 20 Jun 2012 03:56:35 GMT
227
+ recorded_at: Thu, 28 Jun 2012 22:24:33 GMT
228
228
  - request:
229
229
  method: get
230
230
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -242,24 +242,24 @@ http_interactions:
242
242
  content-type:
243
243
  - application/json; charset=utf-8
244
244
  date:
245
- - Wed, 20 Jun 2012 03:55:05 GMT
245
+ - Thu, 28 Jun 2012 22:19:48 GMT
246
246
  server:
247
247
  - nginx/1.0.12
248
248
  content-length:
249
- - '702'
249
+ - '703'
250
250
  connection:
251
251
  - Close
252
252
  body:
253
253
  encoding: US-ASCII
254
254
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
255
255
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
256
- "created": "2012-06-20T03:56:23.634000", "credits": 0.0087890625, "description":
256
+ "created": "2012-06-28T22:24:49.730000", "credits": 0.00439453125, "description":
257
257
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
258
- 0, "private": true, "resource": "dataset/4fe149e7035d074a21000141", "rows":
259
- 150, "size": 4608, "source": "source/4fe14a021552687d42000136", "source_status":
260
- true, "status": {"bytes": 4608, "code": 5, "elapsed": 107, "field_errors":
258
+ 0, "private": true, "resource": "dataset/4fecd9b115526875f9003286", "rows":
259
+ 150, "size": 4608, "source": "source/4fecd9b015526875f800331a", "source_status":
260
+ true, "status": {"bytes": 4608, "code": 5, "elapsed": 116, "field_errors":
261
261
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
262
- 150}, "tags": [], "updated": "2012-06-20T03:56:23.694000"}]}'
262
+ 150}, "tags": [], "updated": "2012-06-28T22:24:49.815000"}]}'
263
263
  http_version: '1.1'
264
- recorded_at: Wed, 20 Jun 2012 03:56:36 GMT
264
+ recorded_at: Thu, 28 Jun 2012 22:24:35 GMT
265
265
  recorded_with: VCR 2.2.2
@@ -17,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:52:23 GMT
20
+ - Thu, 28 Jun 2012 22:21:47 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -29,7 +29,7 @@ http_interactions:
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 0}, "objects": []}'
31
31
  http_version: '1.1'
32
- recorded_at: Wed, 20 Jun 2012 03:56:14 GMT
32
+ recorded_at: Thu, 28 Jun 2012 22:24:00 GMT
33
33
  - request:
34
34
  method: get
35
35
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -47,11 +47,11 @@ http_interactions:
47
47
  content-type:
48
48
  - application/json; charset=utf-8
49
49
  date:
50
- - Wed, 20 Jun 2012 03:54:44 GMT
50
+ - Thu, 28 Jun 2012 22:19:15 GMT
51
51
  server:
52
52
  - nginx/1.0.12
53
- transfer-encoding:
54
- - chunked
53
+ content-length:
54
+ - '101'
55
55
  connection:
56
56
  - Close
57
57
  body:
@@ -59,7 +59,7 @@ http_interactions:
59
59
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
60
60
  "total_count": 0}, "objects": []}'
61
61
  http_version: '1.1'
62
- recorded_at: Wed, 20 Jun 2012 03:56:15 GMT
62
+ recorded_at: Thu, 28 Jun 2012 22:24:02 GMT
63
63
  - request:
64
64
  method: post
65
65
  uri: https://bigml.io/andromeda/source
@@ -81,9 +81,9 @@ http_interactions:
81
81
  content-type:
82
82
  - application/json; charset=utf-8
83
83
  date:
84
- - Wed, 20 Jun 2012 03:52:26 GMT
84
+ - Thu, 28 Jun 2012 22:21:50 GMT
85
85
  location:
86
- - http://bigml.io/andromeda/source/4fe149f11552687d45000143
86
+ - http://bigml.io/andromeda/source/4fecd963035d0741ed0032f2
87
87
  server:
88
88
  - nginx/1.0.12
89
89
  content-length:
@@ -93,21 +93,21 @@ http_interactions:
93
93
  body:
94
94
  encoding: US-ASCII
95
95
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
96
- "created": "2012-06-20T03:56:33.693551", "credits": 0.0, "description": "",
96
+ "created": "2012-06-28T22:23:31.187184", "credits": 0.0, "description": "",
97
97
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
98
98
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
99
- 0, "private": true, "resource": "source/4fe149f11552687d45000143", "size":
99
+ 0, "private": true, "resource": "source/4fecd963035d0741ed0032f2", "size":
100
100
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
101
101
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
102
- "2012-06-20T03:56:33.693571"}'
102
+ "2012-06-28T22:23:31.187207"}'
103
103
  http_version: '1.1'
104
- recorded_at: Wed, 20 Jun 2012 03:56:16 GMT
104
+ recorded_at: Thu, 28 Jun 2012 22:24:03 GMT
105
105
  - request:
106
106
  method: post
107
107
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
108
108
  body:
109
109
  encoding: UTF-8
110
- string: ! '{"source":"source/4fe149f11552687d45000143"}'
110
+ string: ! '{"source":"source/4fecd963035d0741ed0032f2"}'
111
111
  headers:
112
112
  content-type:
113
113
  - application/json
@@ -121,29 +121,29 @@ http_interactions:
121
121
  content-type:
122
122
  - application/json; charset=utf-8
123
123
  date:
124
- - Wed, 20 Jun 2012 03:54:47 GMT
124
+ - Thu, 28 Jun 2012 22:19:19 GMT
125
125
  location:
126
- - http://bigml.io/andromeda/dataset/4fe149f31552687d480000f6
126
+ - http://bigml.io/andromeda/dataset/4fecd99515526875f3003330
127
127
  server:
128
128
  - nginx/1.0.12
129
129
  content-length:
130
- - '920'
130
+ - '921'
131
131
  connection:
132
132
  - Close
133
133
  body:
134
134
  encoding: US-ASCII
135
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:56:35.125518",
136
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
135
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:24:21.804642",
136
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
137
137
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
138
138
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
139
139
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
140
140
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
141
141
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
142
142
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
143
- true, "resource": "dataset/4fe149f31552687d480000f6", "rows": 0, "size": 4608,
144
- "source": "source/4fe149f11552687d45000143", "source_status": true, "status":
143
+ true, "resource": "dataset/4fecd99515526875f3003330", "rows": 0, "size": 4608,
144
+ "source": "source/4fecd963035d0741ed0032f2", "source_status": true, "status":
145
145
  {"code": 1, "message": "The dataset is being processed and will be created
146
- soon"}, "tags": [], "updated": "2012-06-20T03:56:35.125536"}'
146
+ soon"}, "tags": [], "updated": "2012-06-28T22:24:21.804660"}'
147
147
  http_version: '1.1'
148
- recorded_at: Wed, 20 Jun 2012 03:56:18 GMT
148
+ recorded_at: Thu, 28 Jun 2012 22:24:05 GMT
149
149
  recorded_with: VCR 2.2.2