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:52:46 GMT
20
+ - Thu, 28 Jun 2012 22:22:23 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1281'
24
+ - '1280'
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-20T03:56:50.608000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:24:48.027000", "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/4fe14a021552687d42000136", "size":
39
+ 0, "private": true, "resource": "source/4fecd9b015526875f800331a", "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": 100, "message":
44
- "The source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:56:23.639000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:24:49.735000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:56:37 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:24:36 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14a021552687d42000136?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecd9b015526875f800331a?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:55:07 GMT
66
+ - Thu, 28 Jun 2012 22:19:53 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:38 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:24:40 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:49 GMT
93
+ - Thu, 28 Jun 2012 22:22:28 GMT
94
94
  server:
95
95
  - nginx/1.0.12
96
- content-length:
97
- - '703'
96
+ transfer-encoding:
97
+ - chunked
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:23.634000", "credits": 0.0087890625, "description":
104
+ "created": "2012-06-28T22:24:49.730000", "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/4fe149e7035d074a21000141", "rows":
107
- 150, "size": 4608, "source": "source/4fe14a021552687d42000136", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 107, "field_errors":
106
+ 0, "private": true, "resource": "dataset/4fecd9b115526875f9003286", "rows":
107
+ 150, "size": 4608, "source": "source/4fecd9b015526875f800331a", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 116, "field_errors":
109
109
  [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:56:24.895000"}]}'
110
+ 150}, "tags": [], "updated": "2012-06-28T22:24:02.428000"}]}'
111
111
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:56:39 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:24:41 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe149e7035d074a21000141?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecd9b115526875f9003286?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:55:10 GMT
132
+ - Thu, 28 Jun 2012 22:19:56 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:41 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:24:43 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:52 GMT
163
+ - Thu, 28 Jun 2012 22:22:33 GMT
164
164
  location:
165
- - http://bigml.io/andromeda/source/4fe14a0b1552687d4200013a
165
+ - http://bigml.io/andromeda/source/4fecd98c035d0741f40032a0
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:59.857540", "credits": 0.0, "description": "",
175
+ "created": "2012-06-28T22:24:12.631309", "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/4fe14a0b1552687d4200013a", "size":
178
+ 0, "private": true, "resource": "source/4fecd98c035d0741f40032a0", "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:59.857561"}'
181
+ "2012-06-28T22:24:12.631331"}'
182
182
  http_version: '1.1'
183
- recorded_at: Wed, 20 Jun 2012 03:56:43 GMT
183
+ recorded_at: Thu, 28 Jun 2012 22:24:46 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/4fe14a0b1552687d4200013a"}'
189
+ string: ! '{"source":"source/4fecd98c035d0741f40032a0"}'
190
190
  headers:
191
191
  content-type:
192
192
  - application/json
@@ -200,34 +200,34 @@ http_interactions:
200
200
  content-type:
201
201
  - application/json; charset=utf-8
202
202
  date:
203
- - Wed, 20 Jun 2012 03:55:14 GMT
203
+ - Thu, 28 Jun 2012 22:20:02 GMT
204
204
  location:
205
- - http://bigml.io/andromeda/dataset/4fe14a0d1552687d480000fa
205
+ - http://bigml.io/andromeda/dataset/4fecd9c015526875f70033c3
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:57:01.914340",
215
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
214
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:25:04.298364",
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/4fe14a0d1552687d480000fa", "rows": 0, "size": 4608,
223
- "source": "source/4fe14a0b1552687d4200013a", "source_status": true, "status":
222
+ true, "resource": "dataset/4fecd9c015526875f70033c3", "rows": 0, "size": 4608,
223
+ "source": "source/4fecd98c035d0741f40032a0", "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:57:01.914358"}'
225
+ soon"}, "tags": [], "updated": "2012-06-28T22:25:04.298398"}'
226
226
  http_version: '1.1'
227
- recorded_at: Wed, 20 Jun 2012 03:56:45 GMT
227
+ recorded_at: Thu, 28 Jun 2012 22:24:48 GMT
228
228
  - request:
229
229
  method: get
