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:29:22 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:31:43.742000", "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/4fecdb4f15526875f500331c", "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": 76, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:31:00.633000"}]}'
|
45
45
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:31:35 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecdb4f15526875f500331c?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:51 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:31: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:29:25 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:31:45.366000", "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/4fecdb5115526875f70033dd", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecdb4f15526875f500331c", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 185, "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:00.640000"}]}'
|
111
111
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:31:39 GMT
|
113
113
|
- request:
|
114
114
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecdb5115526875f70033dd?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:26:55 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:31:41 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:29:30 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:30:58.334000", "credits": 0.017578125, "dataset":
|
171
|
+
"dataset/4fecdb5115526875f70033dd", "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/4fecdb22035d0741f100331c", "rows":
|
176
|
+
150, "size": 4608, "source": "source/4fecdb4f15526875f500331c", "source_status":
|
177
|
+
false, "status": {"code": 5, "elapsed": 130, "message": "The model has been
|
178
|
+
created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:31:00.645000"}]}'
|
179
179
|
http_version: '1.1'
|
180
|
-
recorded_at:
|
180
|
+
recorded_at: Thu, 28 Jun 2012 22:31:43 GMT
|
181
181
|
- request:
|
182
182
|
method: delete
|
183
|
-
uri: https://bigml.io/andromeda/model/
|
183
|
+
uri: https://bigml.io/andromeda/model/4fecdb22035d0741f100331c?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:26:58 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:31:44 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:29:34 GMT
|
228
228
|
server:
|
229
229
|
- nginx/1.0.12
|
230
230
|
content-length:
|
@@ -234,27 +234,27 @@ 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:00.627000",
|
238
|
+
"credits": 0.01, "dataset": "dataset/4fecdb5115526875f70033dd", "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/4fecdb22035d0741f100331c",
|
245
245
|
"model_status": false, "name": "Prediction for species", "objective_fields":
|
246
246
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
247
247
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
248
248
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
249
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
250
|
-
"source": "source/
|
249
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb24035d0741f100331f",
|
250
|
+
"source": "source/4fecdb4f15526875f500331c", "source_status": false, "status":
|
251
251
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
252
|
-
"2012-06-
|
252
|
+
"2012-06-28T22:31:00.627000"}]}'
|
253
253
|
http_version: '1.1'
|
254
|
-
recorded_at:
|
254
|
+
recorded_at: Thu, 28 Jun 2012 22:31:47 GMT
|
255
255
|
- request:
|
256
256
|
method: delete
|
257
|
-
uri: https://bigml.io/andromeda/prediction/
|
257
|
+
uri: https://bigml.io/andromeda/prediction/4fecdb24035d0741f100331f?username=<USERNAME>&api_key=<API_KEY>
|
258
258
|
body:
|
259
259
|
encoding: US-ASCII
|
260
260
|
string: ''
|
@@ -271,7 +271,7 @@ http_interactions:
|
|
271
271
|
content-type:
|
272
272
|
- text/html; charset=utf-8
|
273
273
|
date:
|
274
|
-
-
|
274
|
+
- Thu, 28 Jun 2012 22:27:02 GMT
|
275
275
|
server:
|
276
276
|
- nginx/1.0.12
|
277
277
|
connection:
|
@@ -280,7 +280,7 @@ http_interactions:
|
|
280
280
|
encoding: US-ASCII
|
281
281
|
string: ''
|
282
282
|
http_version: '1.1'
|
283
|
-
recorded_at:
|
283
|
+
recorded_at: Thu, 28 Jun 2012 22:31:48 GMT
|
284
284
|
- request:
|
285
285
|
method: post
|
286
286
|
uri: https://bigml.io/andromeda/source
|
@@ -302,9 +302,9 @@ http_interactions:
|
|
302
302
|
content-type:
|
303
303
|
- application/json; charset=utf-8
|
304
304
|
date:
|
305
|
-
-
|
305
|
+
- Thu, 28 Jun 2012 22:29:38 GMT
|
306
306
|
location:
|
307
|
-
- http://bigml.io/andromeda/source/
|
307
|
+
- http://bigml.io/andromeda/source/4fecdb6715526875f800333a
|
308
308
|
server:
|
309
309
|
- nginx/1.0.12
|
310
310
|
content-length:
|
@@ -314,21 +314,21 @@ http_interactions:
|
|
314
314
|
body:
|
315
315
|
encoding: US-ASCII
|
316
316
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
317
|
-
"created": "2012-06-
|
317
|
+
"created": "2012-06-28T22:32:07.857541", "credits": 0.0, "description": "",
|
318
318
|
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
319
319
|
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
320
|
-
0, "private": true, "resource": "source/
|
320
|
+
0, "private": true, "resource": "source/4fecdb6715526875f800333a", "size":
|
321
321
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
322
322
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
323
|
-
"2012-06-
|
323
|
+
"2012-06-28T22:32:07.857562"}'
|
324
324
|
http_version: '1.1'
|
325
|
-
recorded_at:
|
325
|
+
recorded_at: Thu, 28 Jun 2012 22:31:51 GMT
|
326
326
|
- request:
|
327
327
|
method: post
|
328
328
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
329
329
|
body:
|
330
330
|
encoding: UTF-8
|
331
|
-
string: ! '{"source":"source/
|
331
|
+
string: ! '{"source":"source/4fecdb6715526875f800333a"}'
|
332
332
|
headers:
|
333
333
|
content-type:
|
334
334
|
- application/json
|
@@ -342,37 +342,37 @@ http_interactions:
|
|
342
342
|
content-type:
|
343
343
|
- application/json; charset=utf-8
|
344
344
|
date:
|
345
|
-
-
|
345
|
+
- Thu, 28 Jun 2012 22:27:07 GMT
|
346
346
|
location:
|
347
|
-
- http://bigml.io/andromeda/dataset/
|
347
|
+
- http://bigml.io/andromeda/dataset/4fecdb38035d0741f000337f
|
348
348
|
server:
|
349
349
|
- nginx/1.0.12
|
350
350
|
content-length:
|
351
|
-
- '
|
351
|
+
- '921'
|
352
352
|
connection:
|
353
353
|
- Close
|
354
354
|
body:
|
355
355
|
encoding: US-ASCII
|
356
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
357
|
-
"credits": 0.
|
356
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:31:20.783653",
|
357
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
358
358
|
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
359
359
|
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
360
360
|
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
361
361
|
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
362
362
|
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
363
363
|
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
364
|
-
true, "resource": "dataset/
|
365
|
-
"source": "source/
|
364
|
+
true, "resource": "dataset/4fecdb38035d0741f000337f", "rows": 0, "size": 4608,
|
365
|
+
"source": "source/4fecdb6715526875f800333a", "source_status": true, "status":
|
366
366
|
{"code": 1, "message": "The dataset is being processed and will be created
|
367
|
-
soon"}, "tags": [], "updated": "2012-06-
|
367
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:31:20.783685"}'
|
368
368
|
http_version: '1.1'
|
369
|
-
recorded_at:
|
369
|
+
recorded_at: Thu, 28 Jun 2012 22:31:53 GMT
|
370
370
|
- request:
|
371
371
|
method: post
|
372
372
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
373
373
|
body:
|
374
374
|
encoding: UTF-8
|
375
|
-
string: ! '{"dataset":"dataset/
|
375
|
+
string: ! '{"dataset":"dataset/4fecdb38035d0741f000337f"}'
|
376
376
|
headers:
|
377
377
|
content-type:
|
378
378
|
- application/json
|
@@ -386,33 +386,33 @@ http_interactions:
|
|
386
386
|
content-type:
|
387
387
|
- application/json; charset=utf-8
|
388
388
|
date:
|
389
|
-
-
|
389
|
+
- Thu, 28 Jun 2012 22:29:42 GMT
|
390
390
|
location:
|
391
|
-
- http://bigml.io/andromeda/model/
|
391
|
+
- http://bigml.io/andromeda/model/4fecdb3b035d0741f0003382
|
392
392
|
server:
|
393
393
|
- nginx/1.0.12
|
394
394
|
content-length:
|
395
|
-
- '
|
395
|
+
- '691'
|
396
396
|
connection:
|
397
397
|
- Close
|
398
398
|
body:
|
399
399
|
encoding: US-ASCII
|
400
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
401
|
-
"credits": 0.
|
400
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:31:23.288353",
|
401
|
+
"credits": 0.017578125, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
|
402
402
|
true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
|
403
403
|
"max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
404
404
|
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
405
|
-
"model/
|
405
|
+
"model/4fecdb3b035d0741f0003382", "rows": 150, "size": 4608, "source": "source/4fecdb6715526875f800333a",
|
406
406
|
"source_status": true, "status": {"code": 1, "message": "The model is being
|
407
|
-
processed and will be created soon"}, "tags": [], "updated": "2012-06-
|
407
|
+
processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:31:23.288374"}'
|
408
408
|
http_version: '1.1'
|
409
|
-
recorded_at:
|
409
|
+
recorded_at: Thu, 28 Jun 2012 22:31:56 GMT
|
410
410
|
- request:
|
411
411
|
method: post
|
412
412
|
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
413
413
|
body:
|
414
414
|
encoding: UTF-8
|
415
|
-
string: ! '{"model":"model/
|
415
|
+
string: ! '{"model":"model/4fecdb3b035d0741f0003382","input_data":{"000001":3}}'
|
416
416
|
headers:
|
417
417
|
content-type:
|
418
418
|
- application/json
|
@@ -426,9 +426,9 @@ http_interactions:
|
|
426
426
|
content-type:
|
427
427
|
- application/json; charset=utf-8
|
428
428
|
date:
|
429
|
-
-
|
429
|
+
- Thu, 28 Jun 2012 22:27:12 GMT
|
430
430
|
location:
|
431
|
-
- http://bigml.io/andromeda/prediction/
|
431
|
+
- http://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e
|
432
432
|
server:
|
433
433
|
- nginx/1.0.12
|
434
434
|
content-length:
|
@@ -437,27 +437,27 @@ http_interactions:
|
|
437
437
|
- Close
|
438
438
|
body:
|
439
439
|
encoding: US-ASCII
|
440
|
-
string: ! '{"category": 0, "code": 201, "created": "2012-06-
|
441
|
-
"credits": 0.01, "dataset": "dataset/
|
440
|
+
string: ! '{"category": 0, "code": 201, "created": "2012-06-28T22:32:14.791822",
|
441
|
+
"credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
|
442
442
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
443
443
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
444
444
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
445
445
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
446
446
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
447
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
447
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3b035d0741f0003382",
|
448
448
|
"model_status": true, "name": "Prediction for species", "objective_fields":
|
449
449
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
450
450
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
451
451
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
452
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
453
|
-
"source": "source/
|
452
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e",
|
453
|
+
"source": "source/4fecdb6715526875f800333a", "source_status": true, "status":
|
454
454
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
455
|
-
"2012-06-
|
455
|
+
"2012-06-28T22:32:14.791841"}'
|
456
456
|
http_version: '1.1'
|
457
|
-
recorded_at:
|
457
|
+
recorded_at: Thu, 28 Jun 2012 22:31:58 GMT
|
458
458
|
- request:
|
459
459
|
method: put
|
460
|
-
uri: https://bigml.io/andromeda/prediction/
|
460
|
+
uri: https://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e?username=<USERNAME>&api_key=<API_KEY>
|
461
461
|
body:
|
462
462
|
encoding: UTF-8
|
463
463
|
string: ! '{"name":"foo name"}'
|
@@ -474,7 +474,7 @@ http_interactions:
|
|
474
474
|
content-type:
|
475
475
|
- application/json; charset=utf-8
|
476
476
|
date:
|
477
|
-
-
|
477
|
+
- Thu, 28 Jun 2012 22:29:46 GMT
|
478
478
|
server:
|
479
479
|
- nginx/1.0.12
|
480
480
|
content-length:
|
@@ -483,26 +483,26 @@ http_interactions:
|
|
483
483
|
- Close
|
484
484
|
body:
|
485
485
|
encoding: US-ASCII
|
486
|
-
string: ! '{"category": 0, "code": 202, "created": "2012-06-
|
487
|
-
"credits": 0.01, "dataset": "dataset/
|
486
|
+
string: ! '{"category": 0, "code": 202, "created": "2012-06-28T22:32:14.791000",
|
487
|
+
"credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
|
488
488
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
489
489
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
490
490
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
491
491
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
492
492
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
493
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
493
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3b035d0741f0003382",
|
494
494
|
"model_status": true, "name": "foo name", "objective_fields": ["000004"],
|
495
495
|
"prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
|
496
496
|
[], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
|
497
497
|
{"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
|
498
|
-
[]}, "private": true, "resource": "prediction/
|
499
|
-
"source/
|
500
|
-
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-
|
498
|
+
[]}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e", "source":
|
499
|
+
"source/4fecdb6715526875f800333a", "source_status": true, "status": {"code":
|
500
|
+
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:32:16.219595"}'
|
501
501
|
http_version: '1.1'
|
502
|
-
recorded_at:
|
502
|
+
recorded_at: Thu, 28 Jun 2012 22:31:59 GMT
|
503
503
|
- request:
|
504
504
|
method: get
|
505
|
-
uri: https://bigml.io/andromeda/prediction/
|
505
|
+
uri: https://bigml.io/andromeda/prediction/4fecdb6e15526875f500331e?username=<USERNAME>&api_key=<API_KEY>
|
506
506
|
body:
|
507
507
|
encoding: US-ASCII
|
508
508
|
string: ''
|
@@ -517,7 +517,7 @@ http_interactions:
|
|
517
517
|
content-type:
|
518
518
|
- application/json; charset=utf-8
|
519
519
|
date:
|
520
|
-
-
|
520
|
+
- Thu, 28 Jun 2012 22:27:14 GMT
|
521
521
|
server:
|
522
522
|
- nginx/1.0.12
|
523
523
|
transfer-encoding:
|
@@ -526,21 +526,21 @@ http_interactions:
|
|
526
526
|
- Close
|
527
527
|
body:
|
528
528
|
encoding: US-ASCII
|
529
|
-
string: ! '{"category": 0, "code": 200, "created": "2012-06-
|
530
|
-
"credits": 0.01, "dataset": "dataset/
|
529
|
+
string: ! '{"category": 0, "code": 200, "created": "2012-06-28T22:32:14.791000",
|
530
|
+
"credits": 0.01, "dataset": "dataset/4fecdb38035d0741f000337f", "dataset_status":
|
531
531
|
true, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
|
532
532
|
"double", "name": "sepal width", "optype": "numeric", "preferred": true},
|
533
533
|
"000002": {"column_number": 2, "datatype": "double", "name": "petal length",
|
534
534
|
"optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
|
535
535
|
"string", "name": "species", "optype": "categorical", "preferred": true}},
|
536
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
536
|
+
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdb3b035d0741f0003382",
|
537
537
|
"model_status": true, "name": "foo name", "objective_fields": ["000004"],
|
538
538
|
"prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
|
539
539
|
[], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
|
540
540
|
{"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
|
541
|
-
[]}, "private": true, "resource": "prediction/
|
542
|
-
"source/
|
543
|
-
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-
|
541
|
+
[]}, "private": true, "resource": "prediction/4fecdb6e15526875f500331e", "source":
|
542
|
+
"source/4fecdb6715526875f800333a", "source_status": true, "status": {"code":
|
543
|
+
5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-28T22:32:16.219000"}'
|
544
544
|
http_version: '1.1'
|
545
|
-
recorded_at:
|
545
|
+
recorded_at: Thu, 28 Jun 2012 22:32:01 GMT
|
546
546
|
recorded_with: VCR 2.2.2
|