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,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:23:06 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '3642'
|
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
|
-
"total_count":
|
31
|
-
"application/octet-stream", "created": "2012-06-
|
30
|
+
"total_count": 3}, "objects": [{"category": 0, "code": 200, "content_type":
|
31
|
+
"application/octet-stream", "created": "2012-06-28T22:27:13.381000", "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,77 @@ 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
|
-
0, "private": true, "resource": "source/
|
39
|
+
0, "private": true, "resource": "source/4fecda41035d0741f1003314", "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": 98, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:28:05.537000"},
|
45
|
+
{"category": 0, "code": 200, "content_type": "application/octet-stream", "created":
|
46
|
+
"2012-06-28T22:27:09.824000", "credits": 0.0, "description": "", "fields":
|
47
|
+
{"000000": {"column_number": 0, "name": "sepal length", "optype": "numeric"},
|
48
|
+
"000001": {"column_number": 1, "name": "sepal width", "optype": "numeric"},
|
49
|
+
"000002": {"column_number": 2, "name": "petal length", "optype": "numeric"},
|
50
|
+
"000003": {"column_number": 3, "name": "petal width", "optype": "numeric"},
|
51
|
+
"000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
|
52
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
53
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
54
|
+
0, "private": true, "resource": "source/4fecda3d15526875f8003324", "size":
|
55
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
56
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
57
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
58
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
|
59
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:27:04.008000"},
|
60
|
+
{"category": 0, "code": 200, "content_type": "application/octet-stream", "created":
|
61
|
+
"2012-06-28T22:26:48.297000", "credits": 0.0, "description": "", "fields":
|
62
|
+
{"000000": {"column_number": 0, "name": "sepal length", "optype": "numeric"},
|
63
|
+
"000001": {"column_number": 1, "name": "sepal width", "optype": "numeric"},
|
64
|
+
"000002": {"column_number": 2, "name": "petal length", "optype": "numeric"},
|
65
|
+
"000003": {"column_number": 3, "name": "petal width", "optype": "numeric"},
|
66
|
+
"000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
|
67
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
68
|
+
"iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
|
69
|
+
0, "private": true, "resource": "source/4fecda28035d0741ef00328a", "size":
|
70
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
71
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
72
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
73
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 75, "message": "The
|
74
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:27:57.247000"}]}'
|
75
|
+
http_version: '1.1'
|
76
|
+
recorded_at: Thu, 28 Jun 2012 22:27:52 GMT
|
77
|
+
- request:
|
78
|
+
method: delete
|
79
|
+
uri: https://bigml.io/andromeda/source/4fecda41035d0741f1003314?username=<USERNAME>&api_key=<API_KEY>
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ''
|
83
|
+
headers:
|
84
|
+
connection:
|
85
|
+
- close
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 400
|
89
|
+
message: BAD REQUEST
|
90
|
+
headers:
|
91
|
+
content-type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
date:
|
94
|
+
- Thu, 28 Jun 2012 22:25:41 GMT
|
95
|
+
server:
|
96
|
+
- nginx/1.0.12
|
97
|
+
content-length:
|
98
|
+
- '132'
|
99
|
+
connection:
|
100
|
+
- Close
|
101
|
+
body:
|
102
|
+
encoding: US-ASCII
|
103
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["This source is
|
104
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
45
105
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
106
|
+
recorded_at: Thu, 28 Jun 2012 22:27:54 GMT
|
47
107
|
- request:
|
48
108
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
109
|
+
uri: https://bigml.io/andromeda/source/4fecda3d15526875f8003324?username=<USERNAME>&api_key=<API_KEY>
|
50
110
|
body:
|
51
111
|
encoding: US-ASCII
|
52
112
|
string: ''
|
@@ -63,7 +123,7 @@ http_interactions:
|
|
63
123
|
content-type:
|
64
124
|
- text/html; charset=utf-8
|
65
125
|
date:
|
66
|
-
-
|
126
|
+
- Thu, 28 Jun 2012 22:23:10 GMT
|
67
127
|
server:
|
68
128
|
- nginx/1.0.12
|
69
129
|
connection:
|
@@ -72,7 +132,37 @@ http_interactions:
|
|
72
132
|
encoding: US-ASCII
|
73
133
|
string: ''
|
74
134
|
http_version: '1.1'
|
75
|
-
recorded_at:
|
135
|
+
recorded_at: Thu, 28 Jun 2012 22:27:56 GMT
|
136
|
+
- request:
|
137
|
+
method: delete
|
138
|
+
uri: https://bigml.io/andromeda/source/4fecda28035d0741ef00328a?username=<USERNAME>&api_key=<API_KEY>
|
139
|
+
body:
|
140
|
+
encoding: US-ASCII
|
141
|
+
string: ''
|
142
|
+
headers:
|
143
|
+
connection:
|
144
|
+
- close
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 400
|
148
|
+
message: BAD REQUEST
|
149
|
+
headers:
|
150
|
+
content-type:
|
151
|
+
- application/json; charset=utf-8
|
152
|
+
date:
|
153
|
+
- Thu, 28 Jun 2012 22:25:44 GMT
|
154
|
+
server:
|
155
|
+
- nginx/1.0.12
|
156
|
+
content-length:
|
157
|
+
- '132'
|
158
|
+
connection:
|
159
|
+
- Close
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["This source is
|
163
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
164
|
+
http_version: '1.1'
|
165
|
+
recorded_at: Thu, 28 Jun 2012 22:27:58 GMT
|
76
166
|
- request:
|
77
167
|
method: get
|
78
168
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
@@ -90,29 +180,67 @@ http_interactions:
|
|
90
180
|
content-type:
|
91
181
|
- application/json; charset=utf-8
|
92
182
|
date:
|
93
|
-
-
|
183
|
+
- Thu, 28 Jun 2012 22:23:12 GMT
|
94
184
|
server:
|
95
185
|
- nginx/1.0.12
|
96
186
|
content-length:
|
97
|
-
- '
|
187
|
+
- '1325'
|
98
188
|
connection:
|
99
189
|
- Close
|
100
190
|
body:
|
101
191
|
encoding: US-ASCII
|
102
192
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
103
|
-
"total_count":
|
104
|
-
"created": "2012-06-
|
193
|
+
"total_count": 2}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
194
|
+
"created": "2012-06-28T22:27:15.108000", "credits": 0.00439453125, "description":
|
105
195
|
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
|
106
|
-
0, "private": true, "resource": "dataset/
|
107
|
-
150, "size": 4608, "source": "source/
|
108
|
-
|
109
|
-
[], "message": "The
|
110
|
-
|
196
|
+
0, "private": true, "resource": "dataset/4fecda43035d0741ef003291", "rows":
|
197
|
+
150, "size": 4608, "source": "source/4fecda41035d0741f1003314", "source_status":
|
198
|
+
true, "status": {"bytes": 4608, "code": 4, "elapsed": 11548, "field_errors":
|
199
|
+
[], "message": "The summary is completed. Serializing", "row_format_errors":
|
200
|
+
[], "serialized_rows": 0}, "tags": [], "updated": "2012-06-28T22:27:21.608000"},
|
201
|
+
{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:26:50.501000",
|
202
|
+
"credits": 0.00439453125, "description": "", "locale": "en_US", "name": "iris''
|
203
|
+
dataset", "number_of_models": 0, "number_of_predictions": 0, "private": true,
|
204
|
+
"resource": "dataset/4fecda2a035d0741ef00328d", "rows": 150, "size": 4608,
|
205
|
+
"source": "source/4fecda28035d0741ef00328a", "source_status": true, "status":
|
206
|
+
{"bytes": 4608, "code": 4, "elapsed": 36138, "field_errors": [], "message":
|
207
|
+
"The summary is completed. Serializing", "row_format_errors": [], "serialized_rows":
|
208
|
+
0}, "tags": [], "updated": "2012-06-28T22:28:14.162000"}]}'
|
209
|
+
http_version: '1.1'
|
210
|
+
recorded_at: Thu, 28 Jun 2012 22:27:59 GMT
|
211
|
+
- request:
|
212
|
+
method: delete
|
213
|
+
uri: https://bigml.io/andromeda/dataset/4fecda43035d0741ef003291?username=<USERNAME>&api_key=<API_KEY>
|
214
|
+
body:
|
215
|
+
encoding: US-ASCII
|
216
|
+
string: ''
|
217
|
+
headers:
|
218
|
+
connection:
|
219
|
+
- close
|
220
|
+
response:
|
221
|
+
status:
|
222
|
+
code: 400
|
223
|
+
message: BAD REQUEST
|
224
|
+
headers:
|
225
|
+
content-type:
|
226
|
+
- application/json; charset=utf-8
|
227
|
+
date:
|
228
|
+
- Thu, 28 Jun 2012 22:25:48 GMT
|
229
|
+
server:
|
230
|
+
- nginx/1.0.12
|
231
|
+
content-length:
|
232
|
+
- '132'
|
233
|
+
connection:
|
234
|
+
- Close
|
235
|
+
body:
|
236
|
+
encoding: US-ASCII
|
237
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["The dataset is
|
238
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
111
239
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
240
|
+
recorded_at: Thu, 28 Jun 2012 22:28:01 GMT
|
113
241
|
- request:
|
114
242
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
243
|
+
uri: https://bigml.io/andromeda/dataset/4fecda2a035d0741ef00328d?username=<USERNAME>&api_key=<API_KEY>
|
116
244
|
body:
|
117
245
|
encoding: US-ASCII
|
118
246
|
string: ''
|
@@ -129,7 +257,7 @@ http_interactions:
|
|
129
257
|
content-type:
|
130
258
|
- text/html; charset=utf-8
|
131
259
|
date:
|
132
|
-
-
|
260
|
+
- Thu, 28 Jun 2012 22:23:17 GMT
|
133
261
|
server:
|
134
262
|
- nginx/1.0.12
|
135
263
|
connection:
|
@@ -138,7 +266,7 @@ http_interactions:
|
|
138
266
|
encoding: US-ASCII
|
139
267
|
string: ''
|
140
268
|
http_version: '1.1'
|
141
|
-
recorded_at:
|
269
|
+
recorded_at: Thu, 28 Jun 2012 22:28:04 GMT
|
142
270
|
- request:
|
143
271
|
method: get
|
144
272
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
@@ -156,31 +284,30 @@ http_interactions:
|
|
156
284
|
content-type:
|
157
285
|
- application/json; charset=utf-8
|
158
286
|
date:
|
159
|
-
-
|
287
|
+
- Thu, 28 Jun 2012 22:25:52 GMT
|
160
288
|
server:
|
161
289
|
- nginx/1.0.12
|
162
290
|
content-length:
|
163
|
-
- '
|
291
|
+
- '769'
|
164
292
|
connection:
|
165
293
|
- Close
|
166
294
|
body:
|
167
295
|
encoding: US-ASCII
|
168
296
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
169
297
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
170
|
-
"created": "2012-06-
|
171
|
-
"dataset/
|
172
|
-
"", "holdout": 0.0, "input_fields":
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:00.950000"}]}'
|
298
|
+
"created": "2012-06-28T22:28:05.532000", "credits": 0.017578125, "dataset":
|
299
|
+
"dataset/4fecda43035d0741ef003291", "dataset_status": true, "description":
|
300
|
+
"", "holdout": 0.0, "input_fields": null, "locale": "en-US", "max_columns":
|
301
|
+
5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
302
|
+
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
303
|
+
"model/4fecda7515526875f800332a", "rows": 150, "size": 4608, "source": "source/4fecda41035d0741f1003314",
|
304
|
+
"source_status": true, "status": {"code": 0, "message": "The dataset is not
|
305
|
+
ready yet"}, "tags": [], "updated": "2012-06-28T22:27:28.671000"}]}'
|
179
306
|
http_version: '1.1'
|
180
|
-
recorded_at:
|
307
|
+
recorded_at: Thu, 28 Jun 2012 22:28:05 GMT
|
181
308
|
- request:
|
182
309
|
method: delete
|
183
|
-
uri: https://bigml.io/andromeda/model/
|
310
|
+
uri: https://bigml.io/andromeda/model/4fecda7515526875f800332a?username=<USERNAME>&api_key=<API_KEY>
|
184
311
|
body:
|
185
312
|
encoding: US-ASCII
|
186
313
|
string: ''
|
@@ -197,7 +324,7 @@ http_interactions:
|
|
197
324
|
content-type:
|
198
325
|
- text/html; charset=utf-8
|
199
326
|
date:
|
200
|
-
-
|
327
|
+
- Thu, 28 Jun 2012 22:23:20 GMT
|
201
328
|
server:
|
202
329
|
- nginx/1.0.12
|
203
330
|
connection:
|
@@ -206,7 +333,7 @@ http_interactions:
|
|
206
333
|
encoding: US-ASCII
|
207
334
|
string: ''
|
208
335
|
http_version: '1.1'
|
209
|
-
recorded_at:
|
336
|
+
recorded_at: Thu, 28 Jun 2012 22:28:07 GMT
|
210
337
|
- request:
|
211
338
|
method: post
|
212
339
|
uri: https://bigml.io/andromeda/source
|
@@ -228,33 +355,33 @@ http_interactions:
|
|
228
355
|
content-type:
|
229
356
|
- application/json; charset=utf-8
|
230
357
|
date:
|
231
|
-
-
|
358
|
+
- Thu, 28 Jun 2012 22:25:55 GMT
|
232
359
|
location:
|
233
|
-
- http://bigml.io/andromeda/source/
|
360
|
+
- http://bigml.io/andromeda/source/4fecda58035d0741f40032a6
|
234
361
|
server:
|
235
362
|
- nginx/1.0.12
|
236
|
-
|
237
|
-
-
|
363
|
+
content-length:
|
364
|
+
- '567'
|
238
365
|
connection:
|
239
366
|
- Close
|
240
367
|
body:
|
241
368
|
encoding: US-ASCII
|
242
369
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
243
|
-
"created": "2012-06-
|
370
|
+
"created": "2012-06-28T22:27:36.418464", "credits": 0.0, "description": "",
|
244
371
|
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
245
372
|
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
246
|
-
0, "private": true, "resource": "source/
|
373
|
+
0, "private": true, "resource": "source/4fecda58035d0741f40032a6", "size":
|
247
374
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
248
375
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
249
|
-
"2012-06-
|
376
|
+
"2012-06-28T22:27:36.418499"}'
|
250
377
|
http_version: '1.1'
|
251
|
-
recorded_at:
|
378
|
+
recorded_at: Thu, 28 Jun 2012 22:28:09 GMT
|
252
379
|
- request:
|
253
380
|
method: post
|
254
381
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
255
382
|
body:
|
256
383
|
encoding: UTF-8
|
257
|
-
string: ! '{"source":"source/
|
384
|
+
string: ! '{"source":"source/4fecda58035d0741f40032a6"}'
|
258
385
|
headers:
|
259
386
|
content-type:
|
260
387
|
- application/json
|
@@ -268,37 +395,37 @@ http_interactions:
|
|
268
395
|
content-type:
|
269
396
|
- application/json; charset=utf-8
|
270
397
|
date:
|
271
|
-
-
|
398
|
+
- Thu, 28 Jun 2012 22:23:24 GMT
|
272
399
|
location:
|
273
|
-
- http://bigml.io/andromeda/dataset/
|
400
|
+
- http://bigml.io/andromeda/dataset/4fecda8a15526875f800332e
|
274
401
|
server:
|
275
402
|
- nginx/1.0.12
|
276
403
|
content-length:
|
277
|
-
- '
|
404
|
+
- '921'
|
278
405
|
connection:
|
279
406
|
- Close
|
280
407
|
body:
|
281
408
|
encoding: US-ASCII
|
282
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
283
|
-
"credits": 0.
|
409
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:28:26.926712",
|
410
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
284
411
|
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
285
412
|
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
286
413
|
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
287
414
|
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
288
415
|
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
289
416
|
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
290
|
-
true, "resource": "dataset/
|
291
|
-
"source": "source/
|
417
|
+
true, "resource": "dataset/4fecda8a15526875f800332e", "rows": 0, "size": 4608,
|
418
|
+
"source": "source/4fecda58035d0741f40032a6", "source_status": true, "status":
|
292
419
|
{"code": 1, "message": "The dataset is being processed and will be created
|
293
|
-
soon"}, "tags": [], "updated": "2012-06-
|
420
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:28:26.926729"}'
|
294
421
|
http_version: '1.1'
|
295
|
-
recorded_at:
|
422
|
+
recorded_at: Thu, 28 Jun 2012 22:28:11 GMT
|
296
423
|
- request:
|
297
424
|
method: post
|
298
425
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
299
426
|
body:
|
300
427
|
encoding: UTF-8
|
301
|
-
string: ! '{"dataset":"dataset/
|
428
|
+
string: ! '{"dataset":"dataset/4fecda8a15526875f800332e"}'
|
302
429
|
headers:
|
303
430
|
content-type:
|
304
431
|
- application/json
|
@@ -312,30 +439,31 @@ http_interactions:
|
|
312
439
|
content-type:
|
313
440
|
- application/json; charset=utf-8
|
314
441
|
date:
|
315
|
-
-
|
442
|
+
- Thu, 28 Jun 2012 22:26:00 GMT
|
316
443
|
location:
|
317
|
-
- http://bigml.io/andromeda/model/
|
444
|
+
- http://bigml.io/andromeda/model/4fecda8c15526875f8003331
|
318
445
|
server:
|
319
446
|
- nginx/1.0.12
|
320
447
|
content-length:
|
321
|
-
- '
|
448
|
+
- '705'
|
322
449
|
connection:
|
323
450
|
- Close
|
324
451
|
body:
|
325
452
|
encoding: US-ASCII
|
326
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
327
|
-
"credits": 0.
|
328
|
-
true, "description": "", "holdout": 0.0, "input_fields":
|
329
|
-
"max_columns": 5, "max_rows": 150, "
|
330
|
-
|
331
|
-
"
|
332
|
-
"
|
333
|
-
|
453
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:28:28.827881",
|
454
|
+
"credits": 0.017578125, "dataset": "dataset/4fecda8a15526875f800332e", "dataset_status":
|
455
|
+
true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
|
456
|
+
"max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
|
457
|
+
"iris'' dataset model", "number_of_predictions": 0, "objective_fields": [],
|
458
|
+
"private": true, "range": [1, 150], "resource": "model/4fecda8c15526875f8003331",
|
459
|
+
"rows": 150, "size": 4608, "source": "source/4fecda58035d0741f40032a6", "source_status":
|
460
|
+
true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
|
461
|
+
[], "updated": "2012-06-28T22:28:28.827912"}'
|
334
462
|
http_version: '1.1'
|
335
|
-
recorded_at:
|
463
|
+
recorded_at: Thu, 28 Jun 2012 22:28:13 GMT
|
336
464
|
- request:
|
337
465
|
method: put
|
338
|
-
uri: https://bigml.io/andromeda/model/
|
466
|
+
uri: https://bigml.io/andromeda/model/4fecda8c15526875f8003331?username=<USERNAME>&api_key=<API_KEY>
|
339
467
|
body:
|
340
468
|
encoding: UTF-8
|
341
469
|
string: ! '{"name":"foo name"}'
|
@@ -352,102 +480,29 @@ http_interactions:
|
|
352
480
|
content-type:
|
353
481
|
- application/json; charset=utf-8
|
354
482
|
date:
|
355
|
-
-
|
483
|
+
- Thu, 28 Jun 2012 22:23:28 GMT
|
356
484
|
server:
|
357
485
|
- nginx/1.0.12
|
358
486
|
content-length:
|
359
|
-
- '
|
487
|
+
- '694'
|
360
488
|
connection:
|
361
489
|
- Close
|
362
490
|
body:
|
363
491
|
encoding: US-ASCII
|
364
|
-
string: ! '{"category": 0, "code": 202, "columns": 5, "created": "2012-06-
|
365
|
-
"credits": 0.
|
366
|
-
true, "description": "", "holdout": 0.0, "input_fields":
|
367
|
-
"
|
368
|
-
"
|
369
|
-
"
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
|
374
|
-
6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum": 876.5, "sum_squares":
|
375
|
-
5223.85}}, "000001": {"column_number": 1, "datatype": "double", "name": "sepal
|
376
|
-
width", "optype": "numeric", "preferred": true, "summary": {"counts": [[2,
|
377
|
-
1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14],
|
378
|
-
[2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6,
|
379
|
-
4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
|
380
|
-
4.4, "median": 3.02044, "minimum": 2, "missing_count": 0, "population": 150,
|
381
|
-
"sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number": 2, "datatype":
|
382
|
-
"double", "name": "petal length", "optype": "numeric", "preferred": true,
|
383
|
-
"summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
384
|
-
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
385
|
-
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
386
|
-
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
387
|
-
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
388
|
-
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
389
|
-
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
390
|
-
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
391
|
-
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
392
|
-
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
393
|
-
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
394
|
-
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
395
|
-
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
396
|
-
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
397
|
-
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "kind": "stree", "locale":
|
398
|
-
"en_US", "missing_strategy": "last_prediction", "root": {"children": [{"children":
|
399
|
-
[{"children": [{"count": 38, "distribution": [["Iris-virginica", 38]], "leaf":
|
400
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
401
|
-
">", "value": 5.05}}, {"children": [{"children": [{"children": [{"count":
|
402
|
-
1, "distribution": [["Iris-versicolor", 1]], "leaf": true, "output": "Iris-versicolor",
|
403
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
404
|
-
2, "distribution": [["Iris-virginica", 2]], "leaf": true, "output": "Iris-virginica",
|
405
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
406
|
-
3, "distribution": [["Iris-virginica", 2], ["Iris-versicolor", 1]], "output":
|
407
|
-
"Iris-virginica", "predicate": {"field": "000000", "operator": ">", "value":
|
408
|
-
5.95}}, {"count": 1, "distribution": [["Iris-versicolor", 1]], "leaf": true,
|
409
|
-
"output": "Iris-versicolor", "predicate": {"field": "000000", "operator":
|
410
|
-
"<=", "value": 5.95}}], "count": 4, "distribution": [["Iris-virginica", 2],
|
411
|
-
["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
412
|
-
"000001", "operator": ">", "value": 2.9}}, {"count": 6, "distribution": [["Iris-virginica",
|
413
|
-
6]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
414
|
-
"operator": "<=", "value": 2.9}}], "count": 10, "distribution": [["Iris-virginica",
|
415
|
-
8], ["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
416
|
-
"000002", "operator": "<=", "value": 5.05}}], "count": 48, "distribution":
|
417
|
-
[["Iris-virginica", 46], ["Iris-versicolor", 2]], "output": "Iris-virginica",
|
418
|
-
"predicate": {"field": "000003", "operator": ">", "value": 1.65}}, {"children":
|
419
|
-
[{"children": [{"count": 3, "distribution": [["Iris-virginica", 3]], "leaf":
|
420
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000000", "operator":
|
421
|
-
">", "value": 6.05}}, {"children": [{"count": 1, "distribution": [["Iris-versicolor",
|
422
|
-
1]], "leaf": true, "output": "Iris-versicolor", "predicate": {"field": "000001",
|
423
|
-
"operator": ">", "value": 2.45}}, {"count": 1, "distribution": [["Iris-virginica",
|
424
|
-
1]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
425
|
-
"operator": "<=", "value": 2.45}}], "count": 2, "distribution": [["Iris-virginica",
|
426
|
-
1], ["Iris-versicolor", 1]], "output": "Iris-virginica", "predicate": {"field":
|
427
|
-
"000000", "operator": "<=", "value": 6.05}}], "count": 5, "distribution":
|
428
|
-
[["Iris-virginica", 4], ["Iris-versicolor", 1]], "output": "Iris-virginica",
|
429
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
430
|
-
47, "distribution": [["Iris-versicolor", 47]], "leaf": true, "output": "Iris-versicolor",
|
431
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
432
|
-
52, "distribution": [["Iris-virginica", 4], ["Iris-versicolor", 48]], "output":
|
433
|
-
"Iris-versicolor", "predicate": {"field": "000003", "operator": "<=", "value":
|
434
|
-
1.65}}], "count": 100, "distribution": [["Iris-virginica", 50], ["Iris-versicolor",
|
435
|
-
50]], "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
436
|
-
">", "value": 2.45}}, {"count": 50, "distribution": [["Iris-setosa", 50]],
|
437
|
-
"leaf": true, "output": "Iris-setosa", "predicate": {"field": "000002", "operator":
|
438
|
-
"<=", "value": 2.45}}], "count": 150, "distribution": [["Iris-virginica",
|
439
|
-
50], ["Iris-versicolor", 50], ["Iris-setosa", 50]], "output": "Iris-virginica",
|
440
|
-
"predicate": true}, "row_range": {"size": 150, "start": 0}}, "name": "foo
|
441
|
-
name", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
|
442
|
-
true, "range": [1, 150], "resource": "model/4fe14a701552687d4500014f", "rows":
|
443
|
-
150, "size": 4608, "source": "source/4fe14a51035d074a21000148", "source_status":
|
444
|
-
true, "status": {"code": 5, "elapsed": 147, "message": "The model has been
|
445
|
-
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:41.915123"}'
|
492
|
+
string: ! '{"category": 0, "code": 202, "columns": 5, "created": "2012-06-28T22:28:28.827000",
|
493
|
+
"credits": 0.017578125, "dataset": "dataset/4fecda8a15526875f800332e", "dataset_status":
|
494
|
+
true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
|
495
|
+
"max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
|
496
|
+
"foo name", "number_of_predictions": 0, "objective_fields": [], "private":
|
497
|
+
true, "range": [1, 150], "resource": "model/4fecda8c15526875f8003331", "rows":
|
498
|
+
150, "size": 4608, "source": "source/4fecda58035d0741f40032a6", "source_status":
|
499
|
+
true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
|
500
|
+
[], "updated": "2012-06-28T22:27:41.952942"}'
|
446
501
|
http_version: '1.1'
|
447
|
-
recorded_at:
|
502
|
+
recorded_at: Thu, 28 Jun 2012 22:28:14 GMT
|
448
503
|
- request:
|
449
504
|
method: get
|
450
|
-
uri: https://bigml.io/andromeda/model/
|
505
|
+
uri: https://bigml.io/andromeda/model/4fecda8c15526875f8003331?username=<USERNAME>&api_key=<API_KEY>
|
451
506
|
body:
|
452
507
|
encoding: US-ASCII
|
453
508
|
string: ''
|
@@ -462,97 +517,24 @@ http_interactions:
|
|
462
517
|
content-type:
|
463
518
|
- application/json; charset=utf-8
|
464
519
|
date:
|
465
|
-
-
|
520
|
+
- Thu, 28 Jun 2012 22:26:02 GMT
|
466
521
|
server:
|
467
522
|
- nginx/1.0.12
|
468
|
-
|
469
|
-
-
|
523
|
+
content-length:
|
524
|
+
- '694'
|
470
525
|
connection:
|
471
526
|
- Close
|
472
527
|
body:
|
473
528
|
encoding: US-ASCII
|
474
|
-
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-
|
475
|
-
"credits": 0.
|
476
|
-
true, "description": "", "holdout": 0.0, "input_fields":
|
477
|
-
"
|
478
|
-
"
|
479
|
-
"
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
|
484
|
-
6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum": 876.5, "sum_squares":
|
485
|
-
5223.85}}, "000001": {"column_number": 1, "datatype": "double", "name": "sepal
|
486
|
-
width", "optype": "numeric", "preferred": true, "summary": {"counts": [[2,
|
487
|
-
1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14],
|
488
|
-
[2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6,
|
489
|
-
4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
|
490
|
-
4.4, "median": 3.02044, "minimum": 2, "missing_count": 0, "population": 150,
|
491
|
-
"sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number": 2, "datatype":
|
492
|
-
"double", "name": "petal length", "optype": "numeric", "preferred": true,
|
493
|
-
"summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
494
|
-
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
495
|
-
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
496
|
-
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
497
|
-
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
498
|
-
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
499
|
-
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
500
|
-
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
501
|
-
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
502
|
-
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
503
|
-
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
504
|
-
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
505
|
-
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
506
|
-
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
507
|
-
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "kind": "stree", "locale":
|
508
|
-
"en_US", "missing_strategy": "last_prediction", "root": {"children": [{"children":
|
509
|
-
[{"children": [{"count": 38, "distribution": [["Iris-virginica", 38]], "leaf":
|
510
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
511
|
-
">", "value": 5.05}}, {"children": [{"children": [{"children": [{"count":
|
512
|
-
1, "distribution": [["Iris-versicolor", 1]], "leaf": true, "output": "Iris-versicolor",
|
513
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
514
|
-
2, "distribution": [["Iris-virginica", 2]], "leaf": true, "output": "Iris-virginica",
|
515
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
516
|
-
3, "distribution": [["Iris-virginica", 2], ["Iris-versicolor", 1]], "output":
|
517
|
-
"Iris-virginica", "predicate": {"field": "000000", "operator": ">", "value":
|
518
|
-
5.95}}, {"count": 1, "distribution": [["Iris-versicolor", 1]], "leaf": true,
|
519
|
-
"output": "Iris-versicolor", "predicate": {"field": "000000", "operator":
|
520
|
-
"<=", "value": 5.95}}], "count": 4, "distribution": [["Iris-virginica", 2],
|
521
|
-
["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
522
|
-
"000001", "operator": ">", "value": 2.9}}, {"count": 6, "distribution": [["Iris-virginica",
|
523
|
-
6]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
524
|
-
"operator": "<=", "value": 2.9}}], "count": 10, "distribution": [["Iris-virginica",
|
525
|
-
8], ["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
526
|
-
"000002", "operator": "<=", "value": 5.05}}], "count": 48, "distribution":
|
527
|
-
[["Iris-virginica", 46], ["Iris-versicolor", 2]], "output": "Iris-virginica",
|
528
|
-
"predicate": {"field": "000003", "operator": ">", "value": 1.65}}, {"children":
|
529
|
-
[{"children": [{"count": 3, "distribution": [["Iris-virginica", 3]], "leaf":
|
530
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000000", "operator":
|
531
|
-
">", "value": 6.05}}, {"children": [{"count": 1, "distribution": [["Iris-versicolor",
|
532
|
-
1]], "leaf": true, "output": "Iris-versicolor", "predicate": {"field": "000001",
|
533
|
-
"operator": ">", "value": 2.45}}, {"count": 1, "distribution": [["Iris-virginica",
|
534
|
-
1]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
535
|
-
"operator": "<=", "value": 2.45}}], "count": 2, "distribution": [["Iris-virginica",
|
536
|
-
1], ["Iris-versicolor", 1]], "output": "Iris-virginica", "predicate": {"field":
|
537
|
-
"000000", "operator": "<=", "value": 6.05}}], "count": 5, "distribution":
|
538
|
-
[["Iris-virginica", 4], ["Iris-versicolor", 1]], "output": "Iris-virginica",
|
539
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
540
|
-
47, "distribution": [["Iris-versicolor", 47]], "leaf": true, "output": "Iris-versicolor",
|
541
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
542
|
-
52, "distribution": [["Iris-virginica", 4], ["Iris-versicolor", 48]], "output":
|
543
|
-
"Iris-versicolor", "predicate": {"field": "000003", "operator": "<=", "value":
|
544
|
-
1.65}}], "count": 100, "distribution": [["Iris-virginica", 50], ["Iris-versicolor",
|
545
|
-
50]], "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
546
|
-
">", "value": 2.45}}, {"count": 50, "distribution": [["Iris-setosa", 50]],
|
547
|
-
"leaf": true, "output": "Iris-setosa", "predicate": {"field": "000002", "operator":
|
548
|
-
"<=", "value": 2.45}}], "count": 150, "distribution": [["Iris-virginica",
|
549
|
-
50], ["Iris-versicolor", 50], ["Iris-setosa", 50]], "output": "Iris-virginica",
|
550
|
-
"predicate": true}, "row_range": {"size": 150, "start": 0}}, "name": "foo
|
551
|
-
name", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
|
552
|
-
true, "range": [1, 150], "resource": "model/4fe14a701552687d4500014f", "rows":
|
553
|
-
150, "size": 4608, "source": "source/4fe14a51035d074a21000148", "source_status":
|
554
|
-
true, "status": {"code": 5, "elapsed": 147, "message": "The model has been
|
555
|
-
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:41.982000"}'
|
529
|
+
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:28:28.827000",
|
530
|
+
"credits": 0.017578125, "dataset": "dataset/4fecda8a15526875f800332e", "dataset_status":
|
531
|
+
true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
|
532
|
+
"max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
|
533
|
+
"foo name", "number_of_predictions": 0, "objective_fields": [], "private":
|
534
|
+
true, "range": [1, 150], "resource": "model/4fecda8c15526875f8003331", "rows":
|
535
|
+
150, "size": 4608, "source": "source/4fecda58035d0741f40032a6", "source_status":
|
536
|
+
true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
|
537
|
+
[], "updated": "2012-06-28T22:27:42.112000"}'
|
556
538
|
http_version: '1.1'
|
557
|
-
recorded_at:
|
539
|
+
recorded_at: Thu, 28 Jun 2012 22:28:15 GMT
|
558
540
|
recorded_with: VCR 2.2.2
|