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.
- data/CHANGELOG.md +5 -0
- data/README.md +55 -18
- data/big_ml.gemspec +1 -0
- data/lib/big_ml/base.rb +21 -11
- data/lib/big_ml/dataset.rb +10 -4
- data/lib/big_ml/model.rb +16 -10
- data/lib/big_ml/prediction.rb +6 -4
- data/lib/big_ml/source.rb +10 -4
- data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
- data/lib/big_ml/util/client.rb +26 -0
- data/lib/big_ml/util/config.rb +32 -0
- data/lib/big_ml/{request.rb → util/request.rb} +0 -0
- data/lib/big_ml/version.rb +1 -1
- data/lib/big_ml.rb +8 -4
- data/spec/integration/dataset_spec.rb +17 -0
- data/spec/integration/model_spec.rb +17 -0
- data/spec/integration/prediction_spec.rb +11 -0
- data/spec/integration/source_spec.rb +19 -6
- data/spec/units/client_spec.rb +5 -5
- data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
- data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
- data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
- 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
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
- data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
- data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
- data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
- data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
- data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
- metadata +50 -9
- data/.rvmrc +0 -1
- data/lib/big_ml/client.rb +0 -29
- 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
|
-
-
|
20
|
+
- Thu, 28 Jun 2012 22:20:05 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-
|
31
|
+
"application/octet-stream", "created": "2012-06-28T22:24:12.631000", "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/
|
39
|
+
0, "private": true, "resource": "source/4fecd98c035d0741f40032a0", "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":
|
44
|
-
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-
|
43
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 61, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:25:04.305000"}]}'
|
45
45
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:24:51 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecd98c035d0741f40032a0?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
|
-
-
|
66
|
+
- Thu, 28 Jun 2012 22:22: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:
|
75
|
+
recorded_at: Thu, 28 Jun 2012 22:25:06 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
|
-
-
|
93
|
+
- Thu, 28 Jun 2012 22:20:21 GMT
|
94
94
|
server:
|
95
95
|
- nginx/1.0.12
|
96
|
-
|
97
|
-
-
|
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-
|
104
|
+
"created": "2012-06-28T22:25:04.298000", "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/
|
107
|
-
150, "size": 4608, "source": "source/
|
108
|
-
false, "status": {"bytes": 4608, "code": 5, "elapsed":
|
106
|
+
0, "private": true, "resource": "dataset/4fecd9c015526875f70033c3", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecd98c035d0741f40032a0", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 191, "field_errors":
|
109
109
|
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
-
150}, "tags": [], "updated": "2012-06-
|
110
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:06.746000"}]}'
|
111
111
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:25:08 GMT
|
113
113
|
- request:
|
114
114
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9c015526875f70033c3?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
|
-
-
|
132
|
+
- Thu, 28 Jun 2012 22:22:58 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:
|
141
|
+
recorded_at: Thu, 28 Jun 2012 22:25:11 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
|
-
-
|
163
|
+
- Thu, 28 Jun 2012 22:20:26 GMT
|
164
164
|
location:
|
165
|
-
- http://bigml.io/andromeda/source/
|
165
|
+
- http://bigml.io/andromeda/source/4fecd9a8035d0741f000334c
|
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-
|
175
|
+
"created": "2012-06-28T22:24:40.356621", "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/
|
178
|
+
0, "private": true, "resource": "source/4fecd9a8035d0741f000334c", "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-
|
181
|
+
"2012-06-28T22:24:40.356647"}'
|
182
182
|
http_version: '1.1'
|
183
|
-
recorded_at:
|
183
|
+
recorded_at: Thu, 28 Jun 2012 22:25:13 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/
|
189
|
+
string: ! '{"source":"source/4fecd9a8035d0741f000334c"}'
|
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
|
-
-
|
203
|
+
- Thu, 28 Jun 2012 22:23:01 GMT
|
204
204
|
location:
|
205
|
-
- http://bigml.io/andromeda/dataset/
|
205
|
+
- http://bigml.io/andromeda/dataset/4fecd9aa035d0741f000334f
|
206
206
|
server:
|
207
207
|
- nginx/1.0.12
|
208
208
|
content-length:
|
209
|
-
- '
|
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-
|
215
|
-
"credits": 0.
|
214
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:24:42.255040",
|
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/
|
223
|
-
"source": "source/
|
222
|
+
true, "resource": "dataset/4fecd9aa035d0741f000334f", "rows": 0, "size": 4608,
|
223
|
+
"source": "source/4fecd9a8035d0741f000334c", "source_status": true, "status":
|
224
224
|
{"code": 1, "message": "The dataset is being processed and will be created
|
225
|
-
soon"}, "tags": [], "updated": "2012-06-
|
225
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:24:42.255067"}'
|
226
226
|
http_version: '1.1'
|
227
|
-
recorded_at:
|
227
|
+
recorded_at: Thu, 28 Jun 2012 22:25:14 GMT
|
228
228
|
- request:
|
229
229
|
method: put
|
230
|
-
uri: https://bigml.io/andromeda/dataset/
|
230
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9aa035d0741f000334f?username=<USERNAME>&api_key=<API_KEY>
|
231
231
|
body:
|
232
232
|
encoding: UTF-8
|
233
233
|
string: ! '{"name":"foo name"}'
|
@@ -244,17 +244,17 @@ http_interactions:
|
|
244
244
|
content-type:
|
245
245
|
- application/json; charset=utf-8
|
246
246
|
date:
|
247
|
-
-
|
247
|
+
- Thu, 28 Jun 2012 22:20:33 GMT
|
248
248
|
server:
|
249
249
|
- nginx/1.0.12
|
250
250
|
content-length:
|
251
|
-
- '
|
251
|
+
- '2921'
|
252
252
|
connection:
|
253
253
|
- Close
|
254
254
|
body:
|
255
255
|
encoding: US-ASCII
|
256
|
-
string: ! '{"category": 0, "code": 202, "columns": 5, "created": "2012-06-
|
257
|
-
"credits": 0.
|
256
|
+
string: ! '{"category": 0, "code": 202, "columns": 5, "created": "2012-06-28T22:24:42.255000",
|
257
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
258
258
|
0, "datatype": "double", "name": "sepal length", "optype": "numeric", "preferred":
|
259
259
|
true, "summary": {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count":
|
260
260
|
0, "population": 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139,
|
@@ -285,16 +285,16 @@ http_interactions:
|
|
285
285
|
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
286
286
|
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "locale": "en_US", "name":
|
287
287
|
"foo name", "number_of_models": 0, "number_of_predictions": 0, "private":
|
288
|
-
true, "resource": "dataset/
|
289
|
-
4608, "source": "source/
|
290
|
-
"status": {"bytes": 4608, "code": 5, "elapsed":
|
288
|
+
true, "resource": "dataset/4fecd9aa035d0741f000334f", "rows": 150, "size":
|
289
|
+
4608, "source": "source/4fecd9a8035d0741f000334c", "source_status": true,
|
290
|
+
"status": {"bytes": 4608, "code": 5, "elapsed": 225, "field_errors": [], "message":
|
291
291
|
"The dataset has been created", "row_format_errors": [], "serialized_rows":
|
292
|
-
150}, "tags": [], "updated": "2012-06-
|
292
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:35.838251"}'
|
293
293
|
http_version: '1.1'
|
294
|
-
recorded_at:
|
294
|
+
recorded_at: Thu, 28 Jun 2012 22:25:19 GMT
|
295
295
|
- request:
|
296
296
|
method: get
|
297
|
-
uri: https://bigml.io/andromeda/dataset/
|
297
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9aa035d0741f000334f?username=<USERNAME>&api_key=<API_KEY>
|
298
298
|
body:
|
299
299
|
encoding: US-ASCII
|
300
300
|
string: ''
|
@@ -309,17 +309,17 @@ http_interactions:
|
|
309
309
|
content-type:
|
310
310
|
- application/json; charset=utf-8
|
311
311
|
date:
|
312
|
-
-
|
312
|
+
- Thu, 28 Jun 2012 22:23:07 GMT
|
313
313
|
server:
|
314
314
|
- nginx/1.0.12
|
315
315
|
content-length:
|
316
|
-
- '
|
316
|
+
- '2921'
|
317
317
|
connection:
|
318
318
|
- Close
|
319
319
|
body:
|
320
320
|
encoding: US-ASCII
|
321
|
-
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-
|
322
|
-
"credits": 0.
|
321
|
+
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:24:42.255000",
|
322
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
323
323
|
0, "datatype": "double", "name": "sepal length", "optype": "numeric", "preferred":
|
324
324
|
true, "summary": {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count":
|
325
325
|
0, "population": 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139,
|
@@ -350,11 +350,11 @@ http_interactions:
|
|
350
350
|
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
351
351
|
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "locale": "en_US", "name":
|
352
352
|
"foo name", "number_of_models": 0, "number_of_predictions": 0, "private":
|
353
|
-
true, "resource": "dataset/
|
354
|
-
4608, "source": "source/
|
355
|
-
"status": {"bytes": 4608, "code": 5, "elapsed":
|
353
|
+
true, "resource": "dataset/4fecd9aa035d0741f000334f", "rows": 150, "size":
|
354
|
+
4608, "source": "source/4fecd9a8035d0741f000334c", "source_status": true,
|
355
|
+
"status": {"bytes": 4608, "code": 5, "elapsed": 225, "field_errors": [], "message":
|
356
356
|
"The dataset has been created", "row_format_errors": [], "serialized_rows":
|
357
|
-
150}, "tags": [], "updated": "2012-06-
|
357
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:35.860000"}'
|
358
358
|
http_version: '1.1'
|
359
|
-
recorded_at:
|
359
|
+
recorded_at: Thu, 28 Jun 2012 22:25:21 GMT
|
360
360
|
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,360 @@
|
|
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
|
+
- Thu, 28 Jun 2012 22:20:35 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-28T22:24:40.356000", "credits":
|
32
|
+
0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
|
33
|
+
"sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
|
34
|
+
"sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
|
35
|
+
"petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
|
36
|
+
"petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
|
37
|
+
"species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
38
|
+
"name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
|
39
|
+
0, "private": true, "resource": "source/4fecd9a8035d0741f000334c", "size":
|
40
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
41
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
42
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
43
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 64, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:24:42.260000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:25:22 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecd9a8035d0741f000334c?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
|
+
- Thu, 28 Jun 2012 22:23:11 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: Thu, 28 Jun 2012 22:25:24 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
|
+
- Thu, 28 Jun 2012 22:20:39 GMT
|
94
|
+
server:
|
95
|
+
- nginx/1.0.12
|
96
|
+
content-length:
|
97
|
+
- '699'
|
98
|
+
connection:
|
99
|
+
- Close
|
100
|
+
body:
|
101
|
+
encoding: US-ASCII
|
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-28T22:24:42.255000", "credits": 0.00439453125, "description":
|
105
|
+
"", "locale": "en_US", "name": "foo name", "number_of_models": 0, "number_of_predictions":
|
106
|
+
0, "private": true, "resource": "dataset/4fecd9aa035d0741f000334f", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecd9a8035d0741f000334c", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 225, "field_errors":
|
109
|
+
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:35.860000"}]}'
|
111
|
+
http_version: '1.1'
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:25:26 GMT
|
113
|
+
- request:
|
114
|
+
method: delete
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9aa035d0741f000334f?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
|
+
- Thu, 28 Jun 2012 22:23:15 GMT
|
133
|
+
server:
|
134
|
+
- nginx/1.0.12
|
135
|
+
connection:
|
136
|
+
- Close
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
140
|
+
http_version: '1.1'
|
141
|
+
recorded_at: Thu, 28 Jun 2012 22:25:28 GMT
|
142
|
+
- request:
|
143
|
+
method: post
|
144
|
+
uri: https://bigml.io/andromeda/source
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
content-type:
|
150
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
151
|
+
content-length:
|
152
|
+
- '5147'
|
153
|
+
connection:
|
154
|
+
- close
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 201
|
158
|
+
message: CREATED
|
159
|
+
headers:
|
160
|
+
content-type:
|
161
|
+
- application/json; charset=utf-8
|
162
|
+
date:
|
163
|
+
- Thu, 28 Jun 2012 22:20:43 GMT
|
164
|
+
location:
|
165
|
+
- http://bigml.io/andromeda/source/4fecd9b9035d0741f0003352
|
166
|
+
server:
|
167
|
+
- nginx/1.0.12
|
168
|
+
content-length:
|
169
|
+
- '567'
|
170
|
+
connection:
|
171
|
+
- Close
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
175
|
+
"created": "2012-06-28T22:24:57.636386", "credits": 0.0, "description": "",
|
176
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
177
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
178
|
+
0, "private": true, "resource": "source/4fecd9b9035d0741f0003352", "size":
|
179
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
180
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
181
|
+
"2012-06-28T22:24:57.636408"}'
|
182
|
+
http_version: '1.1'
|
183
|
+
recorded_at: Thu, 28 Jun 2012 22:25:30 GMT
|
184
|
+
- request:
|
185
|
+
method: post
|
186
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: ! '{"source":"source/4fecd9b9035d0741f0003352"}'
|
190
|
+
headers:
|
191
|
+
content-type:
|
192
|
+
- application/json
|
193
|
+
connection:
|
194
|
+
- close
|
195
|
+
response:
|
196
|
+
status:
|
197
|
+
code: 201
|
198
|
+
message: CREATED
|
199
|
+
headers:
|
200
|
+
content-type:
|
201
|
+
- application/json; charset=utf-8
|
202
|
+
date:
|
203
|
+
- Thu, 28 Jun 2012 22:23:19 GMT
|
204
|
+
location:
|
205
|
+
- http://bigml.io/andromeda/dataset/4fecd9bb035d0741f0003355
|
206
|
+
server:
|
207
|
+
- nginx/1.0.12
|
208
|
+
content-length:
|
209
|
+
- '921'
|
210
|
+
connection:
|
211
|
+
- Close
|
212
|
+
body:
|
213
|
+
encoding: US-ASCII
|
214
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:24:59.321555",
|
215
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
216
|
+
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
217
|
+
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
218
|
+
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
219
|
+
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
220
|
+
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
221
|
+
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
222
|
+
true, "resource": "dataset/4fecd9bb035d0741f0003355", "rows": 0, "size": 4608,
|
223
|
+
"source": "source/4fecd9b9035d0741f0003352", "source_status": true, "status":
|
224
|
+
{"code": 1, "message": "The dataset is being processed and will be created
|
225
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:24:59.321577"}'
|
226
|
+
http_version: '1.1'
|
227
|
+
recorded_at: Thu, 28 Jun 2012 22:25:32 GMT
|
228
|
+
- request:
|
229
|
+
method: put
|
230
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9bb035d0741f0003355?username=<USERNAME>&api_key=<API_KEY>
|
231
|
+
body:
|
232
|
+
encoding: UTF-8
|
233
|
+
string: ! '{"name":"foo name"}'
|
234
|
+
headers:
|
235
|
+
content-type:
|
236
|
+
- application/json
|
237
|
+
connection:
|
238
|
+
- close
|
239
|
+
response:
|
240
|
+
status:
|
241
|
+
code: 202
|
242
|
+
message: ACCEPTED
|
243
|
+
headers:
|
244
|
+
content-type:
|
245
|
+
- application/json; charset=utf-8
|
246
|
+
date:
|
247
|
+
- Thu, 28 Jun 2012 22:20:47 GMT
|
248
|
+
server:
|
249
|
+
- nginx/1.0.12
|
250
|
+
content-length:
|
251
|
+
- '2921'
|
252
|
+
connection:
|
253
|
+
- Close
|
254
|
+
body:
|
255
|
+
encoding: US-ASCII
|
256
|
+
string: ! '{"category": 0, "code": 202, "columns": 5, "created": "2012-06-28T22:24:59.321000",
|
257
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
258
|
+
0, "datatype": "double", "name": "sepal length", "optype": "numeric", "preferred":
|
259
|
+
true, "summary": {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count":
|
260
|
+
0, "population": 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139,
|
261
|
+
5.01131, 5.05992, 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532,
|
262
|
+
5.71658, 5.77889, 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078,
|
263
|
+
6.41459, 6.49383, 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum":
|
264
|
+
876.5, "sum_squares": 5223.85}}, "000001": {"column_number": 1, "datatype":
|
265
|
+
"double", "name": "sepal width", "optype": "numeric", "preferred": true, "summary":
|
266
|
+
{"counts": [[2, 1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7,
|
267
|
+
9], [2.8, 14], [2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12],
|
268
|
+
[3.5, 6], [3.6, 4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2,
|
269
|
+
1], [4.4, 1]], "maximum": 4.4, "median": 3.02044, "minimum": 2, "missing_count":
|
270
|
+
0, "population": 150, "sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number":
|
271
|
+
2, "datatype": "double", "name": "petal length", "optype": "numeric", "preferred":
|
272
|
+
true, "summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
273
|
+
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
274
|
+
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
275
|
+
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
276
|
+
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
277
|
+
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
278
|
+
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
279
|
+
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
280
|
+
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
281
|
+
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
282
|
+
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
283
|
+
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
284
|
+
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
285
|
+
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
286
|
+
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "locale": "en_US", "name":
|
287
|
+
"foo name", "number_of_models": 0, "number_of_predictions": 0, "private":
|
288
|
+
true, "resource": "dataset/4fecd9bb035d0741f0003355", "rows": 150, "size":
|
289
|
+
4608, "source": "source/4fecd9b9035d0741f0003352", "source_status": true,
|
290
|
+
"status": {"bytes": 4608, "code": 5, "elapsed": 245, "field_errors": [], "message":
|
291
|
+
"The dataset has been created", "row_format_errors": [], "serialized_rows":
|
292
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:49.797161"}'
|
293
|
+
http_version: '1.1'
|
294
|
+
recorded_at: Thu, 28 Jun 2012 22:25:33 GMT
|
295
|
+
- request:
|
296
|
+
method: get
|
297
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9bb035d0741f0003355?username=<USERNAME>&api_key=<API_KEY>
|
298
|
+
body:
|
299
|
+
encoding: US-ASCII
|
300
|
+
string: ''
|
301
|
+
headers:
|
302
|
+
connection:
|
303
|
+
- close
|
304
|
+
response:
|
305
|
+
status:
|
306
|
+
code: 200
|
307
|
+
message: OK
|
308
|
+
headers:
|
309
|
+
content-type:
|
310
|
+
- application/json; charset=utf-8
|
311
|
+
date:
|
312
|
+
- Thu, 28 Jun 2012 22:23:21 GMT
|
313
|
+
server:
|
314
|
+
- nginx/1.0.12
|
315
|
+
content-length:
|
316
|
+
- '2921'
|
317
|
+
connection:
|
318
|
+
- Close
|
319
|
+
body:
|
320
|
+
encoding: US-ASCII
|
321
|
+
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:24:59.321000",
|
322
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
323
|
+
0, "datatype": "double", "name": "sepal length", "optype": "numeric", "preferred":
|
324
|
+
true, "summary": {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count":
|
325
|
+
0, "population": 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139,
|
326
|
+
5.01131, 5.05992, 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532,
|
327
|
+
5.71658, 5.77889, 5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078,
|
328
|
+
6.41459, 6.49383, 6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum":
|
329
|
+
876.5, "sum_squares": 5223.85}}, "000001": {"column_number": 1, "datatype":
|
330
|
+
"double", "name": "sepal width", "optype": "numeric", "preferred": true, "summary":
|
331
|
+
{"counts": [[2, 1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7,
|
332
|
+
9], [2.8, 14], [2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12],
|
333
|
+
[3.5, 6], [3.6, 4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2,
|
334
|
+
1], [4.4, 1]], "maximum": 4.4, "median": 3.02044, "minimum": 2, "missing_count":
|
335
|
+
0, "population": 150, "sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number":
|
336
|
+
2, "datatype": "double", "name": "petal length", "optype": "numeric", "preferred":
|
337
|
+
true, "summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
338
|
+
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
339
|
+
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
340
|
+
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
341
|
+
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
342
|
+
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
343
|
+
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
344
|
+
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
345
|
+
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
346
|
+
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
347
|
+
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
348
|
+
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
349
|
+
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
350
|
+
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
351
|
+
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "locale": "en_US", "name":
|
352
|
+
"foo name", "number_of_models": 0, "number_of_predictions": 0, "private":
|
353
|
+
true, "resource": "dataset/4fecd9bb035d0741f0003355", "rows": 150, "size":
|
354
|
+
4608, "source": "source/4fecd9b9035d0741f0003352", "source_status": true,
|
355
|
+
"status": {"bytes": 4608, "code": 5, "elapsed": 245, "field_errors": [], "message":
|
356
|
+
"The dataset has been created", "row_format_errors": [], "serialized_rows":
|
357
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:49.809000"}'
|
358
|
+
http_version: '1.1'
|
359
|
+
recorded_at: Thu, 28 Jun 2012 22:25:34 GMT
|
360
|
+
recorded_with: VCR 2.2.2
|