230
- uri: https://bigml.io/andromeda/dataset/4fe14a0d1552687d480000fa?username=<USERNAME>&api_key=<API_KEY>
230
+ uri: https://bigml.io/andromeda/dataset/4fecd9c015526875f70033c3?username=<USERNAME>&api_key=<API_KEY>
231
231
  body:
232
232
  encoding: US-ASCII
233
233
  string: ''
@@ -242,17 +242,17 @@ http_interactions:
242
242
  content-type:
243
243
  - application/json; charset=utf-8
244
244
  date:
245
- - Wed, 20 Jun 2012 03:52:55 GMT
245
+ - Thu, 28 Jun 2012 22:22:37 GMT
246
246
  server:
247
247
  - nginx/1.0.12
248
- transfer-encoding:
249
- - chunked
248
+ content-length:
249
+ - '2926'
250
250
  connection:
251
251
  - Close
252
252
  body:
253
253
  encoding: US-ASCII
254
- string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-20T03:57:01.914000",
255
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
254
+ string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:25:04.298000",
255
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
256
256
  0, "datatype": "double", "name": "sepal length", "optype": "numeric", "preferred":
257
257
  true, "summary": {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count":
258
258
  0, "population": 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139,
@@ -283,11 +283,11 @@ http_interactions:
283
283
  true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
284
284
  50], ["Iris-virginica", 50]], "missing_count": 0}}}, "locale": "en_US", "name":
285
285
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
286
- true, "resource": "dataset/4fe14a0d1552687d480000fa", "rows": 150, "size":
287
- 4608, "source": "source/4fe14a0b1552687d4200013a", "source_status": true,
288
- "status": {"bytes": 4608, "code": 5, "elapsed": 846, "field_errors": [], "message":
286
+ true, "resource": "dataset/4fecd9c015526875f70033c3", "rows": 150, "size":
287
+ 4608, "source": "source/4fecd98c035d0741f40032a0", "source_status": true,
288
+ "status": {"bytes": 4608, "code": 5, "elapsed": 191, "field_errors": [], "message":
289
289
  "The dataset has been created", "row_format_errors": [], "serialized_rows":
290
- 150}, "tags": [], "updated": "2012-06-20T03:57:01.995000"}'
290
+ 150}, "tags": [], "updated": "2012-06-28T22:25:04.509000"}'
291
291
  http_version: '1.1'
292
- recorded_at: Wed, 20 Jun 2012 03:56:46 GMT
292
+ recorded_at: Thu, 28 Jun 2012 22:24:50 GMT
293
293
  recorded_with: VCR 2.2.2
@@ -17,36 +17,36 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:55:37 GMT
20
+ - Thu, 28 Jun 2012 22:21:04 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '1281'
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-20T03:56:43.418000", "credits":
31
+ "application/octet-stream", "created": "2012-06-28T22:25:11.161000", "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":
35
35
  "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
- "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fe149fb035d074a1c0000f6", "size":
38
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
39
+ 0, "private": true, "resource": "source/4fecd9c7035d0741f40032a2", "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": 59, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:57:17.028000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 291, "message":
44
+ "The source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:26:03.787000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:57:08 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:25:50 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe149fb035d074a1c0000f6?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecd9c7035d0741f40032a2?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:53:23 GMT
66
+ - Thu, 28 Jun 2012 22:23:41 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:57:13 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:25:54 GMT
76
76
  - request:
77
77
  method: get
78
78
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,55 +90,19 @@ http_interactions:
90
90
  content-type:
91
91
  - application/json; charset=utf-8
92
92
  date:
93
- - Wed, 20 Jun 2012 03:55:43 GMT
93
+ - Thu, 28 Jun 2012 22:21:09 GMT
94
94
  server:
95
95
  - nginx/1.0.12
