big_ml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +2 -1
  2. data/big_ml.gemspec +1 -1
  3. data/lib/big_ml/util/client.rb +7 -2
  4. data/lib/big_ml/util/config.rb +7 -2
  5. data/lib/big_ml/version.rb +1 -1
  6. data/spec/spec_helper.rb +2 -2
  7. data/spec/units/client_spec.rb +37 -6
  8. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +16 -95
  9. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +69 -67
  10. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +72 -71
  11. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +104 -103
  12. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +66 -65
  13. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +148 -147
  14. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +147 -146
  15. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +83 -80
  16. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +119 -74
  17. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +36 -36
  18. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +89 -87
  19. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +101 -99
  20. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml +91 -89
  21. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +191 -200
  22. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +109 -231
  23. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +272 -252
  24. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +126 -252
  25. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +117 -113
  26. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +158 -120
  27. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +101 -56
  28. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +96 -94
  29. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +126 -124
  30. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +147 -145
  31. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +141 -139
  32. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +159 -157
  33. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +161 -159
  34. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +145 -143
  35. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +148 -146
  36. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +75 -74
  37. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +25 -24
  38. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +32 -32
  39. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +21 -21
  40. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +48 -47
  41. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -42
  42. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +77 -76
  43. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +78 -77
  44. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +53 -51
  45. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +52 -50
  46. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +14 -14
  47. 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,51 +17,37 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Thu, 28 Jun 2012 22:22:42 GMT
20
+ - Sat, 14 Jul 2012 15:24:51 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '2461'
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
- "total_count": 2}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-28T22:27:09.824000", "credits":
32
- 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
- "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
- "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
35
- "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
- "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
- "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
- "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fecda3d15526875f8003324", "size":
40
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
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"}]}'
30
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
+ "application/octet-stream", "created": "2012-07-14T15:31:26.353000", "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/500190ce1552681ee400002b", "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": 98, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:30:25.295000"}]}'
60
46
  http_version: '1.1'
61
- recorded_at: Thu, 28 Jun 2012 22:27:29 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:30:54 GMT
62
48
  - request:
63
49
  method: delete
64
- uri: https://bigml.io/andromeda/source/4fecda3d15526875f8003324?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/500190ce1552681ee400002b?username=<USERNAME>&api_key=<API_KEY>
65
51
  body:
66
52
  encoding: US-ASCII
67
53
  string: ''
@@ -70,58 +56,27 @@ http_interactions:
70
56
  - close
71
57
  response:
72
58
  status:
73
- code: 400
74
- message: BAD REQUEST
59
+ code: 204
60
+ message: NO CONTENT
75
61
  headers:
76
- content-type:
77
- - application/json; charset=utf-8
78
- date:
79
- - Thu, 28 Jun 2012 22:25:18 GMT
80
- server:
81
- - nginx/1.0.12
82
62
  content-length:
83
- - '132'
84
- connection:
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>
95
- body:
96
- encoding: US-ASCII
97
- string: ''
98
- headers:
99
- connection:
100
- - close
101
- response:
102
- status:
103
- code: 400
104
- message: BAD REQUEST
105
- headers:
63
+ - '0'
106
64
  content-type:
107
- - application/json; charset=utf-8
65
+ - text/html; charset=utf-8
108
66
  date:
109
- - Thu, 28 Jun 2012 22:22:47 GMT
67
+ - Sat, 14 Jul 2012 15:29:56 GMT
110
68
  server:
111
69
  - nginx/1.0.12
112
- content-length:
113
- - '132'
114
70
  connection:
115
71
  - Close
116
72
  body:
117
73
  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
+ string: ''
120
75
  http_version: '1.1'
121
- recorded_at: Thu, 28 Jun 2012 22:27:34 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:30:59 GMT
122
77
  - request:
123
78
  method: get
124
- 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>
125
80
  body:
126
81
  encoding: US-ASCII
127
82
  string: ''
@@ -136,37 +91,29 @@ http_interactions:
136
91
  content-type:
137
92
  - application/json; charset=utf-8
138
93
  date:
139
- - Thu, 28 Jun 2012 22:25:22 GMT
94
+ - Sat, 14 Jul 2012 15:24:57 GMT
140
95
  server:
141
96
  - nginx/1.0.12
142
97
  content-length:
143
- - '1325'
98
+ - '717'
144
99
  connection:
