big_ml 0.1.1 → 0.1.2
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/README.md +2 -1
- data/big_ml.gemspec +1 -1
- data/lib/big_ml/util/client.rb +7 -2
- data/lib/big_ml/util/config.rb +7 -2
- data/lib/big_ml/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/units/client_spec.rb +37 -6
- data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +16 -95
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +69 -67
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +72 -71
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +104 -103
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +66 -65
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +148 -147
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +147 -146
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +83 -80
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +119 -74
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +36 -36
- data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +89 -87
- data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +101 -99
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml +91 -89
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +191 -200
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +109 -231
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +272 -252
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +126 -252
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +117 -113
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +158 -120
- data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +101 -56
- data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +96 -94
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +126 -124
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +147 -145
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +141 -139
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +159 -157
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +161 -159
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +145 -143
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +148 -146
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +75 -74
- data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +25 -24
- data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +32 -32
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +21 -21
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +48 -47
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -42
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +77 -76
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +78 -77
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +53 -51
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +52 -50
- data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +14 -14
- metadata +5 -5
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
5
|
+
uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -17,36 +17,37 @@ http_interactions:
|
|
17
17
|
content-type:
|
18
18
|
- application/json; charset=utf-8
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Sat, 14 Jul 2012 15:25:34 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '1293'
|
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-
|
32
|
-
0.0, "description": "", "fields": {"000000": {"column_number":
|
33
|
-
"sepal length", "optype": "numeric"}, "000001": {"column_number":
|
34
|
-
"sepal width", "optype": "numeric"}, "000002": {"column_number":
|
35
|
-
"petal length", "optype": "numeric"}, "000003": {"column_number":
|
36
|
-
"petal width", "optype": "numeric"}, "000004": {"column_number":
|
37
|
-
"species", "optype": "categorical"}}, "file_name": "iris.csv",
|
38
|
-
"
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
"
|
43
|
-
"
|
44
|
-
|
31
|
+
"application/octet-stream", "created": "2012-07-14T15:25:57.167000", "credits":
|
32
|
+
0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
|
33
|
+
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
34
|
+
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
35
|
+
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
36
|
+
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
37
|
+
4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
|
38
|
+
"md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
|
39
|
+
1, "number_of_models": 1, "number_of_predictions": 0, "private": true, "resource":
|
40
|
+
"source/50018f85035d0741ca00001f", "size": 4608, "source_parser": {"header":
|
41
|
+
true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
|
42
|
+
"-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
|
43
|
+
"NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
|
44
|
+
{"code": 5, "elapsed": 79, "message": "The source has been created"}, "tags":
|
45
|
+
[], "type": 0, "updated": "2012-07-14T15:26:03.367000"}]}'
|
45
46
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
47
|
+
recorded_at: Sat, 14 Jul 2012 15:26:37 GMT
|
47
48
|
- request:
|
48
49
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
50
|
+
uri: https://bigml.io/dev/andromeda/source/50018f85035d0741ca00001f?username=<USERNAME>&api_key=<API_KEY>
|
50
51
|
body:
|
51
52
|
encoding: US-ASCII
|
52
53
|
string: ''
|
@@ -63,7 +64,7 @@ http_interactions:
|
|
63
64
|
content-type:
|
64
65
|
- text/html; charset=utf-8
|
65
66
|
date:
|
66
|
-
-
|
67
|
+
- Sat, 14 Jul 2012 15:20:36 GMT
|
67
68
|
server:
|
68
69
|
- nginx/1.0.12
|
69
70
|
connection:
|
@@ -72,10 +73,10 @@ http_interactions:
|
|
72
73
|
encoding: US-ASCII
|
73
74
|
string: ''
|
74
75
|
http_version: '1.1'
|
75
|
-
recorded_at:
|
76
|
+
recorded_at: Sat, 14 Jul 2012 15:26:39 GMT
|
76
77
|
- request:
|
77
78
|
method: get
|
78
|
-
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
79
|
+
uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
79
80
|
body:
|
80
81
|
encoding: US-ASCII
|
81
82
|
string: ''
|
@@ -90,29 +91,29 @@ http_interactions:
|
|
90
91
|
content-type:
|
91
92
|
- application/json; charset=utf-8
|
92
93
|
date:
|
93
|
-
-
|
94
|
+
- Sat, 14 Jul 2012 15:25:38 GMT
|
94
95
|
server:
|
95
96
|
- nginx/1.0.12
|
96
|
-
|
97
|
-
-
|
97
|
+
transfer-encoding:
|
98
|
+
- chunked
|
98
99
|
connection:
|
99
100
|
- Close
|
100
101
|
body:
|
101
102
|
encoding: US-ASCII
|
102
103
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
103
104
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
104
|
-
"created": "2012-
|
105
|
-
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models":
|
106
|
-
0, "private": true, "resource": "dataset/
|
107
|
-
150, "size": 4608, "source": "source/
|
108
|
-
false, "status": {"bytes": 4608, "code": 5, "elapsed":
|
105
|
+
"created": "2012-07-14T15:25:58.758000", "credits": 0.00439453125, "description":
|
106
|
+
"", "dev": true, "locale": "en_US", "name": "iris'' dataset", "number_of_models":
|
107
|
+
1, "number_of_predictions": 0, "private": true, "resource": "dataset/50018f86035d07569600000b",
|
108
|
+
"rows": 150, "size": 4608, "source": "source/50018f85035d0741ca00001f", "source_status":
|
109
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 115, "field_errors":
|
109
110
|
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
-
150}, "tags": [], "updated": "2012-
|
111
|
+
150}, "tags": [], "updated": "2012-07-14T15:26:03.374000"}]}'
|
111
112
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
113
|
+
recorded_at: Sat, 14 Jul 2012 15:26:40 GMT
|
113
114
|
- request:
|
114
115
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
116
|
+
uri: https://bigml.io/dev/andromeda/dataset/50018f86035d07569600000b?username=<USERNAME>&api_key=<API_KEY>
|
116
117
|
body:
|
117
118
|
encoding: US-ASCII
|
118
119
|
string: ''
|
@@ -129,7 +130,7 @@ http_interactions:
|
|
129
130
|
content-type:
|
130
131
|
- text/html; charset=utf-8
|
131
132
|
date:
|
132
|
-
-
|
133
|
+
- Sat, 14 Jul 2012 15:20:40 GMT
|
133
134
|
server:
|
134
135
|
- nginx/1.0.12
|
135
136
|
connection:
|
@@ -138,10 +139,10 @@ http_interactions:
|
|
138
139
|
encoding: US-ASCII
|
139
140
|
string: ''
|
140
141
|
http_version: '1.1'
|
141
|
-
recorded_at:
|
142
|
+
recorded_at: Sat, 14 Jul 2012 15:26:43 GMT
|
142
143
|
- request:
|
143
144
|
method: get
|
144
|
-
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
145
|
+
uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
145
146
|
body:
|
146
147
|
encoding: US-ASCII
|
147
148
|
string: ''
|
@@ -156,31 +157,31 @@ http_interactions:
|
|
156
157
|
content-type:
|
157
158
|
- application/json; charset=utf-8
|
158
159
|
date:
|
159
|
-
-
|
160
|
+
- Sat, 14 Jul 2012 15:25:41 GMT
|
160
161
|
server:
|
161
162
|
- nginx/1.0.12
|
162
163
|
content-length:
|
163
|
-
- '
|
164
|
+
- '857'
|
164
165
|
connection:
|
165
166
|
- Close
|
166
167
|
body:
|
167
168
|
encoding: US-ASCII
|
168
169
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
169
170
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
170
|
-
"created": "2012-
|
171
|
-
"dataset/
|
172
|
-
"", "holdout": 0.0, "input_fields": ["000000", "000001", "000002",
|
173
|
-
"locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris''
|
174
|
-
model", "number_of_predictions": 0, "objective_fields": ["000004"],
|
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-
|
171
|
+
"created": "2012-07-14T15:27:04.667000", "credits": 0.017578125, "dataset":
|
172
|
+
"dataset/50018f86035d07569600000b", "dataset_status": false, "description":
|
173
|
+
"", "dev": true, "holdout": 0.0, "input_fields": ["000000", "000001", "000002",
|
174
|
+
"000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris''
|
175
|
+
dataset model", "number_of_predictions": 0, "objective_fields": ["000004"],
|
176
|
+
"private": true, "range": [1, 150], "resource": "model/50018fc81552681edf00002c",
|
177
|
+
"rows": 150, "size": 4608, "source": "source/50018f85035d0741ca00001f", "source_status":
|
178
|
+
false, "status": {"code": 5, "elapsed": 138, "message": "The model has been
|
179
|
+
created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:26:03.382000"}]}'
|
179
180
|
http_version: '1.1'
|
180
|
-
recorded_at:
|
181
|
+
recorded_at: Sat, 14 Jul 2012 15:26:44 GMT
|
181
182
|
- request:
|
182
183
|
method: delete
|
183
|
-
uri: https://bigml.io/andromeda/model/
|
184
|
+
uri: https://bigml.io/dev/andromeda/model/50018fc81552681edf00002c?username=<USERNAME>&api_key=<API_KEY>
|
184
185
|
body:
|
185
186
|
encoding: US-ASCII
|
186
187
|
string: ''
|
@@ -197,7 +198,7 @@ http_interactions:
|
|
197
198
|
content-type:
|
198
199
|
- text/html; charset=utf-8
|
199
200
|
date:
|
200
|
-
-
|
201
|
+
- Sat, 14 Jul 2012 15:20:44 GMT
|
201
202
|
server:
|
202
203
|
- nginx/1.0.12
|
203
204
|
connection:
|
@@ -206,10 +207,10 @@ http_interactions:
|
|
206
207
|
encoding: US-ASCII
|
207
208
|
string: ''
|
208
209
|
http_version: '1.1'
|
209
|
-
recorded_at:
|
210
|
+
recorded_at: Sat, 14 Jul 2012 15:26:47 GMT
|
210
211
|
- request:
|
211
212
|
method: get
|
212
|
-
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
213
|
+
uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
213
214
|
body:
|
214
215
|
encoding: US-ASCII
|
215
216
|
string: ''
|
@@ -224,11 +225,11 @@ http_interactions:
|
|
224
225
|
content-type:
|
225
226
|
- application/json; charset=utf-8
|
226
227
|
date:
|
227
|
-
-
|
228
|
+
- Sat, 14 Jul 2012 15:25:46 GMT
|
228
229
|
server:
|
229
230
|
- nginx/1.0.12
|
230
|
-
|
231
|
-
-
|
231
|
+
transfer-encoding:
|
232
|
+
- chunked
|
232
233
|
connection:
|
233
234
|
- Close
|
234
235
|
body:
|
@@ -236,10 +237,10 @@ http_interactions:
|
|
236
237
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
237
238
|
"total_count": 0}, "objects": []}'
|
238
239
|
http_version: '1.1'
|
239
|
-
recorded_at:
|
240
|
+
recorded_at: Sat, 14 Jul 2012 15:26:49 GMT
|
240
241
|
- request:
|
241
242
|
method: post
|
242
|
-
uri: https://bigml.io/andromeda/source
|
243
|
+
uri: https://bigml.io/dev/andromeda/source
|
243
244
|
body:
|
244
245
|
encoding: US-ASCII
|
245
246
|
string: ''
|
@@ -247,7 +248,7 @@ http_interactions:
|
|
247
248
|
content-type:
|
248
249
|
- multipart/form-data; boundary=-----------RubyMultipartPost
|
249
250
|
content-length:
|
250
|
-
- '
|
251
|
+
- '5149'
|
251
252
|
connection:
|
252
253
|
- close
|
253
254
|
response:
|
@@ -258,33 +259,33 @@ http_interactions:
|
|
258
259
|
content-type:
|
259
260
|
- application/json; charset=utf-8
|
260
261
|
date:
|
261
|
-
-
|
262
|
+
- Sat, 14 Jul 2012 15:20:48 GMT
|
262
263
|
location:
|
263
|
-
- http://bigml.io/andromeda/source/
|
264
|
+
- http://bigml.io/andromeda/source/50018fe01552681d6800003d
|
264
265
|
server:
|
265
266
|
- nginx/1.0.12
|
266
|
-
|
267
|
-
-
|
267
|
+
transfer-encoding:
|
268
|
+
- chunked
|
268
269
|
connection:
|
269
270
|
- Close
|
270
271
|
body:
|
271
272
|
encoding: US-ASCII
|
272
273
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
273
|
-
"created": "2012-
|
274
|
-
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
275
|
-
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
276
|
-
0, "private": true, "resource": "source/
|
274
|
+
"created": "2012-07-14T15:27:28.289973", "credits": 0.0, "description": "",
|
275
|
+
"dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
276
|
+
"name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
277
|
+
0, "private": true, "resource": "source/50018fe01552681d6800003d", "size":
|
277
278
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
278
279
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
279
|
-
"2012-
|
280
|
+
"2012-07-14T15:27:28.289995"}'
|
280
281
|
http_version: '1.1'
|
281
|
-
recorded_at:
|
282
|
+
recorded_at: Sat, 14 Jul 2012 15:26:51 GMT
|
282
283
|
- request:
|
283
284
|
method: post
|
284
|
-
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
285
|
+
uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
285
286
|
body:
|
286
287
|
encoding: UTF-8
|
287
|
-
string: ! '{"source":"source/
|
288
|
+
string: ! '{"source":"source/50018fe01552681d6800003d"}'
|
288
289
|
headers:
|
289
290
|
content-type:
|
290
291
|
- application/json
|
@@ -298,37 +299,37 @@ http_interactions:
|
|
298
299
|
content-type:
|
299
300
|
- application/json; charset=utf-8
|
300
301
|
date:
|
301
|
-
-
|
302
|
+
- Sat, 14 Jul 2012 15:25:50 GMT
|
302
303
|
location:
|
303
|
-
- http://bigml.io/andromeda/dataset/
|
304
|
+
- http://bigml.io/andromeda/dataset/50018fe21552681ee4000021
|
304
305
|
server:
|
305
306
|
- nginx/1.0.12
|
306
307
|
content-length:
|
307
|
-
- '
|
308
|
+
- '934'
|
308
309
|
connection:
|
309
310
|
- Close
|
310
311
|
body:
|
311
312
|
encoding: US-ASCII
|
312
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-
|
313
|
-
"credits": 0.00439453125, "description": "", "
|
314
|
-
0, "name": "sepal length", "optype": "numeric"}, "000001":
|
315
|
-
1, "name": "sepal width", "optype": "numeric"}, "000002":
|
316
|
-
2, "name": "petal length", "optype": "numeric"}, "000003":
|
317
|
-
3, "name": "petal width", "optype": "numeric"}, "000004":
|
318
|
-
4, "name": "species", "optype": "categorical"}}, "locale":
|
319
|
-
"iris'' dataset", "number_of_models": 0, "number_of_predictions":
|
320
|
-
true, "resource": "dataset/
|
321
|
-
"source": "source/
|
322
|
-
{"code": 1, "message": "The dataset is being processed and
|
323
|
-
soon"}, "tags": [], "updated": "2012-
|
313
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:27:30.076194",
|
314
|
+
"credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
|
315
|
+
{"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
|
316
|
+
{"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
|
317
|
+
{"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
|
318
|
+
{"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
|
319
|
+
{"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
|
320
|
+
"en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
|
321
|
+
0, "private": true, "resource": "dataset/50018fe21552681ee4000021", "rows":
|
322
|
+
0, "size": 4608, "source": "source/50018fe01552681d6800003d", "source_status":
|
323
|
+
true, "status": {"code": 1, "message": "The dataset is being processed and
|
324
|
+
will be created soon"}, "tags": [], "updated": "2012-07-14T15:27:30.076228"}'
|
324
325
|
http_version: '1.1'
|
325
|
-
recorded_at:
|
326
|
+
recorded_at: Sat, 14 Jul 2012 15:26:53 GMT
|
326
327
|
- request:
|
327
328
|
method: post
|
328
|
-
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
329
|
+
uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
329
330
|
body:
|
330
331
|
encoding: UTF-8
|
331
|
-
string: ! '{"dataset":"dataset/
|
332
|
+
string: ! '{"dataset":"dataset/50018fe21552681ee4000021"}'
|
332
333
|
headers:
|
333
334
|
content-type:
|
334
335
|
- application/json
|
@@ -342,33 +343,34 @@ http_interactions:
|
|
342
343
|
content-type:
|
343
344
|
- application/json; charset=utf-8
|
344
345
|
date:
|
345
|
-
-
|
346
|
+
- Sat, 14 Jul 2012 15:20:51 GMT
|
346
347
|
location:
|
347
|
-
- http://bigml.io/andromeda/model/
|
348
|
+
- http://bigml.io/andromeda/model/50018fa3035d07569b000008
|
348
349
|
server:
|
349
350
|
- nginx/1.0.12
|
350
351
|
content-length:
|
351
|
-
- '
|
352
|
+
- '704'
|
352
353
|
connection:
|
353
354
|
- Close
|
354
355
|
body:
|
355
356
|
encoding: US-ASCII
|
356
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-
|
357
|
-
"credits": 0.017578125, "dataset": "dataset/
|
358
|
-
true, "description": "", "holdout": 0.0, "input_fields": [],
|
359
|
-
"max_columns": 5, "max_rows": 150, "name": "iris'' dataset
|
360
|
-
|
361
|
-
"
|
362
|
-
"
|
363
|
-
|
357
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:26:27.577790",
|
358
|
+
"credits": 0.017578125, "dataset": "dataset/50018fe21552681ee4000021", "dataset_status":
|
359
|
+
true, "description": "", "dev": true, "holdout": 0.0, "input_fields": [],
|
360
|
+
"locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
|
361
|
+
model", "number_of_predictions": 0, "objective_fields": [], "private": true,
|
362
|
+
"range": [1, 150], "resource": "model/50018fa3035d07569b000008", "rows": 150,
|
363
|
+
"size": 4608, "source": "source/50018fe01552681d6800003d", "source_status":
|
364
|
+
true, "status": {"code": 1, "message": "The model is being processed and will
|
365
|
+
be created soon"}, "tags": [], "updated": "2012-07-14T15:26:27.577821"}'
|
364
366
|
http_version: '1.1'
|
365
|
-
recorded_at:
|
367
|
+
recorded_at: Sat, 14 Jul 2012 15:26:55 GMT
|
366
368
|
- request:
|
367
369
|
method: post
|
368
|
-
uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
370
|
+
uri: https://bigml.io/dev/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
|
369
371
|
body:
|
370
372
|
encoding: UTF-8
|
371
|
-
string: ! '{"model":"model/
|
373
|
+
string: ! '{"model":"model/50018fa3035d07569b000008","input_data":{"000001":3}}'
|
372
374
|
headers:
|
373
375
|
content-type:
|
374
376
|
- application/json
|
@@ -382,38 +384,38 @@ http_interactions:
|
|
382
384
|
content-type:
|
383
385
|
- application/json; charset=utf-8
|
384
386
|
date:
|
385
|
-
-
|
387
|
+
- Sat, 14 Jul 2012 15:25:53 GMT
|
386
388
|
location:
|
387
|
-
- http://bigml.io/andromeda/prediction/
|
389
|
+
- http://bigml.io/andromeda/prediction/50018fa5035d0741ca000021
|
388
390
|
server:
|
389
391
|
- nginx/1.0.12
|
390
392
|
content-length:
|
391
|
-
- '
|
393
|
+
- '1235'
|
392
394
|
connection:
|
393
395
|
- Close
|
394
396
|
body:
|
395
397
|
encoding: US-ASCII
|
396
|
-
string: ! '{"category": 0, "code": 201, "created": "2012-
|
397
|
-
"credits": 0.01, "dataset": "dataset/
|
398
|
-
true, "description": "", "fields": {"000001": {"column_number":
|
399
|
-
"double", "name": "sepal width", "optype": "numeric", "preferred":
|
400
|
-
"000002": {"column_number": 2, "datatype": "double", "name": "petal
|
401
|
-
"optype": "numeric", "preferred": true}, "000004": {"column_number":
|
402
|
-
"string", "name": "species", "optype": "categorical", "preferred":
|
403
|
-
"input_data": {"000001": 3}, "locale": "en_US", "model": "model/
|
398
|
+
string: ! '{"category": 0, "code": 201, "created": "2012-07-14T15:26:29.668234",
|
399
|
+
"credits": 0.01, "dataset": "dataset/50018fe21552681ee4000021", "dataset_status":
|
400
|
+
true, "description": "", "dev": true, "fields": {"000001": {"column_number":
|
401
|
+
1, "datatype": "double", "name": "sepal width", "optype": "numeric", "preferred":
|
402
|
+
true}, "000002": {"column_number": 2, "datatype": "double", "name": "petal
|
403
|
+
length", "optype": "numeric", "preferred": true}, "000004": {"column_number":
|
404
|
+
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
405
|
+
true}}, "input_data": {"000001": 3}, "locale": "en_US", "model": "model/50018fa3035d07569b000008",
|
404
406
|
"model_status": true, "name": "Prediction for species", "objective_fields":
|
405
407
|
["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
|
406
408
|
{"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
|
407
409
|
"value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
|
408
|
-
[], "unknown_fields": []}, "private": true, "resource": "prediction/
|
409
|
-
"source": "source/
|
410
|
+
[], "unknown_fields": []}, "private": true, "resource": "prediction/50018fa5035d0741ca000021",
|
411
|
+
"source": "source/50018fe01552681d6800003d", "source_status": true, "status":
|
410
412
|
{"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
|
411
|
-
"2012-
|
413
|
+
"2012-07-14T15:26:29.668259"}'
|
412
414
|
http_version: '1.1'
|
413
|
-
recorded_at:
|
415
|
+
recorded_at: Sat, 14 Jul 2012 15:26:56 GMT
|
414
416
|
- request:
|
415
417
|
method: delete
|
416
|
-
uri: https://bigml.io/andromeda/prediction/
|
418
|
+
uri: https://bigml.io/dev/andromeda/prediction/50018fa5035d0741ca000021?username=<USERNAME>&api_key=<API_KEY>
|
417
419
|
body:
|
418
420
|
encoding: US-ASCII
|
419
421
|
string: ''
|
@@ -430,7 +432,7 @@ http_interactions:
|
|
430
432
|
content-type:
|
431
433
|
- text/html; charset=utf-8
|
432
434
|
date:
|
433
|
-
-
|
435
|
+
- Sat, 14 Jul 2012 15:20:54 GMT
|
434
436
|
server:
|
435
437
|
- nginx/1.0.12
|
436
438
|
connection:
|
@@ -439,10 +441,10 @@ http_interactions:
|
|
439
441
|
encoding: US-ASCII
|
440
442
|
string: ''
|
441
443
|
http_version: '1.1'
|
442
|
-
recorded_at:
|
444
|
+
recorded_at: Sat, 14 Jul 2012 15:26:57 GMT
|
443
445
|
- request:
|
444
446
|
method: get
|
445
|
-
uri: https://bigml.io/andromeda/prediction/
|
447
|
+
uri: https://bigml.io/dev/andromeda/prediction/50018fa5035d0741ca000021?username=<USERNAME>&api_key=<API_KEY>
|
446
448
|
body:
|
447
449
|
encoding: US-ASCII
|
448
450
|
string: ''
|
@@ -457,7 +459,7 @@ http_interactions:
|
|
457
459
|
content-type:
|
458
460
|
- application/json; charset=utf-8
|
459
461
|
date:
|
460
|
-
-
|
462
|
+
- Sat, 14 Jul 2012 15:25:55 GMT
|
461
463
|
server:
|
462
464
|
- nginx/1.0.12
|
463
465
|
transfer-encoding:
|
@@ -467,8 +469,8 @@ http_interactions:
|
|
467
469
|
body:
|
468
470
|
encoding: US-ASCII
|
469
471
|
string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
|
470
|
-
an instance of ''Prediction'' which matched ''pk=
|
472
|
+
an instance of ''Prediction'' which matched ''pk=50018fa5035d0741ca000021''."],
|
471
473
|
"message": "Id does not exist"}}'
|
472
474
|
http_version: '1.1'
|
473
|
-
recorded_at:
|
475
|
+
recorded_at: Sat, 14 Jul 2012 15:26:58 GMT
|
474
476
|
recorded_with: VCR 2.2.2
|