96
- content-length:
97
- - '698'
96
+ transfer-encoding:
97
+ - chunked
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
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:57:16.988000", "credits": 0.0087890625, "description":
105
- "", "locale": "en_US", "name": "foo name", "number_of_models": 0, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe14a1c1552687d480000fe", "rows":
107
- 150, "size": 4608, "source": "source/4fe149fb035d074a1c0000f6", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 738, "field_errors":
109
- [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:57:23.348000"}]}'
111
- http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:57:14 GMT
113
- - request:
114
- method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14a1c1552687d480000fe?username=<USERNAME>&api_key=<API_KEY>
116
- body:
117
- encoding: US-ASCII
118
- string: ''
119
- headers:
120
- connection:
121
- - close
122
- response:
123
- status:
124
- code: 204
125
- message: NO CONTENT
126
- headers:
127
- content-length:
128
- - '0'
129
- content-type:
130
- - text/html; charset=utf-8
131
- date:
132
- - Wed, 20 Jun 2012 03:53:25 GMT
133
- server:
134
- - nginx/1.0.12
135
- connection:
136
- - Close
137
- body:
138
- encoding: US-ASCII
139
- string: ''
103
+ "total_count": 0}, "objects": []}'
140
104
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:57:16 GMT
105
+ recorded_at: Thu, 28 Jun 2012 22:25:55 GMT
142
106
  - request:
143
107
  method: post
144
108
  uri: https://bigml.io/andromeda/source
@@ -160,9 +124,9 @@ http_interactions:
160
124
  content-type:
161
125
  - application/json; charset=utf-8
162
126
  date:
163
- - Wed, 20 Jun 2012 03:55:47 GMT
127
+ - Thu, 28 Jun 2012 22:23:44 GMT
164
128
  location:
165
- - http://bigml.io/andromeda/source/4fe14a12035d074a21000144
129
+ - http://bigml.io/andromeda/source/4fecda0515526875f800331e
166
130
  server:
167
131
  - nginx/1.0.12
168
132
  content-length:
@@ -172,21 +136,21 @@ http_interactions:
172
136
  body:
173
137
  encoding: US-ASCII
174
138
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
175
- "created": "2012-06-20T03:57:06.463714", "credits": 0.0, "description": "",
139
+ "created": "2012-06-28T22:26:13.480564", "credits": 0.0, "description": "",
176
140
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
177
141
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
178
- 0, "private": true, "resource": "source/4fe14a12035d074a21000144", "size":
142
+ 0, "private": true, "resource": "source/4fecda0515526875f800331e", "size":
179
143
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
180
144
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
181
- "2012-06-20T03:57:06.463738"}'
145
+ "2012-06-28T22:26:13.480593"}'
182
146
  http_version: '1.1'
183
- recorded_at: Wed, 20 Jun 2012 03:57:17 GMT
147
+ recorded_at: Thu, 28 Jun 2012 22:25:57 GMT
184
148
  - request:
185
149
  method: post
186
150
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
187
151
  body:
188
152
  encoding: UTF-8
189
- string: ! '{"source":"source/4fe14a12035d074a21000144"}'
153
+ string: ! '{"source":"source/4fecda0515526875f800331e"}'
190
154
  headers:
191
155
  content-type:
192
156
  - application/json
@@ -200,34 +164,34 @@ http_interactions:
200
164
  content-type:
201
165
  - application/json; charset=utf-8
202
166
  date:
203
- - Wed, 20 Jun 2012 03:53:28 GMT
167
+ - Thu, 28 Jun 2012 22:21:12 GMT
204
168
  location:
205
- - http://bigml.io/andromeda/dataset/4fe14a301552687d4200013f
169
+ - http://bigml.io/andromeda/dataset/4fecd9d6035d0741f100330c
206
170
  server:
207
171
  - nginx/1.0.12
208
172
  content-length:
209
- - '920'
173
+ - '921'
210
174
  connection:
211
175
  - Close
212
176
  body:
213
177
  encoding: US-ASCII
