big_ml 0.1.0 → 0.1.1
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.
- 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
data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml
CHANGED
@@ -17,18 +17,18 @@ http_interactions:
|
|
17
17
|
content-type:
|
18
18
|
- application/json; charset=utf-8
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 28 Jun 2012 22:30:19 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
23
|
content-length:
|
24
|
-
- '
|
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:31:45.718000", "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": 1, "number_of_predictions":
|
39
|
-
1, "private": true, "resource": "source/
|
39
|
+
1, "private": true, "resource": "source/4fecdb51035d0741f0003387", "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
|
-
|
43
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 67, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:31:53.462000"}]}'
|
45
45
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:32:32 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecdb51035d0741f0003387?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:27:50 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:32:37 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:30:25 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
103
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
104
|
-
"created": "2012-06-
|
104
|
+
"created": "2012-06-28T22:32:36.425000", "credits": 0.00439453125, "description":
|
105
105
|
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
|
106
|
-
1, "private": true, "resource": "dataset/
|
107
|
-
150, "size": 4608, "source": "source/
|
108
|
-
false, "status": {"bytes": 4608, "code": 5, "elapsed":
|
106
|
+
1, "private": true, "resource": "dataset/4fecdb8415526875f800333d", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecdb51035d0741f0003387", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 135, "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:31:53.470000"}]}'
|
111
111
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:32:38 GMT
|
113
113
|
- request:
|
114
114
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecdb8415526875f800333d?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:28:03 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:32:49 GMT
|
142
142
|
- request:
|
143
143
|
method: get
|
144
144
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
@@ -156,31 +156,31 @@ http_interactions:
|
|
156
156
|
content-type:
|
157
157
|
- application/json; charset=utf-8
|
158
158
|
date:
|
159
|
-
-
|
159
|
+
- Thu, 28 Jun 2012 22:30:38 GMT
|
160
160
|
server:
|
161
161
|
- nginx/1.0.12
|
162
162
|
content-length:
|
163
|
-
- '
|
163
|
+
- '844'
|
164
164
|
connection:
|
165
165
|
- Close
|
166
166
|
body:
|
167
167
|
encoding: US-ASCII
|
168
168
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
169
169
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
170
|
-
"created": "2012-06-
|
171
|
-
"dataset/
|
170
|
+
"created": "2012-06-28T22:32:39.438000", "credits": 0.017578125, "dataset":
|
171
|
+
"dataset/4fecdb8415526875f800333d", "dataset_status": false, "description":
|
172
172
|
"", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
|
173
173
|
"locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
|
174
174
|
model", "number_of_predictions": 1, "objective_fields": ["000004"], "private":
|
175
|
-
true, "range": [1, 150], "resource": "model/
|
176
|
-
150, "size": 4608, "source": "source/
|
177
|
-
false, "status": {"code": 5, "elapsed":
|
178
|
-
created", "progress": 1}, "tags": [], "updated": "2012-06-
|
175
|
+
true, "range": [1, 150], "resource": "model/4fecdb8715526875f70033e5", "rows":
|
176
|
+
150, "size": 4608, "source": "source/4fecdb51035d0741f0003387", "source_status":
|
177
|
+
false, "status": {"code": 5, "elapsed": 135, "message": "The model has been
|
178
|
+
created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:31:53.474000"}]}'
|
179
179
|
http_version: '1.1'
|
180
|
-
recorded_at:
|
180
|
+
recorded_at: Thu, 28 Jun 2012 22:32:51 GMT
|
181
181
|
- request:
|
182
182
|
method: delete
|
183
|
-
uri: https://bigml.io/andromeda/model/
|
183
|
+
uri: https://bigml.io/andromeda/model/4fecdb8715526875f70033e5?username=<USERNAME>&api_key=<API_KEY>
|
184
184
|
body:
|
185
185
|
encoding: US-ASCII
|
186
186
|
string: ''
|
@@ -197,7 +197,7 @@ http_interactions:
|
|
197
197
|
content-type:
|
198
198
|
- text/html; charset=utf-8
|
199
199
|
date:
|
200
|
-
-
|
200
|
+
- Thu, 28 Jun 2012 22:28:08 GMT
|
201
201
|
server:
|
202
202
|
- nginx/1.0.12
|
203
203
|
connection:
|
@@ -206,7 +206,7 @@ http_interactions:
|
|
206
206
|
encoding: US-ASCII
|
207
207
|
string: ''
|
208
208
|
http_version: '1.1'
|
209
|
-
recorded_at:
|
209
|
+
recorded_at: Thu, 28 Jun 2012 22:32:54 GMT
|
210
210
|
- request:
|
211
211
|
method: get
|
212
212
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
@@ -224,7 +224,7 @@ http_interactions:
|
|
224
224
|
content-type:
|
225
225
|
- application/json; charset=utf-8
|
226
226
|
date:
|
227
|
-
-
|
227
|
+
- Thu, 28 Jun 2012 22:30:43 GMT
|
228
228
|
server:
|
229
229
|
- nginx/1.0.12
|
230
230
|
content-length:
|
@@ -234,26 +234,26 @@ http_interactions:
|
|
234
234
|
body:
|
235
235
|
encoding: US-ASCII
|
236
236
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
237
|
-
"total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-
|
238
|
-
"credits": 0.01, "dataset": "dataset/
|
237
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "created": "2012-06-28T22:31:53.456000",
|
238
|
+
"credits": 0.01, "dataset": "dataset/4fecdb8415526875f800333d", "dataset_status":
|
239
239
|
false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
240
240
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
241
241
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
242
242
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
243
243
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
244
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
244
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb8715526875f70033e5",
|
245
245
|
"model_status": false, "name": "foo name", "objective_fields": ["000004"],
|
246
246
|
"prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
|
247
247
|
[], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
|
248
248
|
{"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
|
249
|
-
[]}, "private": true, "resource": "prediction/
|
250
|
-
"source/
|
251
|
-
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-
|
249
|
+
[]}, "private": true, "resource": "prediction/4fecdb59035d0741f0003389", "source":
|
250
|
+
"source/4fecdb51035d0741f0003387", "source_status": false, "status": {"code":
|
251
|
+
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:31:55.043000"}]}'
|
252
252
|
http_version: '1.1'
|
253
|
-
recorded_at:
|
253
|
+
recorded_at: Thu, 28 Jun 2012 22:32:56 GMT
|
254
254
|
- request:
|
255
255
|
method: delete
|
256
|
-
uri: https://bigml.io/andromeda/prediction/
|
256
|
+
uri: https://bigml.io/andromeda/prediction/4fecdb59035d0741f0003389?username=<USERNAME>&api_key=<API_KEY>
|
257
257
|
body:
|
258
258
|
encoding: US-ASCII
|
259
259
|
string: ''
|
@@ -270,7 +270,7 @@ http_interactions:
|
|
270
270
|
content-type:
|
271
271
|
- text/html; charset=utf-8
|
272
272
|
date:
|
273
|
-
-
|
273
|
+
- Thu, 28 Jun 2012 22:28:11 GMT
|
274
274
|
server:
|
275
275
|
- nginx/1.0.12
|
276
276
|
connection:
|
@@ -279,7 +279,7 @@ http_interactions:
|
|
279
279
|
encoding: US-ASCII
|
280
280
|
string: ''
|
281
281
|
http_version: '1.1'
|
282
|
-
recorded_at:
|
282
|
+
recorded_at: Thu, 28 Jun 2012 22:32:58 GMT
|
283
283
|
- request:
|
284
284
|
method: post
|
285
285
|
uri: https://bigml.io/andromeda/source
|
@@ -301,9 +301,9 @@ http_interactions:
|
|
301
301
|
content-type:
|
302
302
|
- application/json; charset=utf-8
|
303
303
|
date:
|
304
|
-
-
|
304
|
+
- Thu, 28 Jun 2012 22:30:46 GMT
|
305
305
|
location:
|
306
|
-
- http://bigml.io/andromeda/source/
|
306
|
+
- http://bigml.io/andromeda/source/4fecdbac15526875f900329e
|
307
307
|
server:
|
308
308
|
- nginx/1.0.12
|
309
309
|
content-length:
|
@@ -313,21 +313,21 @@ http_interactions:
|
|
313
313
|
body:
|
314
314
|
encoding: US-ASCII
|
315
315
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
316
|
-
"created": "2012-06-
|
316
|
+
"created": "2012-06-28T22:33:16.011355", "credits": 0.0, "description": "",
|
317
317
|
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
318
318
|
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
319
|
-
0, "private": true, "resource": "source/
|
319
|
+
0, "private": true, "resource": "source/4fecdbac15526875f900329e", "size":
|
320
320
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
321
321
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
322
|
-
"2012-06-
|
322
|
+
"2012-06-28T22:33:16.011376"}'
|
323
323
|
http_version: '1.1'
|
324
|
-
recorded_at:
|
324
|
+
recorded_at: Thu, 28 Jun 2012 22:32:59 GMT
|
325
325
|
- request:
|
326
326
|
method: post
|
327
327
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
328
328
|
body:
|
329
329
|
encoding: UTF-8
|
330
|
-
string: ! '{"source":"source/
|
330
|
+
string: ! '{"source":"source/4fecdbac15526875f900329e"}'
|
331
331
|
headers:
|
332
332
|
content-type:
|
333
333
|
- application/json
|
@@ -341,37 +341,37 @@ http_interactions:
|
|
341
341
|
content-type:
|
342
342
|
- application/json; charset=utf-8
|
343
343
|
date:
|
344
|
-
-
|
344
|
+
- Thu, 28 Jun 2012 22:28:15 GMT
|
345
345
|
location:
|
346
|
-
- http://bigml.io/andromeda/dataset/
|
346
|
+
- http://bigml.io/andromeda/dataset/4fecdb7c035d0741f1003325
|
347
347
|
server:
|
348
348
|
- nginx/1.0.12
|
349
349
|
content-length:
|
350
|
-
- '
|
350
|
+
- '921'
|
351
351
|
connection:
|
352
352
|
- Close
|
353
353
|
body:
|
354
354
|
encoding: US-ASCII
|
355
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
356
|
-
"credits": 0.
|
355
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:32:28.945441",
|
356
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
357
357
|
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
358
358
|
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
359
359
|
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
360
360
|
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
361
361
|
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
362
362
|
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
363
|
-
true, "resource": "dataset/
|
364
|
-
"source": "source/
|
363
|
+
true, "resource": "dataset/4fecdb7c035d0741f1003325", "rows": 0, "size": 4608,
|
364
|
+
"source": "source/4fecdbac15526875f900329e", "source_status": true, "status":
|
365
365
|
{"code": 1, "message": "The dataset is being processed and will be created
|
366
|
-
soon"}, "tags": [], "updated": "2012-06-
|
366
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:32:28.945460"}'
|
367
367
|
http_version: '1.1'
|
368
|
-
recorded_at:
|
368
|
+
recorded_at: Thu, 28 Jun 2012 22:33:01 GMT
|
369
369
|
- request:
|
370
370
|
method: post
|
371
371
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
372
372
|
body:
|
373
373
|
encoding: UTF-8
|
374
|
-
string: ! '{"dataset":"dataset/
|
374
|
+
string: ! '{"dataset":"dataset/4fecdb7c035d0741f1003325"}'
|
375
375
|
headers:
|
376
376
|
content-type:
|
377
377
|
- application/json
|
@@ -385,33 +385,33 @@ http_interactions:
|
|
385
385
|
content-type:
|
386
386
|
- application/json; charset=utf-8
|
387
387
|
date:
|
388
|
-
-
|
388
|
+
- Thu, 28 Jun 2012 22:30:50 GMT
|
389
389
|
location:
|
390
|
-
- http://bigml.io/andromeda/model/
|
390
|
+
- http://bigml.io/andromeda/model/4fecdb7e035d0741f000338c
|
391
391
|
server:
|
392
392
|
- nginx/1.0.12
|
393
393
|
content-length:
|
394
|
-
- '
|
394
|
+
- '691'
|
395
395
|
connection:
|
396
396
|
- Close
|
397
397
|
body:
|
398
398
|
encoding: US-ASCII
|
399
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
400
|
-
"credits": 0.
|
399
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:32:30.873607",
|
400
|
+
"credits": 0.017578125, "dataset": "dataset/4fecdb7c035d0741f1003325", "dataset_status":
|
401
401
|
true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
|
402
402
|
"max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
403
403
|
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
404
|
-
"model/
|
404
|
+
"model/4fecdb7e035d0741f000338c", "rows": 150, "size": 4608, "source": "source/4fecdbac15526875f900329e",
|
405
405
|
"source_status": true, "status": {"code": 1, "message": "The model is being
|
406
|
-
processed and will be created soon"}, "tags": [], "updated": "2012-06-
|
406
|
+
processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:32:30.873637"}'
|
407
407
|
http_version: '1.1'
|
408
|
-
recorded_at:
|
408
|
+
recorded_at: Thu, 28 Jun 2012 22:33:03 GMT
|
409
409
|
- request:
|
410
410
|
method: post
|
411
411
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
412
412
|
body:
|
413
413
|
encoding: UTF-8
|
414
|
-
string: ! '{"model":"model/
|
414
|
+
string: ! '{"model":"model/4fecdb7e035d0741f000338c","input_data":{"000001":3}}'
|
415
415
|
headers:
|
416
416
|
content-type:
|
417
417
|
- application/json
|
@@ -425,9 +425,9 @@ http_interactions:
|
|
425
425
|
content-type:
|
426
426
|
- application/json; charset=utf-8
|
427
427
|
date:
|
428
|
-
-
|
428
|
+
- Thu, 28 Jun 2012 22:28:18 GMT
|
429
429
|
location:
|
430
|
-
- http://bigml.io/andromeda/prediction/
|
430
|
+
- http://bigml.io/andromeda/prediction/4fecdbb115526875f5003326
|
431
431
|
server:
|
432
432
|
- nginx/1.0.12
|
433
433
|
content-length:
|
@@ -436,27 +436,27 @@ http_interactions:
|
|
436
436
|
- Close
|
437
437
|
body:
|
438
438
|
encoding: US-ASCII
|
439
|
-
string: ! '{"category": 0, "code": 201, "created": "2012-06-
|
440
|
-
"credits": 0.01, "dataset": "dataset/
|
439
|
+
string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:33:21.502938",
|
440
|
+
"credits": 0.01, "dataset": "dataset/4fecdb7c035d0741f1003325", "dataset_status":
|
441
441
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
442
442
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
443
443
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
444
444
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
445
445
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
446
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
446
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb7e035d0741f000338c",
|
447
447
|
"model_status": true, "name": "Prediction for species", "objective_fields":
|
448
448
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
449
449
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
450
450
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
451
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
452
|
-
"source": "source/
|
451
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdbb115526875f5003326",
|
452
|
+
"source": "source/4fecdbac15526875f900329e", "source_status": true, "status":
|
453
453
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
454
|
-
"2012-06-
|
454
|
+
"2012-06-28T22:33:21.502956"}'
|
455
455
|
http_version: '1.1'
|
456
|
-
recorded_at:
|
456
|
+
recorded_at: Thu, 28 Jun 2012 22:33:05 GMT
|
457
457
|
- request:
|
458
458
|
method: delete
|
459
|
-
uri: https://bigml.io/andromeda/prediction/
|
459
|
+
uri: https://bigml.io/andromeda/prediction/4fecdbb115526875f5003326?username=<USERNAME>&api_key=<API_KEY>
|
460
460
|
body:
|
461
461
|
encoding: US-ASCII
|
462
462
|
string: ''
|
@@ -473,7 +473,7 @@ http_interactions:
|
|
473
473
|
content-type:
|
474
474
|
- text/html; charset=utf-8
|
475
475
|
date:
|
476
|
-
-
|
476
|
+
- Thu, 28 Jun 2012 22:30:53 GMT
|
477
477
|
server:
|
478
478
|
- nginx/1.0.12
|
479
479
|
connection:
|
@@ -482,10 +482,10 @@ http_interactions:
|
|
482
482
|
encoding: US-ASCII
|
483
483
|
string: ''
|
484
484
|
http_version: '1.1'
|
485
|
-
recorded_at:
|
485
|
+
recorded_at: Thu, 28 Jun 2012 22:33:06 GMT
|
486
486
|
- request:
|
487
487
|
method: get
|
488
|
-
uri: https://bigml.io/andromeda/prediction/
|
488
|
+
uri: https://bigml.io/andromeda/prediction/4fecdbb115526875f5003326?username=<USERNAME>&api_key=<API_KEY>
|
489
489
|
body:
|
490
490
|
encoding: US-ASCII
|
491
491
|
string: ''
|
@@ -500,7 +500,7 @@ http_interactions:
|
|
500
500
|
content-type:
|
501
501
|
- application/json; charset=utf-8
|
502
502
|
date:
|
503
|
-
-
|
503
|
+
- Thu, 28 Jun 2012 22:28:21 GMT
|
504
504
|
server:
|
505
505
|
- nginx/1.0.12
|
506
506
|
content-length:
|
@@ -510,10 +510,10 @@ http_interactions:
|
|
510
510
|
body:
|
511
511
|
encoding: US-ASCII
|
512
512
|
string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
|
513
|
-
an instance of ''Prediction'' which matched ''pk=
|
513
|
+
an instance of ''Prediction'' which matched ''pk=4fecdbb115526875f5003326''."],
|
514
514
|
"message": "Id does not exist"}}'
|
515
515
|
http_version: '1.1'
|
516
|
-
recorded_at:
|
516
|
+
recorded_at: Thu, 28 Jun 2012 22:33:07 GMT
|
517
517
|
- request:
|
518
518
|
method: get
|
519
519
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
@@ -531,7 +531,7 @@ http_interactions:
|
|
531
531
|
content-type:
|
532
532
|
- application/json; charset=utf-8
|
533
533
|
date:
|
534
|
-
-
|
534
|
+
- Thu, 28 Jun 2012 22:30:56 GMT
|
535
535
|
server:
|
536
536
|
- nginx/1.0.12
|
537
537
|
content-length:
|
@@ -543,5 +543,5 @@ http_interactions:
|
|
543
543
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
544
544
|
"total_count": 0}, "objects": []}'
|
545
545
|
http_version: '1.1'
|
546
|
-
recorded_at:
|
546
|
+
recorded_at: Thu, 28 Jun 2012 22:33:10 GMT
|
547
547
|
recorded_with: VCR 2.2.2
|