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,36 +17,36 @@ http_interactions:
|
|
17
17
|
content-type:
|
18
18
|
- application/json; charset=utf-8
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 28 Jun 2012 22:28:32 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
|
-
|
24
|
-
-
|
23
|
+
content-length:
|
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-
|
31
|
+
"application/octet-stream", "created": "2012-06-28T22:30:03.015000", "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":
|
39
|
-
|
38
|
+
"name": "iris.csv", "number_of_datasets": 1, "number_of_models": 1, "number_of_predictions":
|
39
|
+
1, "private": true, "resource": "source/4fecdaeb035d0741ef00329f", "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": 86, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:30:57.380000"}]}'
|
45
45
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:30:45 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecdaeb035d0741ef00329f?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:26:01 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:30:47 GMT
|
76
76
|
- request:
|
77
77
|
method: get
|
78
78
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
@@ -90,28 +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:28:35 GMT
|
94
94
|
server:
|
95
95
|
- nginx/1.0.12
|
96
96
|
content-length:
|
97
|
-
- '
|
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
|
-
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns":
|
104
|
-
"created": "2012-06-
|
105
|
-
"", "locale": "
|
106
|
-
|
107
|
-
|
108
|
-
false, "status": {"
|
109
|
-
"
|
103
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
104
|
+
"created": "2012-06-28T22:30:04.820000", "credits": 0.00439453125, "description":
|
105
|
+
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
|
106
|
+
1, "private": true, "resource": "dataset/4fecdaec035d0741f0003375", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecdaeb035d0741ef00329f", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 484, "field_errors":
|
109
|
+
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
+
150}, "tags": [], "updated": "2012-06-28T22:30:57.607000"}]}'
|
110
111
|
http_version: '1.1'
|
111
|
-
recorded_at:
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:30:48 GMT
|
112
113
|
- request:
|
113
114
|
method: delete
|
114
|
-
uri: https://bigml.io/andromeda/dataset/
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecdaec035d0741f0003375?username=<USERNAME>&api_key=<API_KEY>
|
115
116
|
body:
|
116
117
|
encoding: US-ASCII
|
117
118
|
string: ''
|
@@ -128,7 +129,7 @@ http_interactions:
|
|
128
129
|
content-type:
|
129
130
|
- text/html; charset=utf-8
|
130
131
|
date:
|
131
|
-
-
|
132
|
+
- Thu, 28 Jun 2012 22:26:04 GMT
|
132
133
|
server:
|
133
134
|
- nginx/1.0.12
|
134
135
|
connection:
|
@@ -137,7 +138,7 @@ http_interactions:
|
|
137
138
|
encoding: US-ASCII
|
138
139
|
string: ''
|
139
140
|
http_version: '1.1'
|
140
|
-
recorded_at:
|
141
|
+
recorded_at: Thu, 28 Jun 2012 22:30:51 GMT
|
141
142
|
- request:
|
142
143
|
method: get
|
143
144
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
@@ -155,19 +156,57 @@ http_interactions:
|
|
155
156
|
content-type:
|
156
157
|
- application/json; charset=utf-8
|
157
158
|
date:
|
158
|
-
-
|
159
|
+
- Thu, 28 Jun 2012 22:28:39 GMT
|
159
160
|
server:
|
160
161
|
- nginx/1.0.12
|
161
162
|
content-length:
|
162
|
-
- '
|
163
|
+
- '844'
|
163
164
|
connection:
|
164
165
|
- Close
|
165
166
|
body:
|
166
167
|
encoding: US-ASCII
|
167
168
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
168
|
-
"total_count":
|
169
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
170
|
+
"created": "2012-06-28T22:30:55.597000", "credits": 0.017578125, "dataset":
|
171
|
+
"dataset/4fecdaec035d0741f0003375", "dataset_status": false, "description":
|
172
|
+
"", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
|
173
|
+
"locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
|
174
|
+
model", "number_of_predictions": 1, "objective_fields": ["000004"], "private":
|
175
|
+
true, "range": [1, 150], "resource": "model/4fecdb1f15526875f70033d6", "rows":
|
176
|
+
150, "size": 4608, "source": "source/4fecdaeb035d0741ef00329f", "source_status":
|
177
|
+
false, "status": {"code": 5, "elapsed": 134, "message": "The model has been
|
178
|
+
created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:30:57.670000"}]}'
|
169
179
|
http_version: '1.1'
|
170
|
-
recorded_at:
|
180
|
+
recorded_at: Thu, 28 Jun 2012 22:30:52 GMT
|
181
|
+
- request:
|
182
|
+
method: delete
|
183
|
+
uri: https://bigml.io/andromeda/model/4fecdb1f15526875f70033d6?username=<USERNAME>&api_key=<API_KEY>
|
184
|
+
body:
|
185
|
+
encoding: US-ASCII
|
186
|
+
string: ''
|
187
|
+
headers:
|
188
|
+
connection:
|
189
|
+
- close
|
190
|
+
response:
|
191
|
+
status:
|
192
|
+
code: 204
|
193
|
+
message: NO CONTENT
|
194
|
+
headers:
|
195
|
+
content-length:
|
196
|
+
- '0'
|
197
|
+
content-type:
|
198
|
+
- text/html; charset=utf-8
|
199
|
+
date:
|
200
|
+
- Thu, 28 Jun 2012 22:26:08 GMT
|
201
|
+
server:
|
202
|
+
- nginx/1.0.12
|
203
|
+
connection:
|
204
|
+
- Close
|
205
|
+
body:
|
206
|
+
encoding: US-ASCII
|
207
|
+
string: ''
|
208
|
+
http_version: '1.1'
|
209
|
+
recorded_at: Thu, 28 Jun 2012 22:30:54 GMT
|
171
210
|
- request:
|
172
211
|
method: get
|
173
212
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
@@ -185,19 +224,63 @@ http_interactions:
|
|
185
224
|
content-type:
|
186
225
|
- application/json; charset=utf-8
|
187
226
|
date:
|
188
|
-
-
|
227
|
+
- Thu, 28 Jun 2012 22:28:44 GMT
|
189
228
|
server:
|
190
229
|
- nginx/1.0.12
|
191
230
|
content-length:
|
192
|
-
- '
|
231
|
+
- '1326'
|
193
232
|
connection:
|
194
233
|
- Close
|
195
234
|
body:
|
196
235
|
encoding: US-ASCII
|
197
236
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
198
|
-
"total_count":
|
237
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-28T22:30:57.300000",
|
238
|
+
"credits": 0.01, "dataset": "dataset/4fecdaec035d0741f0003375", "dataset_status":
|
239
|
+
false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
240
|
+
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
241
|
+
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
242
|
+
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
243
|
+
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
244
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb1f15526875f70033d6",
|
245
|
+
"model_status": false, "name": "Prediction for species", "objective_fields":
|
246
|
+
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
247
|
+
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
248
|
+
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
249
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb2115526875f70033d9",
|
250
|
+
"source": "source/4fecdaeb035d0741ef00329f", "source_status": false, "status":
|
251
|
+
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
252
|
+
"2012-06-28T22:30:57.300000"}]}'
|
199
253
|
http_version: '1.1'
|
200
|
-
recorded_at:
|
254
|
+
recorded_at: Thu, 28 Jun 2012 22:30:57 GMT
|
255
|
+
- request:
|
256
|
+
method: delete
|
257
|
+
uri: https://bigml.io/andromeda/prediction/4fecdb2115526875f70033d9?username=<USERNAME>&api_key=<API_KEY>
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: ''
|
261
|
+
headers:
|
262
|
+
connection:
|
263
|
+
- close
|
264
|
+
response:
|
265
|
+
status:
|
266
|
+
code: 204
|
267
|
+
message: NO CONTENT
|
268
|
+
headers:
|
269
|
+
content-length:
|
270
|
+
- '0'
|
271
|
+
content-type:
|
272
|
+
- text/html; charset=utf-8
|
273
|
+
date:
|
274
|
+
- Thu, 28 Jun 2012 22:26:12 GMT
|
275
|
+
server:
|
276
|
+
- nginx/1.0.12
|
277
|
+
connection:
|
278
|
+
- Close
|
279
|
+
body:
|
280
|
+
encoding: US-ASCII
|
281
|
+
string: ''
|
282
|
+
http_version: '1.1'
|
283
|
+
recorded_at: Thu, 28 Jun 2012 22:30:58 GMT
|
201
284
|
- request:
|
202
285
|
method: post
|
203
286
|
uri: https://bigml.io/andromeda/source
|
@@ -219,9 +302,9 @@ http_interactions:
|
|
219
302
|
content-type:
|
220
303
|
- application/json; charset=utf-8
|
221
304
|
date:
|
222
|
-
-
|
305
|
+
- Thu, 28 Jun 2012 22:28:47 GMT
|
223
306
|
location:
|
224
|
-
- http://bigml.io/andromeda/source/
|
307
|
+
- http://bigml.io/andromeda/source/4fecdb03035d0741f0003378
|
225
308
|
server:
|
226
309
|
- nginx/1.0.12
|
227
310
|
content-length:
|
@@ -231,21 +314,21 @@ http_interactions:
|
|
231
314
|
body:
|
232
315
|
encoding: US-ASCII
|
233
316
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
234
|
-
"created": "2012-06-
|
317
|
+
"created": "2012-06-28T22:30:27.499902", "credits": 0.0, "description": "",
|
235
318
|
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
236
319
|
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
237
|
-
0, "private": true, "resource": "source/
|
320
|
+
0, "private": true, "resource": "source/4fecdb03035d0741f0003378", "size":
|
238
321
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
239
322
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
240
|
-
"2012-06-
|
323
|
+
"2012-06-28T22:30:27.499924"}'
|
241
324
|
http_version: '1.1'
|
242
|
-
recorded_at:
|
325
|
+
recorded_at: Thu, 28 Jun 2012 22:31:00 GMT
|
243
326
|
- request:
|
244
327
|
method: post
|
245
328
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
246
329
|
body:
|
247
330
|
encoding: UTF-8
|
248
|
-
string: ! '{"source":"source/
|
331
|
+
string: ! '{"source":"source/4fecdb03035d0741f0003378"}'
|
249
332
|
headers:
|
250
333
|
content-type:
|
251
334
|
- application/json
|
@@ -259,37 +342,37 @@ http_interactions:
|
|
259
342
|
content-type:
|
260
343
|
- application/json; charset=utf-8
|
261
344
|
date:
|
262
|
-
-
|
345
|
+
- Thu, 28 Jun 2012 22:26:16 GMT
|
263
346
|
location:
|
264
|
-
- http://bigml.io/andromeda/dataset/
|
347
|
+
- http://bigml.io/andromeda/dataset/4fecdb3615526875f8003337
|
265
348
|
server:
|
266
349
|
- nginx/1.0.12
|
267
350
|
content-length:
|
268
|
-
- '
|
351
|
+
- '921'
|
269
352
|
connection:
|
270
353
|
- Close
|
271
354
|
body:
|
272
355
|
encoding: US-ASCII
|
273
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
274
|
-
"credits": 0.
|
356
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:31:18.381240",
|
357
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
275
358
|
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
276
359
|
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
277
360
|
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
278
361
|
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
279
362
|
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
280
363
|
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
281
|
-
true, "resource": "dataset/
|
282
|
-
"source": "source/
|
364
|
+
true, "resource": "dataset/4fecdb3615526875f8003337", "rows": 0, "size": 4608,
|
365
|
+
"source": "source/4fecdb03035d0741f0003378", "source_status": true, "status":
|
283
366
|
{"code": 1, "message": "The dataset is being processed and will be created
|
284
|
-
soon"}, "tags": [], "updated": "2012-06-
|
367
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:31:18.381260"}'
|
285
368
|
http_version: '1.1'
|
286
|
-
recorded_at:
|
369
|
+
recorded_at: Thu, 28 Jun 2012 22:31:02 GMT
|
287
370
|
- request:
|
288
371
|
method: post
|
289
372
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
290
373
|
body:
|
291
374
|
encoding: UTF-8
|
292
|
-
string: ! '{"dataset":"dataset/
|
375
|
+
string: ! '{"dataset":"dataset/4fecdb3615526875f8003337"}'
|
293
376
|
headers:
|
294
377
|
content-type:
|
295
378
|
- application/json
|
@@ -303,33 +386,33 @@ http_interactions:
|
|
303
386
|
content-type:
|
304
387
|
- application/json; charset=utf-8
|
305
388
|
date:
|
306
|
-
-
|
389
|
+
- Thu, 28 Jun 2012 22:28:52 GMT
|
307
390
|
location:
|
308
|
-
- http://bigml.io/andromeda/model/
|
391
|
+
- http://bigml.io/andromeda/model/4fecdb3915526875f300333f
|
309
392
|
server:
|
310
393
|
- nginx/1.0.12
|
311
394
|
content-length:
|
312
|
-
- '
|
395
|
+
- '691'
|
313
396
|
connection:
|
314
397
|
- Close
|
315
398
|
body:
|
316
399
|
encoding: US-ASCII
|
317
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
318
|
-
"credits": 0.
|
400
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:31:21.927565",
|
401
|
+
"credits": 0.017578125, "dataset": "dataset/4fecdb3615526875f8003337", "dataset_status":
|
319
402
|
true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
|
320
403
|
"max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
321
404
|
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
322
|
-
"model/
|
405
|
+
"model/4fecdb3915526875f300333f", "rows": 150, "size": 4608, "source": "source/4fecdb03035d0741f0003378",
|
323
406
|
"source_status": true, "status": {"code": 1, "message": "The model is being
|
324
|
-
processed and will be created soon"}, "tags": [], "updated": "2012-06-
|
407
|
+
processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:31:21.927584"}'
|
325
408
|
http_version: '1.1'
|
326
|
-
recorded_at:
|
409
|
+
recorded_at: Thu, 28 Jun 2012 22:31:05 GMT
|
327
410
|
- request:
|
328
411
|
method: post
|
329
412
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
330
413
|
body:
|
331
414
|
encoding: UTF-8
|
332
|
-
string: ! '{"model":"model/
|
415
|
+
string: ! '{"model":"model/4fecdb3915526875f300333f","input_data":{"000001":3}}'
|
333
416
|
headers:
|
334
417
|
content-type:
|
335
418
|
- application/json
|
@@ -343,9 +426,9 @@ http_interactions:
|
|
343
426
|
content-type:
|
344
427
|
- application/json; charset=utf-8
|
345
428
|
date:
|
346
|
-
-
|
429
|
+
- Thu, 28 Jun 2012 22:26:21 GMT
|
347
430
|
location:
|
348
|
-
- http://bigml.io/andromeda/prediction/
|
431
|
+
- http://bigml.io/andromeda/prediction/4fecdb0b035d0741ed003308
|
349
432
|
server:
|
350
433
|
- nginx/1.0.12
|
351
434
|
content-length:
|
@@ -354,24 +437,24 @@ http_interactions:
|
|
354
437
|
- Close
|
355
438
|
body:
|
356
439
|
encoding: US-ASCII
|
357
|
-
string: ! '{"category": 0, "code": 201, "created": "2012-06-
|
358
|
-
"credits": 0.01, "dataset": "dataset/
|
440
|
+
string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:30:35.389492",
|
441
|
+
"credits": 0.01, "dataset": "dataset/4fecdb3615526875f8003337", "dataset_status":
|
359
442
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
360
443
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
361
444
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
362
445
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
363
446
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
364
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
447
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3915526875f300333f",
|
365
448
|
"model_status": true, "name": "Prediction for species", "objective_fields":
|
366
449
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
367
450
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
368
451
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
369
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
370
|
-
"source": "source/
|
452
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb0b035d0741ed003308",
|
453
|
+
"source": "source/4fecdb03035d0741f0003378", "source_status": true, "status":
|
371
454
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
372
|
-
"2012-06-
|
455
|
+
"2012-06-28T22:30:35.389514"}'
|
373
456
|
http_version: '1.1'
|
374
|
-
recorded_at:
|
457
|
+
recorded_at: Thu, 28 Jun 2012 22:31:08 GMT
|
375
458
|
- request:
|
376
459
|
method: get
|
377
460
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
@@ -389,32 +472,32 @@ http_interactions:
|
|
389
472
|
content-type:
|
390
473
|
- application/json; charset=utf-8
|
391
474
|
date:
|
392
|
-
-
|
475
|
+
- Thu, 28 Jun 2012 22:28:57 GMT
|
393
476
|
server:
|
394
477
|
- nginx/1.0.12
|
395
|
-
|
396
|
-
-
|
478
|
+
transfer-encoding:
|
479
|
+
- chunked
|
397
480
|
connection:
|
398
481
|
- Close
|
399
482
|
body:
|
400
483
|
encoding: US-ASCII
|
401
484
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
402
|
-
"total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-
|
403
|
-
"credits": 0.01, "dataset": "dataset/
|
485
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-28T22:30:35.389000",
|
486
|
+
"credits": 0.01, "dataset": "dataset/4fecdb3615526875f8003337", "dataset_status":
|
404
487
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
405
488
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
406
489
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
407
490
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
408
491
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
409
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
492
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3915526875f300333f",
|
410
493
|
"model_status": true, "name": "Prediction for species", "objective_fields":
|
411
494
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
412
495
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
413
496
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
414
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
415
|
-
"source": "source/
|
497
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb0b035d0741ed003308",
|
498
|
+
"source": "source/4fecdb03035d0741f0003378", "source_status": true, "status":
|
416
499
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
417
|
-
"2012-06-
|
500
|
+
"2012-06-28T22:30:35.389000"}]}'
|
418
501
|
http_version: '1.1'
|
419
|
-
recorded_at:
|
502
|
+
recorded_at: Thu, 28 Jun 2012 22:31:10 GMT
|
420
503
|
recorded_with: VCR 2.2.2
|