214
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:57:36.087763",
215
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
178
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:25:26.332888",
179
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
216
180
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
217
181
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
218
182
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
219
183
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
220
184
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
221
185
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
222
- true, "resource": "dataset/4fe14a301552687d4200013f", "rows": 0, "size": 4608,
223
- "source": "source/4fe14a12035d074a21000144", "source_status": true, "status":
186
+ true, "resource": "dataset/4fecd9d6035d0741f100330c", "rows": 0, "size": 4608,
187
+ "source": "source/4fecda0515526875f800331e", "source_status": true, "status":
224
188
  {"code": 1, "message": "The dataset is being processed and will be created
225
- soon"}, "tags": [], "updated": "2012-06-20T03:57:36.087784"}'
189
+ soon"}, "tags": [], "updated": "2012-06-28T22:25:26.332907"}'
226
190
  http_version: '1.1'
227
- recorded_at: Wed, 20 Jun 2012 03:57:19 GMT
191
+ recorded_at: Thu, 28 Jun 2012 22:25:59 GMT
228
192
  - request:
229
193
  method: delete
230
- uri: https://bigml.io/andromeda/dataset/4fe14a301552687d4200013f?username=<USERNAME>&api_key=<API_KEY>
194
+ uri: https://bigml.io/andromeda/dataset/4fecd9d6035d0741f100330c?username=<USERNAME>&api_key=<API_KEY>
231
195
  body:
232
196
  encoding: US-ASCII
233
197
  string: ''
@@ -244,7 +208,7 @@ http_interactions:
244
208
  content-type:
245
209
  - text/html; charset=utf-8
246
210
  date:
247
- - Wed, 20 Jun 2012 03:55:49 GMT
211
+ - Thu, 28 Jun 2012 22:23:48 GMT
248
212
  server:
249
213
  - nginx/1.0.12
250
214
  connection:
@@ -253,10 +217,10 @@ http_interactions:
253
217
  encoding: US-ASCII
254
218
  string: ''
255
219
  http_version: '1.1'
256
- recorded_at: Wed, 20 Jun 2012 03:57:20 GMT
220
+ recorded_at: Thu, 28 Jun 2012 22:26:01 GMT
257
221
  - request:
258
222
  method: get
259
- uri: https://bigml.io/andromeda/dataset/4fe14a301552687d4200013f?username=<USERNAME>&api_key=<API_KEY>
223
+ uri: https://bigml.io/andromeda/dataset/4fecd9d6035d0741f100330c?username=<USERNAME>&api_key=<API_KEY>
260
224
  body:
261
225
  encoding: US-ASCII
262
226
  string: ''
@@ -271,7 +235,7 @@ http_interactions:
271
235
  content-type:
272
236
  - application/json; charset=utf-8
273
237
  date:
274
- - Wed, 20 Jun 2012 03:53:31 GMT
238
+ - Thu, 28 Jun 2012 22:21:16 GMT
275
239
  server:
276
240
  - nginx/1.0.12
277
241
  content-length:
@@ -281,10 +245,10 @@ http_interactions:
281
245
  body:
282
246
  encoding: US-ASCII
283
247
  string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
284
- an instance of ''Dataset'' which matched ''pk=4fe14a301552687d4200013f''."],
248
+ an instance of ''Dataset'' which matched ''pk=4fecd9d6035d0741f100330c''."],
285
249
  "message": "Id does not exist"}}'
286
250
  http_version: '1.1'
287
- recorded_at: Wed, 20 Jun 2012 03:57:21 GMT
251
+ recorded_at: Thu, 28 Jun 2012 22:26:02 GMT
288
252
  - request:
289
253
  method: get
290
254
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -302,7 +266,7 @@ http_interactions:
302
266
  content-type:
303
267
  - application/json; charset=utf-8
304
268
  date:
305
- - Wed, 20 Jun 2012 03:55:51 GMT
269
+ - Thu, 28 Jun 2012 22:23:50 GMT
306
270
  server:
307
271
  - nginx/1.0.12
308
272
  content-length:
@@ -314,5 +278,5 @@ http_interactions:
314
278
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
315
279
  "total_count": 0}, "objects": []}'
316
280
  http_version: '1.1'
317
- recorded_at: Wed, 20 Jun 2012 03:57:22 GMT
281
+ recorded_at: Thu, 28 Jun 2012 22:26:03 GMT
318
282
  recorded_with: VCR 2.2.2