145
100
  - Close
146
101
  body:
147
102
  encoding: US-ASCII
148
103
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
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"}]}'
104
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
105
+ "created": "2012-07-14T15:30:23.797000", "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/5001908f035d075696000012",
108
+ "rows": 150, "size": 4608, "source": "source/500190ce1552681ee400002b", "source_status":
109
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 182, "field_errors":
110
+ [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
111
+ 150}, "tags": [], "updated": "2012-07-14T15:30:25.301000"}]}'
165
112
  http_version: '1.1'
166
- recorded_at: Thu, 28 Jun 2012 22:27:35 GMT
113
+ recorded_at: Sat, 14 Jul 2012 15:31:00 GMT
167
114
  - request:
168
115
  method: delete
169
- uri: https://bigml.io/andromeda/dataset/4fecda3f15526875f8003327?username=<USERNAME>&api_key=<API_KEY>
116
+ uri: https://bigml.io/dev/andromeda/dataset/5001908f035d075696000012?username=<USERNAME>&api_key=<API_KEY>
170
117
  body:
171
118
  encoding: US-ASCII
172
119
  string: ''
@@ -183,7 +130,7 @@ http_interactions:
183
130
  content-type:
184
131
  - text/html; charset=utf-8
185
132
  date:
186
- - Thu, 28 Jun 2012 22:22:50 GMT
133
+ - Sat, 14 Jul 2012 15:29:58 GMT
187
134
  server:
188
135
  - nginx/1.0.12
189
136
  connection:
@@ -192,40 +139,10 @@ http_interactions:
192
139
  encoding: US-ASCII
193
140
  string: ''
194
141
  http_version: '1.1'
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
+ recorded_at: Sat, 14 Jul 2012 15:31:01 GMT
226
143
  - request:
227
144
  method: get
228
- 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>
229
146
  body:
230
147
  encoding: US-ASCII
231
148
  string: ''
@@ -240,30 +157,31 @@ http_interactions:
240
157
  content-type:
241
158
  - application/json; charset=utf-8
242
159
  date:
243
- - Thu, 28 Jun 2012 22:22:53 GMT
160
+ - Sat, 14 Jul 2012 15:24:59 GMT
244
161
  server:
245
162
  - nginx/1.0.12
246
- content-length:
247
- - '769'
163
+ transfer-encoding:
164
+ - chunked
248
165
  connection:
249
166
  - Close
250
167
  body:
251
168
  encoding: US-ASCII
252
169
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
253
170
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
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"}]}'
171
+ "created": "2012-07-14T15:30:25.290000", "credits": 0.017578125, "dataset":
172
+ "dataset/5001908f035d075696000012", "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/50019091035d075696000014",
177
+ "rows": 150, "size": 4608, "source": "source/500190ce1552681ee400002b", "source_status":
178
+ false, "status": {"code": 5, "elapsed": 132, "message": "The model has been
179
+ created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:31:30.945000"}]}'
262
180
  http_version: '1.1'
263
- recorded_at: Thu, 28 Jun 2012 22:27:39 GMT
181
+ recorded_at: Sat, 14 Jul 2012 15:31:02 GMT
264
182
  - request:
265
183
  method: delete
266
- uri: https://bigml.io/andromeda/model/4fecda5d15526875f50032f9?username=<USERNAME>&api_key=<API_KEY>
184
+ uri: https://bigml.io/dev/andromeda/model/50019091035d075696000014?username=<USERNAME>&api_key=<API_KEY>
267
185
  body:
268
186
  encoding: US-ASCII
269
187
  string: ''
@@ -280,7 +198,7 @@ http_interactions:
280
198
  content-type:
281
199
  - text/html; charset=utf-8
282
200
  date:
283
- - Thu, 28 Jun 2012 22:25:30 GMT
201
+ - Sat, 14 Jul 2012 15:30:02 GMT
284
202
  server:
285
203
  - nginx/1.0.12
286
204
  connection:
@@ -289,10 +207,10 @@ http_interactions:
289
207
  encoding: US-ASCII
290
208
  string: ''
291
209
  http_version: '1.1'
292
- recorded_at: Thu, 28 Jun 2012 22:27:43 GMT
210
+ recorded_at: Sat, 14 Jul 2012 15:31:05 GMT
293
211
  - request:
294
212
  method: post
295
- uri: https://bigml.io/andromeda/source
213
+ uri: https://bigml.io/dev/andromeda/source
296
214
  body:
297
215
  encoding: US-ASCII
298
216
  string: ''
@@ -300,7 +218,7 @@ http_interactions:
300
218
  content-type:
301
219
  - multipart/form-data; boundary=-----------RubyMultipartPost
302
220
  content-length:
303
- - '5147'
221
+ - '5149'
304
222
  connection:
305
223
  - close
306
224
  response:
@@ -311,33 +229,33 @@ http_interactions:
311
229
  content-type:
312
230
  - application/json; charset=utf-8
313
231
  date:
314
- - Thu, 28 Jun 2012 22:22:59 GMT
232
+ - Sat, 14 Jul 2012 15:25:07 GMT
315
233
  location:
316
- - http://bigml.io/andromeda/source/4fecda41035d0741f1003314
234
+ - http://bigml.io/andromeda/source/500190a3035d07404e000045
317
235
  server:
318
236
  - nginx/1.0.12
319
237
  content-length:
320
- - '567'
238
+ - '580'
321
239
  connection:
322
240
  - Close
323
241
  body:
324
242
  encoding: US-ASCII
325
243
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
326
- "created": "2012-06-28T22:27:13.381642", "credits": 0.0, "description": "",
327
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
328
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
329
- 0, "private": true, "resource": "source/4fecda41035d0741f1003314", "size":
244
+ "created": "2012-07-14T15:30:43.009546", "credits": 0.0, "description": "",
245
+ "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
246
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
247
+ 0, "private": true, "resource": "source/500190a3035d07404e000045", "size":
330
248
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
331
249
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
332
- "2012-06-28T22:27:13.381663"}'
250
+ "2012-07-14T15:30:43.009716"}'
333
251
  http_version: '1.1'
