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
data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml
CHANGED
@@ -17,36 +17,51 @@ http_interactions:
|
|
17
17
|
content-type:
|
18
18
|
- application/json; charset=utf-8
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 28 Jun 2012 22:22:42 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
23
|
content-length:
|
24
|
-
- '
|
24
|
+
- '2461'
|
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": 2}, "objects": [{"category": 0, "code": 200, "content_type":
|
31
|
+
"application/octet-stream", "created": "2012-06-28T22:27:09.824000", "credits":
|
32
32
|
0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
|
33
33
|
"sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
|
34
34
|
"sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
|
35
35
|
"petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
|
36
36
|
"petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
|
37
37
|
"species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
38
|
-
"name": "iris.csv", "number_of_datasets": 1, "number_of_models":
|
39
|
-
0, "private": true, "resource": "source/
|
38
|
+
"name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
|
39
|
+
0, "private": true, "resource": "source/4fecda3d15526875f8003324", "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
43
|
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
|
44
|
-
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:27:29.364000"},
|
45
|
+
{"category": 0, "code": 200, "content_type": "application/octet-stream", "created":
|
46
|
+
"2012-06-28T22:26:48.297000", "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": 1, "number_of_models": 1, "number_of_predictions":
|
54
|
+
0, "private": true, "resource": "source/4fecda28035d0741ef00328a", "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": 75, "message": "The
|
59
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:27:41.622000"}]}'
|
45
60
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
61
|
+
recorded_at: Thu, 28 Jun 2012 22:27:29 GMT
|
47
62
|
- request:
|
48
63
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
64
|
+
uri: https://bigml.io/andromeda/source/4fecda3d15526875f8003324?username=<USERNAME>&api_key=<API_KEY>
|
50
65
|
body:
|
51
66
|
encoding: US-ASCII
|
52
67
|
string: ''
|
@@ -55,24 +70,55 @@ http_interactions:
|
|
55
70
|
- close
|
56
71
|
response:
|
57
72
|
status:
|
58
|
-
code:
|
59
|
-
message:
|
73
|
+
code: 400
|
74
|
+
message: BAD REQUEST
|
60
75
|
headers:
|
61
|
-
content-length:
|
62
|
-
- '0'
|
63
76
|
content-type:
|
64
|
-
-
|
77
|
+
- application/json; charset=utf-8
|
65
78
|
date:
|
66
|
-
-
|
79
|
+
- Thu, 28 Jun 2012 22:25:18 GMT
|
67
80
|
server:
|
68
81
|
- nginx/1.0.12
|
82
|
+
content-length:
|
83
|
+
- '132'
|
69
84
|
connection:
|
70
85
|
- Close
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["This source is
|
89
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
90
|
+
http_version: '1.1'
|
91
|
+
recorded_at: Thu, 28 Jun 2012 22:27:31 GMT
|
92
|
+
- request:
|
93
|
+
method: delete
|
94
|
+
uri: https://bigml.io/andromeda/source/4fecda28035d0741ef00328a?username=<USERNAME>&api_key=<API_KEY>
|
71
95
|
body:
|
72
96
|
encoding: US-ASCII
|
73
97
|
string: ''
|
98
|
+
headers:
|
99
|
+
connection:
|
100
|
+
- close
|
101
|
+
response:
|
102
|
+
status:
|
103
|
+
code: 400
|
104
|
+
message: BAD REQUEST
|
105
|
+
headers:
|
106
|
+
content-type:
|
107
|
+
- application/json; charset=utf-8
|
108
|
+
date:
|
109
|
+
- Thu, 28 Jun 2012 22:22:47 GMT
|
110
|
+
server:
|
111
|
+
- nginx/1.0.12
|
112
|
+
content-length:
|
113
|
+
- '132'
|
114
|
+
connection:
|
115
|
+
- Close
|
116
|
+
body:
|
117
|
+
encoding: US-ASCII
|
118
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["This source is
|
119
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
74
120
|
http_version: '1.1'
|
75
|
-
recorded_at:
|
121
|
+
recorded_at: Thu, 28 Jun 2012 22:27:34 GMT
|
76
122
|
- request:
|
77
123
|
method: get
|
78
124
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
@@ -90,29 +136,37 @@ http_interactions:
|
|
90
136
|
content-type:
|
91
137
|
- application/json; charset=utf-8
|
92
138
|
date:
|
93
|
-
-
|
139
|
+
- Thu, 28 Jun 2012 22:25:22 GMT
|
94
140
|
server:
|
95
141
|
- nginx/1.0.12
|
96
142
|
content-length:
|
97
|
-
- '
|
143
|
+
- '1325'
|
98
144
|
connection:
|
99
145
|
- Close
|
100
146
|
body:
|
101
147
|
encoding: US-ASCII
|
102
148
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
103
|
-
"total_count":
|
104
|
-
"created": "2012-06-
|
105
|
-
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models":
|
106
|
-
0, "private": true, "resource": "dataset/
|
107
|
-
150, "size": 4608, "source": "source/
|
108
|
-
|
109
|
-
[], "message": "The
|
110
|
-
|
149
|
+
"total_count": 2}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
150
|
+
"created": "2012-06-28T22:27:11.525000", "credits": 0.00439453125, "description":
|
151
|
+
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
|
152
|
+
0, "private": true, "resource": "dataset/4fecda3f15526875f8003327", "rows":
|
153
|
+
150, "size": 4608, "source": "source/4fecda3d15526875f8003324", "source_status":
|
154
|
+
true, "status": {"bytes": 4608, "code": 4, "elapsed": 39811, "field_errors":
|
155
|
+
[], "message": "The summary is completed. Serializing", "row_format_errors":
|
156
|
+
[], "serialized_rows": 0}, "tags": [], "updated": "2012-06-28T22:26:58.595000"},
|
157
|
+
{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:26:50.501000",
|
158
|
+
"credits": 0.00439453125, "description": "", "locale": "en_US", "name": "iris''
|
159
|
+
dataset", "number_of_models": 1, "number_of_predictions": 0, "private": true,
|
160
|
+
"resource": "dataset/4fecda2a035d0741ef00328d", "rows": 150, "size": 4608,
|
161
|
+
"source": "source/4fecda28035d0741ef00328a", "source_status": true, "status":
|
162
|
+
{"bytes": 4608, "code": 4, "elapsed": 12008, "field_errors": [], "message":
|
163
|
+
"The summary is completed. Serializing", "row_format_errors": [], "serialized_rows":
|
164
|
+
0}, "tags": [], "updated": "2012-06-28T22:27:49.836000"}]}'
|
111
165
|
http_version: '1.1'
|
112
|
-
recorded_at:
|
166
|
+
recorded_at: Thu, 28 Jun 2012 22:27:35 GMT
|
113
167
|
- request:
|
114
168
|
method: delete
|
115
|
-
uri: https://bigml.io/andromeda/dataset/
|
169
|
+
uri: https://bigml.io/andromeda/dataset/4fecda3f15526875f8003327?username=<USERNAME>&api_key=<API_KEY>
|
116
170
|
body:
|
117
171
|
encoding: US-ASCII
|
118
172
|
string: ''
|
@@ -129,7 +183,7 @@ http_interactions:
|
|
129
183
|
content-type:
|
130
184
|
- text/html; charset=utf-8
|
131
185
|
date:
|
132
|
-
-
|
186
|
+
- Thu, 28 Jun 2012 22:22:50 GMT
|
133
187
|
server:
|
134
188
|
- nginx/1.0.12
|
135
189
|
connection:
|
@@ -138,7 +192,37 @@ http_interactions:
|
|
138
192
|
encoding: US-ASCII
|
139
193
|
string: ''
|
140
194
|
http_version: '1.1'
|
141
|
-
recorded_at:
|
195
|
+
recorded_at: Thu, 28 Jun 2012 22:27:36 GMT
|
196
|
+
- request:
|
197
|
+
method: delete
|
198
|
+
uri: https://bigml.io/andromeda/dataset/4fecda2a035d0741ef00328d?username=<USERNAME>&api_key=<API_KEY>
|
199
|
+
body:
|
200
|
+
encoding: US-ASCII
|
201
|
+
string: ''
|
202
|
+
headers:
|
203
|
+
connection:
|
204
|
+
- close
|
205
|
+
response:
|
206
|
+
status:
|
207
|
+
code: 400
|
208
|
+
message: BAD REQUEST
|
209
|
+
headers:
|
210
|
+
content-type:
|
211
|
+
- application/json; charset=utf-8
|
212
|
+
date:
|
213
|
+
- Thu, 28 Jun 2012 22:25:25 GMT
|
214
|
+
server:
|
215
|
+
- nginx/1.0.12
|
216
|
+
content-length:
|
217
|
+
- '132'
|
218
|
+
connection:
|
219
|
+
- Close
|
220
|
+
body:
|
221
|
+
encoding: US-ASCII
|
222
|
+
string: ! '{"code": 400, "status": {"code": -1204, "extra": ["The dataset is
|
223
|
+
being used and cannot be deleted now"], "message": "Bad request"}}'
|
224
|
+
http_version: '1.1'
|
225
|
+
recorded_at: Thu, 28 Jun 2012 22:27:38 GMT
|
142
226
|
- request:
|
143
227
|
method: get
|
144
228
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
@@ -156,31 +240,30 @@ http_interactions:
|
|
156
240
|
content-type:
|
157
241
|
- application/json; charset=utf-8
|
158
242
|
date:
|
159
|
-
-
|
243
|
+
- Thu, 28 Jun 2012 22:22:53 GMT
|
160
244
|
server:
|
161
245
|
- nginx/1.0.12
|
162
246
|
content-length:
|
163
|
-
- '
|
247
|
+
- '769'
|
164
248
|
connection:
|
165
249
|
- Close
|
166
250
|
body:
|
167
251
|
encoding: US-ASCII
|
168
252
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
169
253
|
"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:16.012000"}]}'
|
254
|
+
"created": "2012-06-28T22:27:41.617000", "credits": 0.017578125, "dataset":
|
255
|
+
"dataset/4fecda2a035d0741ef00328d", "dataset_status": true, "description":
|
256
|
+
"", "holdout": 0.0, "input_fields": null, "locale": "en-US", "max_columns":
|
257
|
+
5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
258
|
+
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
259
|
+
"model/4fecda5d15526875f50032f9", "rows": 150, "size": 4608, "source": "source/4fecda28035d0741ef00328a",
|
260
|
+
"source_status": true, "status": {"code": 0, "message": "The dataset is not
|
261
|
+
ready yet"}, "tags": [], "updated": "2012-06-28T22:27:05.830000"}]}'
|
179
262
|
http_version: '1.1'
|
180
|
-
recorded_at:
|
263
|
+
recorded_at: Thu, 28 Jun 2012 22:27:39 GMT
|
181
264
|
- request:
|
182
265
|
method: delete
|
183
|
-
uri: https://bigml.io/andromeda/model/
|
266
|
+
uri: https://bigml.io/andromeda/model/4fecda5d15526875f50032f9?username=<USERNAME>&api_key=<API_KEY>
|
184
267
|
body:
|
185
268
|
encoding: US-ASCII
|
186
269
|
string: ''
|
@@ -197,7 +280,7 @@ http_interactions:
|
|
197
280
|
content-type:
|
198
281
|
- text/html; charset=utf-8
|
199
282
|
date:
|
200
|
-
-
|
283
|
+
- Thu, 28 Jun 2012 22:25:30 GMT
|
201
284
|
server:
|
202
285
|
- nginx/1.0.12
|
203
286
|
connection:
|
@@ -206,7 +289,7 @@ http_interactions:
|
|
206
289
|
encoding: US-ASCII
|
207
290
|
string: ''
|
208
291
|
http_version: '1.1'
|
209
|
-
recorded_at:
|
292
|
+
recorded_at: Thu, 28 Jun 2012 22:27:43 GMT
|
210
293
|
- request:
|
211
294
|
method: post
|
212
295
|
uri: https://bigml.io/andromeda/source
|
@@ -228,9 +311,9 @@ http_interactions:
|
|
228
311
|
content-type:
|
229
312
|
- application/json; charset=utf-8
|
230
313
|
date:
|
231
|
-
-
|
314
|
+
- Thu, 28 Jun 2012 22:22:59 GMT
|
232
315
|
location:
|
233
|
-
- http://bigml.io/andromeda/source/
|
316
|
+
- http://bigml.io/andromeda/source/4fecda41035d0741f1003314
|
234
317
|
server:
|
235
318
|
- nginx/1.0.12
|
236
319
|
content-length:
|
@@ -240,21 +323,21 @@ http_interactions:
|
|
240
323
|
body:
|
241
324
|
encoding: US-ASCII
|
242
325
|
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
243
|
-
"created": "2012-06-
|
326
|
+
"created": "2012-06-28T22:27:13.381642", "credits": 0.0, "description": "",
|
244
327
|
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
245
328
|
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
246
|
-
0, "private": true, "resource": "source/
|
329
|
+
0, "private": true, "resource": "source/4fecda41035d0741f1003314", "size":
|
247
330
|
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
248
331
|
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
249
|
-
"2012-06-
|
332
|
+
"2012-06-28T22:27:13.381663"}'
|
250
333
|
http_version: '1.1'
|
251
|
-
recorded_at:
|
334
|
+
recorded_at: Thu, 28 Jun 2012 22:27:46 GMT
|
252
335
|
- request:
|
253
336
|
method: post
|
254
337
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
255
338
|
body:
|
256
339
|
encoding: UTF-8
|
257
|
-
string: ! '{"source":"source/
|
340
|
+
string: ! '{"source":"source/4fecda41035d0741f1003314"}'
|
258
341
|
headers:
|
259
342
|
content-type:
|
260
343
|
- application/json
|
@@ -268,37 +351,37 @@ http_interactions:
|
|
268
351
|
content-type:
|
269
352
|
- application/json; charset=utf-8
|
270
353
|
date:
|
271
|
-
-
|
354
|
+
- Thu, 28 Jun 2012 22:25:34 GMT
|
272
355
|
location:
|
273
|
-
- http://bigml.io/andromeda/dataset/
|
356
|
+
- http://bigml.io/andromeda/dataset/4fecda43035d0741ef003291
|
274
357
|
server:
|
275
358
|
- nginx/1.0.12
|
276
359
|
content-length:
|
277
|
-
- '
|
360
|
+
- '921'
|
278
361
|
connection:
|
279
362
|
- Close
|
280
363
|
body:
|
281
364
|
encoding: US-ASCII
|
282
|
-
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-
|
283
|
-
"credits": 0.
|
365
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:27:15.108825",
|
366
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
284
367
|
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
285
368
|
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
286
369
|
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
287
370
|
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
288
371
|
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
289
372
|
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
290
|
-
true, "resource": "dataset/
|
291
|
-
"source": "source/
|
373
|
+
true, "resource": "dataset/4fecda43035d0741ef003291", "rows": 0, "size": 4608,
|
374
|
+
"source": "source/4fecda41035d0741f1003314", "source_status": true, "status":
|
292
375
|
{"code": 1, "message": "The dataset is being processed and will be created
|
293
|
-
soon"}, "tags": [], "updated": "2012-06-
|
376
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:27:15.108844"}'
|
294
377
|
http_version: '1.1'
|
295
|
-
recorded_at:
|
378
|
+
recorded_at: Thu, 28 Jun 2012 22:27:47 GMT
|
296
379
|
- request:
|
297
380
|
method: post
|
298
381
|
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
299
382
|
body:
|
300
383
|
encoding: UTF-8
|
301
|
-
string: ! '{"dataset":"dataset/
|
384
|
+
string: ! '{"dataset":"dataset/4fecda43035d0741ef003291"}'
|
302
385
|
headers:
|
303
386
|
content-type:
|
304
387
|
- application/json
|
@@ -312,30 +395,31 @@ http_interactions:
|
|
312
395
|
content-type:
|
313
396
|
- application/json; charset=utf-8
|
314
397
|
date:
|
315
|
-
-
|
398
|
+
- Thu, 28 Jun 2012 22:23:03 GMT
|
316
399
|
location:
|
317
|
-
- http://bigml.io/andromeda/model/
|
400
|
+
- http://bigml.io/andromeda/model/4fecda7515526875f800332a
|
318
401
|
server:
|
319
402
|
- nginx/1.0.12
|
320
|
-
|
321
|
-
-
|
403
|
+
transfer-encoding:
|
404
|
+
- chunked
|
322
405
|
connection:
|
323
406
|
- Close
|
324
407
|
body:
|
325
408
|
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
|
-
|
409
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:28:05.532359",
|
410
|
+
"credits": 0.017578125, "dataset": "dataset/4fecda43035d0741ef003291", "dataset_status":
|
411
|
+
true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
|
412
|
+
"max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
|
413
|
+
"iris'' dataset model", "number_of_predictions": 0, "objective_fields": [],
|
414
|
+
"private": true, "range": [1, 150], "resource": "model/4fecda7515526875f800332a",
|
415
|
+
"rows": 150, "size": 4608, "source": "source/4fecda41035d0741f1003314", "source_status":
|
416
|
+
true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
|
417
|
+
[], "updated": "2012-06-28T22:28:05.532387"}'
|
334
418
|
http_version: '1.1'
|
335
|
-
recorded_at:
|
419
|
+
recorded_at: Thu, 28 Jun 2012 22:27:49 GMT
|
336
420
|
- request:
|
337
421
|
method: get
|
338
|
-
uri: https://bigml.io/andromeda/model/
|
422
|
+
uri: https://bigml.io/andromeda/model/4fecda7515526875f800332a?username=<USERNAME>&api_key=<API_KEY>
|
339
423
|
body:
|
340
424
|
encoding: US-ASCII
|
341
425
|
string: ''
|
@@ -350,97 +434,24 @@ http_interactions:
|
|
350
434
|
content-type:
|
351
435
|
- application/json; charset=utf-8
|
352
436
|
date:
|
353
|
-
-
|
437
|
+
- Thu, 28 Jun 2012 22:25:38 GMT
|
354
438
|
server:
|
355
439
|
- nginx/1.0.12
|
356
440
|
content-length:
|
357
|
-
- '
|
441
|
+
- '705'
|
358
442
|
connection:
|
359
443
|
- Close
|
360
444
|
body:
|
361
445
|
encoding: US-ASCII
|
362
|
-
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-
|
363
|
-
"credits": 0.
|
364
|
-
true, "description": "", "holdout": 0.0, "input_fields":
|
365
|
-
"
|
366
|
-
"
|
367
|
-
"
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
|
372
|
-
6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum": 876.5, "sum_squares":
|
373
|
-
5223.85}}, "000001": {"column_number": 1, "datatype": "double", "name": "sepal
|
374
|
-
width", "optype": "numeric", "preferred": true, "summary": {"counts": [[2,
|
375
|
-
1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14],
|
376
|
-
[2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6,
|
377
|
-
4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
|
378
|
-
4.4, "median": 3.02044, "minimum": 2, "missing_count": 0, "population": 150,
|
379
|
-
"sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number": 2, "datatype":
|
380
|
-
"double", "name": "petal length", "optype": "numeric", "preferred": true,
|
381
|
-
"summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
382
|
-
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
383
|
-
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
384
|
-
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
385
|
-
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
386
|
-
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
387
|
-
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
388
|
-
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
389
|
-
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
390
|
-
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
391
|
-
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
392
|
-
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
393
|
-
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
394
|
-
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
395
|
-
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "kind": "stree", "locale":
|
396
|
-
"en_US", "missing_strategy": "last_prediction", "root": {"children": [{"children":
|
397
|
-
[{"children": [{"count": 38, "distribution": [["Iris-virginica", 38]], "leaf":
|
398
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
399
|
-
">", "value": 5.05}}, {"children": [{"children": [{"children": [{"count":
|
400
|
-
1, "distribution": [["Iris-versicolor", 1]], "leaf": true, "output": "Iris-versicolor",
|
401
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
402
|
-
2, "distribution": [["Iris-virginica", 2]], "leaf": true, "output": "Iris-virginica",
|
403
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
404
|
-
3, "distribution": [["Iris-virginica", 2], ["Iris-versicolor", 1]], "output":
|
405
|
-
"Iris-virginica", "predicate": {"field": "000000", "operator": ">", "value":
|
406
|
-
5.95}}, {"count": 1, "distribution": [["Iris-versicolor", 1]], "leaf": true,
|
407
|
-
"output": "Iris-versicolor", "predicate": {"field": "000000", "operator":
|
408
|
-
"<=", "value": 5.95}}], "count": 4, "distribution": [["Iris-virginica", 2],
|
409
|
-
["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
410
|
-
"000001", "operator": ">", "value": 2.9}}, {"count": 6, "distribution": [["Iris-virginica",
|
411
|
-
6]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
412
|
-
"operator": "<=", "value": 2.9}}], "count": 10, "distribution": [["Iris-virginica",
|
413
|
-
8], ["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
414
|
-
"000002", "operator": "<=", "value": 5.05}}], "count": 48, "distribution":
|
415
|
-
[["Iris-virginica", 46], ["Iris-versicolor", 2]], "output": "Iris-virginica",
|
416
|
-
"predicate": {"field": "000003", "operator": ">", "value": 1.65}}, {"children":
|
417
|
-
[{"children": [{"count": 3, "distribution": [["Iris-virginica", 3]], "leaf":
|
418
|
-
true, "output": "Iris-virginica", "predicate": {"field": "000000", "operator":
|
419
|
-
">", "value": 6.05}}, {"children": [{"count": 1, "distribution": [["Iris-versicolor",
|
420
|
-
1]], "leaf": true, "output": "Iris-versicolor", "predicate": {"field": "000001",
|
421
|
-
"operator": ">", "value": 2.45}}, {"count": 1, "distribution": [["Iris-virginica",
|
422
|
-
1]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
423
|
-
"operator": "<=", "value": 2.45}}], "count": 2, "distribution": [["Iris-virginica",
|
424
|
-
1], ["Iris-versicolor", 1]], "output": "Iris-virginica", "predicate": {"field":
|
425
|
-
"000000", "operator": "<=", "value": 6.05}}], "count": 5, "distribution":
|
426
|
-
[["Iris-virginica", 4], ["Iris-versicolor", 1]], "output": "Iris-virginica",
|
427
|
-
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
428
|
-
47, "distribution": [["Iris-versicolor", 47]], "leaf": true, "output": "Iris-versicolor",
|
429
|
-
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
430
|
-
52, "distribution": [["Iris-virginica", 4], ["Iris-versicolor", 48]], "output":
|
431
|
-
"Iris-versicolor", "predicate": {"field": "000003", "operator": "<=", "value":
|
432
|
-
1.65}}], "count": 100, "distribution": [["Iris-virginica", 50], ["Iris-versicolor",
|
433
|
-
50]], "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
434
|
-
">", "value": 2.45}}, {"count": 50, "distribution": [["Iris-setosa", 50]],
|
435
|
-
"leaf": true, "output": "Iris-setosa", "predicate": {"field": "000002", "operator":
|
436
|
-
"<=", "value": 2.45}}], "count": 150, "distribution": [["Iris-virginica",
|
437
|
-
50], ["Iris-versicolor", 50], ["Iris-setosa", 50]], "output": "Iris-virginica",
|
438
|
-
"predicate": true}, "row_range": {"size": 150, "start": 0}}, "name": "iris''
|
439
|
-
dataset model", "number_of_predictions": 0, "objective_fields": ["000004"],
|
440
|
-
"private": true, "range": [1, 150], "resource": "model/4fe14a47035d074a1b000115",
|
441
|
-
"rows": 150, "size": 4608, "source": "source/4fe14a601552687d4200014b", "source_status":
|
442
|
-
true, "status": {"code": 5, "elapsed": 153, "message": "The model has been
|
443
|
-
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:57:59.792000"}'
|
446
|
+
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-28T22:28:05.532000",
|
447
|
+
"credits": 0.017578125, "dataset": "dataset/4fecda43035d0741ef003291", "dataset_status":
|
448
|
+
true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
|
449
|
+
"max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
|
450
|
+
"iris'' dataset model", "number_of_predictions": 0, "objective_fields": [],
|
451
|
+
"private": true, "range": [1, 150], "resource": "model/4fecda7515526875f800332a",
|
452
|
+
"rows": 150, "size": 4608, "source": "source/4fecda41035d0741f1003314", "source_status":
|
453
|
+
true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
|
454
|
+
[], "updated": "2012-06-28T22:28:05.747000"}'
|
444
455
|
http_version: '1.1'
|
445
|
-
recorded_at:
|
456
|
+
recorded_at: Thu, 28 Jun 2012 22:27:51 GMT
|
446
457
|
recorded_with: VCR 2.2.2
|