big_ml 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. data/.gitignore +19 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/.rvmrc.example +1 -0
  5. data/.travis.yml +4 -0
  6. data/CHANGELOG.md +8 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE +22 -0
  9. data/README.md +49 -0
  10. data/Rakefile +6 -0
  11. data/TODO.md +6 -0
  12. data/big_ml.gemspec +23 -0
  13. data/lib/big_ml/authenticable.rb +10 -0
  14. data/lib/big_ml/base.rb +51 -0
  15. data/lib/big_ml/client.rb +29 -0
  16. data/lib/big_ml/config.rb +30 -0
  17. data/lib/big_ml/dataset.rb +19 -0
  18. data/lib/big_ml/model.rb +21 -0
  19. data/lib/big_ml/prediction.rb +19 -0
  20. data/lib/big_ml/request.rb +29 -0
  21. data/lib/big_ml/source.rb +18 -0
  22. data/lib/big_ml/version.rb +3 -0
  23. data/lib/big_ml.rb +13 -0
  24. data/spec/fixtures/iris.csv +151 -0
  25. data/spec/integration/dataset_spec.rb +51 -0
  26. data/spec/integration/model_spec.rb +53 -0
  27. data/spec/integration/prediction_spec.rb +55 -0
  28. data/spec/integration/source_spec.rb +55 -0
  29. data/spec/spec_helper.rb +22 -0
  30. data/spec/units/client_spec.rb +50 -0
  31. data/spec/units/source_spec.rb +20 -0
  32. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +136 -0
  33. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +293 -0
  34. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +318 -0
  35. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +360 -0
  36. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +265 -0
  37. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +265 -0
  38. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +149 -0
  39. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +166 -0
  40. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +446 -0
  41. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +426 -0
  42. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +558 -0
  43. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +258 -0
  44. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_file_name.yml +375 -0
  45. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +375 -0
  46. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +298 -0
  47. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +305 -0
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +502 -0
  49. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +547 -0
  50. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +546 -0
  51. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +503 -0
  52. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +420 -0
  53. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +297 -0
  54. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +136 -0
  55. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +191 -0
  56. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +195 -0
  57. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +279 -0
  58. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +192 -0
  59. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +192 -0
  60. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +105 -0
  61. metadata +224 -0