334
- recorded_at: Thu, 28 Jun 2012 22:27:46 GMT
252
+ recorded_at: Sat, 14 Jul 2012 15:31:10 GMT
335
253
  - request:
336
254
  method: post
337
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
255
+ uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
338
256
  body:
339
257
  encoding: UTF-8
340
- string: ! '{"source":"source/4fecda41035d0741f1003314"}'
258
+ string: ! '{"source":"source/500190a3035d07404e000045"}'
341
259
  headers:
342
260
  content-type:
343
261
  - application/json
@@ -351,37 +269,37 @@ http_interactions:
351
269
  content-type:
352
270
  - application/json; charset=utf-8
353
271
  date:
354
- - Thu, 28 Jun 2012 22:25:34 GMT
272
+ - Sat, 14 Jul 2012 15:30:09 GMT
355
273
  location:
356
- - http://bigml.io/andromeda/dataset/4fecda43035d0741ef003291
274
+ - http://bigml.io/andromeda/dataset/500190e41552681edf00003c
357
275
  server:
358
276
  - nginx/1.0.12
359
277
  content-length:
360
- - '921'
278
+ - '934'
361
279
  connection:
362
280
  - Close
363
281
  body:
364
282
  encoding: US-ASCII
365
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:27:15.108825",
366
- "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
367
- 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
368
- 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
369
- 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
370
- 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
371
- 4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
372
- "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
373
- true, "resource": "dataset/4fecda43035d0741ef003291", "rows": 0, "size": 4608,
374
- "source": "source/4fecda41035d0741f1003314", "source_status": true, "status":
375
- {"code": 1, "message": "The dataset is being processed and will be created
376
- soon"}, "tags": [], "updated": "2012-06-28T22:27:15.108844"}'
283
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:31:48.687071",
284
+ "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
285
+ {"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
286
+ {"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
287
+ {"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
288
+ {"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
289
+ {"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
290
+ "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
291
+ 0, "private": true, "resource": "dataset/500190e41552681edf00003c", "rows":
292
+ 0, "size": 4608, "source": "source/500190a3035d07404e000045", "source_status":
293
+ true, "status": {"code": 1, "message": "The dataset is being processed and
294
+ will be created soon"}, "tags": [], "updated": "2012-07-14T15:31:48.687088"}'
377
295
  http_version: '1.1'
378
- recorded_at: Thu, 28 Jun 2012 22:27:47 GMT
296
+ recorded_at: Sat, 14 Jul 2012 15:31:12 GMT
379
297
  - request:
380
298
  method: post
381
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
299
+ uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
382
300
  body:
383
301
  encoding: UTF-8
384
- string: ! '{"dataset":"dataset/4fecda43035d0741ef003291"}'
302
+ string: ! '{"dataset":"dataset/500190e41552681edf00003c"}'
385
303
  headers:
386
304
  content-type:
387
305
  - application/json
@@ -395,31 +313,31 @@ http_interactions:
395
313
  content-type:
396
314
  - application/json; charset=utf-8
397
315
  date:
398
- - Thu, 28 Jun 2012 22:23:03 GMT
316
+ - Sat, 14 Jul 2012 15:25:28 GMT
399
317
  location:
400
- - http://bigml.io/andromeda/model/4fecda7515526875f800332a
318
+ - http://bigml.io/andromeda/model/500190f61552681edf00003e
401
319
  server:
402
320
  - nginx/1.0.12
403
- transfer-encoding:
404
- - chunked
321
+ content-length:
322
+ - '704'
405
323
  connection:
406
324
  - Close
407
325
  body:
408
326
  encoding: US-ASCII
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"}'
327
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:32:06.086964",
328
+ "credits": 0.017578125, "dataset": "dataset/500190e41552681edf00003c", "dataset_status":
329
+ true, "description": "", "dev": true, "holdout": 0.0, "input_fields": [],
330
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
331
+ model", "number_of_predictions": 0, "objective_fields": [], "private": true,
332
+ "range": [1, 150], "resource": "model/500190f61552681edf00003e", "rows": 150,
333
+ "size": 4608, "source": "source/500190a3035d07404e000045", "source_status":
334
+ true, "status": {"code": 1, "message": "The model is being processed and will
335
+ be created soon"}, "tags": [], "updated": "2012-07-14T15:32:06.086997"}'
418
336
  http_version: '1.1'
419
- recorded_at: Thu, 28 Jun 2012 22:27:49 GMT
337
+ recorded_at: Sat, 14 Jul 2012 15:31:31 GMT
420
338
  - request:
421
339
  method: get
422
- uri: https://bigml.io/andromeda/model/4fecda7515526875f800332a?username=<USERNAME>&api_key=<API_KEY>
340
+ uri: https://bigml.io/dev/andromeda/model/500190f61552681edf00003e?username=<USERNAME>&api_key=<API_KEY>
423
341
  body:
424
342
  encoding: US-ASCII
425
343
  string: ''
@@ -434,24 +352,97 @@ http_interactions:
434
352
  content-type:
435
353
  - application/json; charset=utf-8
436
354
  date:
437
- - Thu, 28 Jun 2012 22:25:38 GMT
355
+ - Sat, 14 Jul 2012 15:30:29 GMT
438
356
  server:
439
357
  - nginx/1.0.12
440
358
  content-length:
441
- - '705'
359
+ - '6528'
442
360
  connection:
443
361
  - Close
444
362
  body:
445
363
  encoding: US-ASCII
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"}'
364
+ string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-07-14T15:32:06.086000",
365
+ "credits": 0.017578125, "dataset": "dataset/500190e41552681edf00003c", "dataset_status":
366
+ true, "description": "", "dev": true, "holdout": 0.0, "input_fields": ["000000",
367
+ "000001", "000002", "000003"], "locale": "en_US", "max_columns": 5, "max_rows":
368
+ 150, "model": {"fields": {"000000": {"column_number": 0, "datatype": "double",
369
+ "name": "sepal length", "optype": "numeric", "preferred": true, "summary":
370
+ {"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population":
371
+ 150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
372
+ 5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
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": "iris''
441
+ dataset model", "number_of_predictions": 0, "objective_fields": ["000004"],
442
+ "private": true, "range": [1, 150], "resource": "model/500190f61552681edf00003e",
443
+ "rows": 150, "size": 4608, "source": "source/500190a3035d07404e000045", "source_status":
444
+ true, "status": {"code": 5, "elapsed": 143, "message": "The model has been
445
+ created", "progress": 1}, "tags": [], "updated": "2012-07-14T15:32:08.197000"}'
455
446
  http_version: '1.1'
456
- recorded_at: Thu, 28 Jun 2012 22:27:51 GMT
447
+ recorded_at: Sat, 14 Jul 2012 15:31:33 GMT
457
448
  recorded_with: VCR 2.2.2