@@ -0,0 +1,297 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ connection:
11
+ - close
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ content-type:
18
+ - application/json; charset=utf-8
19
+ date:
20
+ - Wed, 20 Jun 2012 04:05:58 GMT
21
+ server:
22
+ - nginx/1.0.12
23
+ content-length:
24
+ - '101'
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
+ "total_count": 0}, "objects": []}'
31
+ http_version: '1.1'
32
+ recorded_at: Wed, 20 Jun 2012 04:09:49 GMT
33
+ - request:
34
+ method: get
35
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
36
+ body:
37
+ encoding: US-ASCII
38
+ string: ''
39
+ headers:
40
+ connection:
41
+ - close
42
+ response:
43
+ status:
44
+ code: 200
45
+ message: OK
46
+ headers:
47
+ content-type:
48
+ - application/json; charset=utf-8
49
+ date:
50
+ - Wed, 20 Jun 2012 04:08:19 GMT
51
+ server:
52
+ - nginx/1.0.12
53
+ content-length:
54
+ - '101'
55
+ connection:
56
+ - Close
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
60
+ "total_count": 0}, "objects": []}'
61
+ http_version: '1.1'
62
+ recorded_at: Wed, 20 Jun 2012 04:09:50 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ connection:
71
+ - close
72
+ response:
73
+ status:
74
+ code: 200
75
+ message: OK
76
+ headers:
77
+ content-type:
78
+ - application/json; charset=utf-8
79
+ date:
80
+ - Wed, 20 Jun 2012 04:06:00 GMT
81
+ server:
82
+ - nginx/1.0.12
83
+ content-length:
84
+ - '101'
85
+ connection:
86
+ - Close
87
+ body:
88
+ encoding: US-ASCII
89
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
90
+ "total_count": 0}, "objects": []}'
91
+ http_version: '1.1'
92
+ recorded_at: Wed, 20 Jun 2012 04:09:51 GMT
93
+ - request:
94
+ method: get
95
+ uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ''
99
+ headers:
100
+ connection:
101
+ - close
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ content-type:
108
+ - application/json; charset=utf-8
109
+ date:
110
+ - Wed, 20 Jun 2012 04:08:22 GMT
111
+ server:
112
+ - nginx/1.0.12
113
+ content-length:
114
+ - '101'
115
+ connection:
116
+ - Close
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
120
+ "total_count": 0}, "objects": []}'
121
+ http_version: '1.1'
122
+ recorded_at: Wed, 20 Jun 2012 04:09:53 GMT
123
+ - request:
124
+ method: post
125
+ uri: https://bigml.io/andromeda/source
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ''
129
+ headers:
130
+ content-type:
131
+ - multipart/form-data; boundary=-----------RubyMultipartPost
132
+ content-length:
133
+ - '5147'
134
+ connection:
135
+ - close
136
+ response:
137
+ status:
138
+ code: 201
139
+ message: CREATED
140
+ headers:
141
+ content-type:
142
+ - application/json; charset=utf-8
143
+ date:
144
+ - Wed, 20 Jun 2012 04:06:04 GMT
145
+ location:
146
+ - http://bigml.io/andromeda/source/4fe14d07035d074a200000fd
147
+ server:
148
+ - nginx/1.0.12
149
+ content-length:
150
+ - '567'
151
+ connection:
152
+ - Close
153
+ body:
154
+ encoding: US-ASCII
155
+ string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
156
+ "created": "2012-06-20T04:09:43.443047", "credits": 0.0, "description": "",
157
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
158
+ "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
159
+ 0, "private": true, "resource": "source/4fe14d07035d074a200000fd", "size":
160
+ 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
161
+ been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
162
+ "2012-06-20T04:09:43.443068"}'
163
+ http_version: '1.1'
164
+ recorded_at: Wed, 20 Jun 2012 04:09:54 GMT
165
+ - request:
166
+ method: post
167
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
168
+ body:
169
+ encoding: UTF-8
170
+ string: ! '{"source":"source/4fe14d07035d074a200000fd"}'
171
+ headers:
172
+ content-type:
173
+ - application/json
174
+ connection:
175
+ - close
176
+ response:
177
+ status:
178
+ code: 201
179
+ message: CREATED
180
+ headers:
181
+ content-type:
182
+ - application/json; charset=utf-8
183
+ date:
184
+ - Wed, 20 Jun 2012 04:08:25 GMT
185
+ location:
186
+ - http://bigml.io/andromeda/dataset/4fe14d251552687d48000111
187
+ server:
188
+ - nginx/1.0.12
189
+ content-length:
190
+ - '920'
191
+ connection:
192
+ - Close
193
+ body:
194
+ encoding: US-ASCII
195
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:10:13.101722",
196
+ "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
197
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
198
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
199
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
200
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
201
+ 4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
202
+ "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
203
+ true, "resource": "dataset/4fe14d251552687d48000111", "rows": 0, "size": 4608,
204
+ "source": "source/4fe14d07035d074a200000fd", "source_status": true, "status":
205
+ {"code": 1, "message": "The dataset is being processed and will be created
206
+ soon"}, "tags": [], "updated": "2012-06-20T04:10:13.101739"}'
207
+ http_version: '1.1'
208
+ recorded_at: Wed, 20 Jun 2012 04:09:56 GMT
209
+ - request:
210
+ method: post
211
+ uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
212
+ body:
213
+ encoding: UTF-8
214
+ string: ! '{"dataset":"dataset/4fe14d251552687d48000111"}'
215
+ headers:
216
+ content-type:
217
+ - application/json
218
+ connection:
219
+ - close
220
+ response:
221
+ status:
222
+ code: 201
223
+ message: CREATED
224
+ headers:
225
+ content-type:
226
+ - application/json; charset=utf-8
227
+ date:
228
+ - Wed, 20 Jun 2012 04:06:07 GMT
229
+ location:
230
+ - http://bigml.io/andromeda/model/4fe14d261552687d42000156
231
+ server:
232
+ - nginx/1.0.12
233
+ content-length:
234
+ - '690'
235
+ connection:
236
+ - Close
237
+ body:
238
+ encoding: US-ASCII
239
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:10:14.423063",
240
+ "credits": 0.03515625, "dataset": "dataset/4fe14d251552687d48000111", "dataset_status":
241
+ true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
242
+ "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
243
+ 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
244
+ "model/4fe14d261552687d42000156", "rows": 150, "size": 4608, "source": "source/4fe14d07035d074a200000fd",
245
+ "source_status": true, "status": {"code": 1, "message": "The model is being
246
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-20T04:10:14.423081"}'
247
+ http_version: '1.1'
248
+ recorded_at: Wed, 20 Jun 2012 04:09:57 GMT
249
+ - request:
250
+ method: post
251
+ uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
252
+ body:
253
+ encoding: UTF-8
254
+ string: ! '{"model":"model/4fe14d261552687d42000156","input_data":{"000001":3}}'
255
+ headers:
256
+ content-type:
257
+ - application/json
258
+ connection:
259
+ - close
260
+ response:
261
+ status:
262
+ code: 201
263
+ message: CREATED
264
+ headers:
265
+ content-type:
266
+ - application/json; charset=utf-8
267
+ date:
268
+ - Wed, 20 Jun 2012 04:08:28 GMT
269
+ location:
270
+ - http://bigml.io/andromeda/prediction/4fe14d0b035d074a1e00010e
271
+ server:
272
+ - nginx/1.0.12
273
+ content-length:
274
+ - '1222'
275
+ connection:
276
+ - Close
277
+ body:
278
+ encoding: US-ASCII
279
+ string: ! '{"category": 0, "code": 201, "created": "2012-06-20T04:09:47.869041",
280
+ "credits": 0.01, "dataset": "dataset/4fe14d251552687d48000111", "dataset_status":
281
+ true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
282
+ "double", "name": "sepal width", "optype": "numeric", "preferred": true},
283
+ "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
284
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
285
+ "string", "name": "species", "optype": "categorical", "preferred": true}},
286
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fe14d261552687d42000156",
287
+ "model_status": true, "name": "Prediction for species", "objective_fields":
288
+ ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
289
+ {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
290
+ "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
291
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fe14d0b035d074a1e00010e",
292
+ "source": "source/4fe14d07035d074a200000fd", "source_status": true, "status":
293
+ {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
294
+ "2012-06-20T04:09:47.869063"}'
295
+ http_version: '1.1'
296
+ recorded_at: Wed, 20 Jun 2012 04:09:59 GMT
297
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,136 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ connection:
11
+ - close
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ content-type:
18
+ - application/json; charset=utf-8
19
+ date:
20
+ - Wed, 20 Jun 2012 03:19:33 GMT
21
+ server:
22
+ - nginx/1.0.12
23
+ content-length:
24
+ - '1280'
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: US-ASCII
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:20:33.651000", "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": 0, "number_of_models": 0, "number_of_predictions":
39
+ 0, "private": true, "resource": "source/4fe141811552687d42000122", "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": 93, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:20:09.383000"}]}'
45
+ http_version: '1.1'
46
+ recorded_at: Wed, 20 Jun 2012 03:21:05 GMT
47
+ - request:
48
+ method: delete
49
+ uri: https://bigml.io/andromeda/source/4fe141811552687d42000122?username=<USERNAME>&api_key=<API_KEY>
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ connection:
55
+ - close
56
+ response:
57
+ status:
58
+ code: 204
59
+ message: NO CONTENT
60
+ headers:
61
+ content-length:
62
+ - '0'
63
+ content-type:
64
+ - text/html; charset=utf-8
65
+ date:
66
+ - Wed, 20 Jun 2012 03:17:16 GMT
67
+ server:
68
+ - nginx/1.0.12
69
+ connection:
70
+ - Close
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ http_version: '1.1'
75
+ recorded_at: Wed, 20 Jun 2012 03:21:06 GMT
76
+ - request:
77
+ method: get
78
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ connection:
84
+ - close
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ content-type:
91
+ - application/json; charset=utf-8
92
+ date:
93
+ - Wed, 20 Jun 2012 03:19:36 GMT
94
+ server:
95
+ - nginx/1.0.12
96
+ content-length:
97
+ - '101'
98
+ connection:
99
+ - Close
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
+ "total_count": 0}, "objects": []}'
104
+ http_version: '1.1'
105
+ recorded_at: Wed, 20 Jun 2012 03:21:07 GMT
106
+ - request:
107
+ method: get
108
+ uri: https://bigml.io/andromeda/source?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: 200
118
+ message: OK
119
+ headers:
120
+ content-type:
121
+ - application/json; charset=utf-8
122
+ date:
123
+ - Wed, 20 Jun 2012 03:17:17 GMT
124
+ server:
125
+ - nginx/1.0.12
126
+ content-length:
127
+ - '101'
128
+ connection:
129
+ - Close
130
+ body:
131
+ encoding: US-ASCII
132
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
133
+ "total_count": 0}, "objects": []}'
134
+ http_version: '1.1'
135
+ recorded_at: Wed, 20 Jun 2012 03:21:08 GMT
136
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,191 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ connection:
11
+ - close
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ content-type:
18
+ - application/json; charset=utf-8
19
+ date:
20
+ - Wed, 20 Jun 2012 03:17:36 GMT
21
+ server:
22
+ - nginx/1.0.12
23
+ content-length:
24
+ - '1280'
25
+ connection:
26
+ - Close
27
+ body:
28
+ encoding: US-ASCII
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:21:41.406000", "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": 0, "number_of_models": 0, "number_of_predictions":
39
+ 0, "private": true, "resource": "source/4fe141c51552687d470000f6", "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": 75, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:14.195000"}]}'
45
+ http_version: '1.1'
46
+ recorded_at: Wed, 20 Jun 2012 03:21:26 GMT
47
+ - request:
48
+ method: delete
49
+ uri: https://bigml.io/andromeda/source/4fe141c51552687d470000f6?username=<USERNAME>&api_key=<API_KEY>
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ connection:
55
+ - close
56
+ response:
57
+ status:
58
+ code: 204
59
+ message: NO CONTENT
60
+ headers:
61
+ content-length:
62
+ - '0'
63
+ content-type:
64
+ - text/html; charset=utf-8
65
+ date:
66
+ - Wed, 20 Jun 2012 03:19:57 GMT
67
+ server:
68
+ - nginx/1.0.12
69
+ connection:
70
+ - Close
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ http_version: '1.1'
75
+ recorded_at: Wed, 20 Jun 2012 03:21:29 GMT
76
+ - request:
77
+ method: get
78
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ connection:
84
+ - close
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ content-type:
91
+ - application/json; charset=utf-8
92
+ date:
93
+ - Wed, 20 Jun 2012 03:17:40 GMT
94
+ server:
95
+ - nginx/1.0.12
96
+ transfer-encoding:
97
+ - chunked
98
+ connection:
99
+ - Close
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
+ "total_count": 0}, "objects": []}'
104
+ http_version: '1.1'
105
+ recorded_at: Wed, 20 Jun 2012 03:21:31 GMT
106
+ - request:
107
+ method: post
108
+ uri: https://bigml.io/andromeda/source
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
112
+ headers:
113
+ content-type:
114
+ - multipart/form-data; boundary=-----------RubyMultipartPost
115
+ content-length:
116
+ - '5147'
117
+ connection:
118
+ - close
119
+ response:
120
+ status:
121
+ code: 201
122
+ message: CREATED
123
+ headers:
124
+ content-type:
125
+ - application/json; charset=utf-8
126
+ date:
127
+ - Wed, 20 Jun 2012 03:20:01 GMT
128
+ location:
129
+ - http://bigml.io/andromeda/source/4fe141b1035d074a200000d7
130
+ server:
131
+ - nginx/1.0.12
132
+ content-length:
133
+ - '567'
134
+ connection:
135
+ - Close
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
139
+ "created": "2012-06-20T03:21:21.028002", "credits": 0.0, "description": "",
140
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
141
+ "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
142
+ 0, "private": true, "resource": "source/4fe141b1035d074a200000d7", "size":
143
+ 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
144
+ been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
145
+ "2012-06-20T03:21:21.028025"}'
146
+ http_version: '1.1'
147
+ recorded_at: Wed, 20 Jun 2012 03:21:32 GMT
148
+ - request:
149
+ method: get
150
+ uri: https://bigml.io/andromeda/source/4fe141b1035d074a200000d7?username=<USERNAME>&api_key=<API_KEY>
151
+ body:
152
+ encoding: US-ASCII
153
+ string: ''
154
+ headers:
155
+ connection:
156
+ - close
157
+ response:
158
+ status:
159
+ code: 200
160
+ message: OK
161
+ headers:
162
+ content-type:
163
+ - application/json; charset=utf-8
164
+ date:
165
+ - Wed, 20 Jun 2012 03:17:43 GMT
166
+ server:
167
+ - nginx/1.0.12
168
+ content-length:
169
+ - '1179'
170
+ connection:
171
+ - Close
172
+ body:
173
+ encoding: US-ASCII
174
+ string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
175
+ "created": "2012-06-20T03:21:21.028000", "credits": 0.0, "description": "",
176
+ "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
177
+ "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
178
+ "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
179
+ "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
180
+ "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
181
+ "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
182
+ "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
183
+ 0, "private": true, "resource": "source/4fe141b1035d074a200000d7", "size":
184
+ 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
185
+ ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
186
+ "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
187
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 78, "message": "The
188
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:21.052000"}'
189
+ http_version: '1.1'
190
+ recorded_at: Wed, 20 Jun 2012 03:21:33 GMT
191
+ recorded_with: VCR 2.2.2