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.
Files changed (62) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +55 -18
  3. data/big_ml.gemspec +1 -0
  4. data/lib/big_ml/base.rb +21 -11
  5. data/lib/big_ml/dataset.rb +10 -4
  6. data/lib/big_ml/model.rb +16 -10
  7. data/lib/big_ml/prediction.rb +6 -4
  8. data/lib/big_ml/source.rb +10 -4
  9. data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
  10. data/lib/big_ml/util/client.rb +26 -0
  11. data/lib/big_ml/util/config.rb +32 -0
  12. data/lib/big_ml/{request.rb → util/request.rb} +0 -0
  13. data/lib/big_ml/version.rb +1 -1
  14. data/lib/big_ml.rb +8 -4
  15. data/spec/integration/dataset_spec.rb +17 -0
  16. data/spec/integration/model_spec.rb +17 -0
  17. data/spec/integration/prediction_spec.rb +11 -0
  18. data/spec/integration/source_spec.rb +19 -6
  19. data/spec/units/client_spec.rb +5 -5
  20. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
  21. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
  22. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
  23. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
  24. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
  27. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
  28. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
  29. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
  30. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
  31. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
  32. 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
  33. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
  34. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
  35. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
  36. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
  37. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
  38. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
  39. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
  40. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
  41. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
  42. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
  43. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
  44. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
  45. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
  46. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
  47. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
  49. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
  50. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
  51. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
  52. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
  53. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
  54. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
  55. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
  56. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
  57. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
  58. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
  59. metadata +50 -9
  60. data/.rvmrc +0 -1
  61. data/lib/big_ml/client.rb +0 -29
  62. data/lib/big_ml/config.rb +0 -30
@@ -17,62 +17,19 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 03:57:26 GMT
20
+ - Thu, 28 Jun 2012 22:21:44 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '101'
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": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T03:58:52.261000", "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/4fe14a7c1552687d43000139", "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": 57, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:58:56.448000"}]}'
45
- http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 03:58:57 GMT
47
- - request:
48
- method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14a7c1552687d43000139?username=<USERNAME>&api_key=<API_KEY>
50
- body:
51
- encoding: US-ASCII
52
- string: ''
53
- headers:
54
- connection:
55
- - close
56
- response:
57
- status:
58
- code: 204
59
- message: NO CONTENT
60
- headers:
61
- content-length:
62
- - '0'
63
- content-type:
64
- - text/html; charset=utf-8
65
- date:
66
- - Wed, 20 Jun 2012 03:55:08 GMT
67
- server:
68
- - nginx/1.0.12
69
- connection:
70
- - Close
71
- body:
72
- encoding: US-ASCII
73
- string: ''
30
+ "total_count": 0}, "objects": []}'
74
31
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 03:58:59 GMT
32
+ recorded_at: Thu, 28 Jun 2012 22:26:30 GMT
76
33
  - request:
77
34
  method: get
78
35
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,55 +47,19 @@ http_interactions:
90
47
  content-type:
91
48
  - application/json; charset=utf-8
92
49
  date:
93
- - Wed, 20 Jun 2012 03:57:29 GMT
50
+ - Thu, 28 Jun 2012 22:24:18 GMT
94
51
  server:
95
52
  - nginx/1.0.12
96
53
  content-length:
97
- - '703'
54
+ - '101'
98
55
  connection:
99
56
  - Close
100
57
  body:
101
58
  encoding: US-ASCII
102
59
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T03:58:25.205000", "credits": 0.0087890625, "description":
105
- "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe14a61035d074a200000f5", "rows":
107
- 150, "size": 4608, "source": "source/4fe14a7c1552687d43000139", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 249, "field_errors":
109
- [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T03:58:56.459000"}]}'
111
- http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 03:59:00 GMT
113
- - request:
114
- method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14a61035d074a200000f5?username=<USERNAME>&api_key=<API_KEY>
116
- body:
117
- encoding: US-ASCII
118
- string: ''
119
- headers:
120
- connection:
121
- - close
122
- response:
123
- status:
124
- code: 204
125
- message: NO CONTENT
126
- headers:
127
- content-length:
128
- - '0'
129
- content-type:
130
- - text/html; charset=utf-8
131
- date:
132
- - Wed, 20 Jun 2012 03:55:11 GMT
133
- server:
134
- - nginx/1.0.12
135
- connection:
136
- - Close
137
- body:
138
- encoding: US-ASCII
139
- string: ''
60
+ "total_count": 0}, "objects": []}'
140
61
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 03:59:01 GMT
62
+ recorded_at: Thu, 28 Jun 2012 22:26:31 GMT
142
63
  - request:
143
64
  method: get
144
65
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -156,7 +77,7 @@ http_interactions:
156
77
  content-type:
157
78
  - application/json; charset=utf-8
158
79
  date:
159
- - Wed, 20 Jun 2012 03:57:31 GMT
80
+ - Thu, 28 Jun 2012 22:21:46 GMT
160
81
  server:
161
82
  - nginx/1.0.12
162
83
  content-length:
@@ -168,7 +89,7 @@ http_interactions:
168
89
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
90
  "total_count": 0}, "objects": []}'
170
91
  http_version: '1.1'
171
- recorded_at: Wed, 20 Jun 2012 03:59:02 GMT
92
+ recorded_at: Thu, 28 Jun 2012 22:26:33 GMT
172
93
  - request:
173
94
  method: post
174
95
  uri: https://bigml.io/andromeda/source
@@ -190,9 +111,9 @@ http_interactions:
190
111
  content-type:
191
112
  - application/json; charset=utf-8
192
113
  date:
193
- - Wed, 20 Jun 2012 03:55:13 GMT
114
+ - Thu, 28 Jun 2012 22:24:21 GMT
194
115
  location:
195
- - http://bigml.io/andromeda/source/4fe14a991552687d48000103
116
+ - http://bigml.io/andromeda/source/4fecd9fa035d0741ed0032f8
196
117
  server:
197
118
  - nginx/1.0.12
198
119
  content-length:
@@ -202,21 +123,21 @@ http_interactions:
202
123
  body:
203
124
  encoding: US-ASCII
204
125
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
205
- "created": "2012-06-20T03:59:21.253482", "credits": 0.0, "description": "",
126
+ "created": "2012-06-28T22:26:02.354683", "credits": 0.0, "description": "",
206
127
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
207
128
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
208
- 0, "private": true, "resource": "source/4fe14a991552687d48000103", "size":
129
+ 0, "private": true, "resource": "source/4fecd9fa035d0741ed0032f8", "size":
209
130
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
210
131
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
211
- "2012-06-20T03:59:21.253506"}'
132
+ "2012-06-28T22:26:02.354705"}'
212
133
  http_version: '1.1'
213
- recorded_at: Wed, 20 Jun 2012 03:59:04 GMT
134
+ recorded_at: Thu, 28 Jun 2012 22:26:35 GMT
214
135
  - request:
215
136
  method: post
216
137
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
217
138
  body:
218
139
  encoding: UTF-8
219
- string: ! '{"source":"source/4fe14a991552687d48000103"}'
140
+ string: ! '{"source":"source/4fecd9fa035d0741ed0032f8"}'
220
141
  headers:
221
142
  content-type:
222
143
  - application/json
@@ -230,37 +151,37 @@ http_interactions:
230
151
  content-type:
231
152
  - application/json; charset=utf-8
232
153
  date:
233
- - Wed, 20 Jun 2012 03:57:34 GMT
154
+ - Thu, 28 Jun 2012 22:21:50 GMT
234
155
  location:
235
- - http://bigml.io/andromeda/dataset/4fe14a9a1552687d4200014e
156
+ - http://bigml.io/andromeda/dataset/4fecda2c15526875f50032f6
236
157
  server:
237
158
  - nginx/1.0.12
238
159
  content-length:
239
- - '920'
160
+ - '921'
240
161
  connection:
241
162
  - Close
242
163
  body:
243
164
  encoding: US-ASCII
244
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:59:22.691174",
245
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
165
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:26:52.750941",
166
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
246
167
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
247
168
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
248
169
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
249
170
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
250
171
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
251
172
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
252
- true, "resource": "dataset/4fe14a9a1552687d4200014e", "rows": 0, "size": 4608,
253
- "source": "source/4fe14a991552687d48000103", "source_status": true, "status":
173
+ true, "resource": "dataset/4fecda2c15526875f50032f6", "rows": 0, "size": 4608,
174
+ "source": "source/4fecd9fa035d0741ed0032f8", "source_status": true, "status":
254
175
  {"code": 1, "message": "The dataset is being processed and will be created
255
- soon"}, "tags": [], "updated": "2012-06-20T03:59:22.691192"}'
176
+ soon"}, "tags": [], "updated": "2012-06-28T22:26:52.750974"}'
256
177
  http_version: '1.1'
257
- recorded_at: Wed, 20 Jun 2012 03:59:05 GMT
178
+ recorded_at: Thu, 28 Jun 2012 22:26:36 GMT
258
179
  - request:
259
180
  method: post
260
181
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
261
182
  body:
262
183
  encoding: UTF-8
263
- string: ! '{"dataset":"dataset/4fe14a9a1552687d4200014e"}'
184
+ string: ! '{"dataset":"dataset/4fecda2c15526875f50032f6"}'
264
185
  headers:
265
186
  content-type:
266
187
  - application/json
@@ -274,25 +195,25 @@ http_interactions:
274
195
  content-type:
275
196
  - application/json; charset=utf-8
276
197
  date:
277
- - Wed, 20 Jun 2012 03:55:16 GMT
198
+ - Thu, 28 Jun 2012 22:24:25 GMT
278
199
  location:
279
- - http://bigml.io/andromeda/model/4fe14a7f035d074a2100014a
200
+ - http://bigml.io/andromeda/model/4fecda2e15526875f70033ca
280
201
  server:
281
202
  - nginx/1.0.12
282
203
  content-length:
283
- - '690'
204
+ - '691'
284
205
  connection:
285
206
  - Close
286
207
  body:
287
208
  encoding: US-ASCII
288
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:58:55.770556",
289
- "credits": 0.03515625, "dataset": "dataset/4fe14a9a1552687d4200014e", "dataset_status":
209
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:26:54.543520",
210
+ "credits": 0.017578125, "dataset": "dataset/4fecda2c15526875f50032f6", "dataset_status":
290
211
  true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
291
212
  "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
292
213
  0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
293
- "model/4fe14a7f035d074a2100014a", "rows": 150, "size": 4608, "source": "source/4fe14a991552687d48000103",
214
+ "model/4fecda2e15526875f70033ca", "rows": 150, "size": 4608, "source": "source/4fecd9fa035d0741ed0032f8",
294
215
  "source_status": true, "status": {"code": 1, "message": "The model is being
295
- processed and will be created soon"}, "tags": [], "updated": "2012-06-20T03:58:55.770577"}'
216
+ processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:26:54.543548"}'
296
217
  http_version: '1.1'
297
- recorded_at: Wed, 20 Jun 2012 03:59:07 GMT
218
+ recorded_at: Thu, 28 Jun 2012 22:26:38 GMT
298
219
  recorded_with: VCR 2.2.2
@@ -17,22 +17,36 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 04:08:07 GMT
20
+ - Thu, 28 Jun 2012 22:25:00 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '101'
24
+ - '1280'
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": 0}, "objects": []}'
30
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
+ "application/octet-stream", "created": "2012-06-28T22:29:55.646000", "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": 1, "number_of_predictions":
39
+ 1, "private": true, "resource": "source/4fecdae315526875f5003307", "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": 79, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:29:12.751000"}]}'
31
45
  http_version: '1.1'
32
- recorded_at: Wed, 20 Jun 2012 04:09:38 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:29:46 GMT
33
47
  - request:
34
- method: get
35
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
48
+ method: delete
49
+ uri: https://bigml.io/andromeda/source/4fecdae315526875f5003307?username=<USERNAME>&api_key=<API_KEY>
36
50
  body:
37
51
  encoding: US-ASCII
38
52
  string: ''
@@ -41,28 +55,27 @@ http_interactions:
41
55
  - close
42
56
  response:
43
57
  status:
44
- code: 200
45
- message: OK
58
+ code: 204
59
+ message: NO CONTENT
46
60
  headers:
61
+ content-length:
62
+ - '0'
47
63
  content-type:
48
- - application/json; charset=utf-8
64
+ - text/html; charset=utf-8
49
65
  date:
50
- - Wed, 20 Jun 2012 04:05:48 GMT
66
+ - Thu, 28 Jun 2012 22:27:36 GMT
51
67
  server:
52
68
  - nginx/1.0.12
53
- content-length:
54
- - '101'
55
69
  connection:
56
70
  - Close
57
71
  body:
58
72
  encoding: US-ASCII
59
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
60
- "total_count": 0}, "objects": []}'
73
+ string: ''
61
74
  http_version: '1.1'
62
- recorded_at: Wed, 20 Jun 2012 04:09:39 GMT
75
+ recorded_at: Thu, 28 Jun 2012 22:29:49 GMT
63
76
  - request:
64
77
  method: get
65
- uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
78
+ uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
66
79
  body:
67
80
  encoding: US-ASCII
68
81
  string: ''
@@ -77,58 +90,29 @@ http_interactions:
77
90
  content-type:
78
91
  - application/json; charset=utf-8
79
92
  date:
80
- - Wed, 20 Jun 2012 04:08:09 GMT
93
+ - Thu, 28 Jun 2012 22:25:04 GMT
81
94
  server:
82
95
  - nginx/1.0.12
83
- content-length:
84
- - '3075'
96
+ transfer-encoding:
97
+ - chunked
85
98
  connection:
86
99
  - Close
87
100
  body:
88
101
  encoding: US-ASCII
89
102
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
90
- "total_count": 4}, "objects": [{"category": 0, "code": 200, "columns": 5,
91
- "created": "2012-06-20T04:09:34.532000", "credits": 0.03515625, "dataset":
92
- "dataset/4fe14ce0035d074a1b000120", "dataset_status": false, "description":
93
- "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
94
- "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
95
- model", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
96
- true, "range": [1, 150], "resource": "model/4fe14cfe1552687d48000109", "rows":
97
- 150, "size": 4608, "source": "source/4fe14cdf035d074a1c000103", "source_status":
98
- false, "status": {"code": 5, "elapsed": 152, "message": "The model has been
99
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:09:39.427000"},
100
- {"category": 0, "code": 200, "columns": 5, "created": "2012-06-20T04:09:23.771000",
101
- "credits": 0.03515625, "dataset": "dataset/4fe14cd6035d074a1e000107", "dataset_status":
102
- false, "description": "", "holdout": 0.0, "input_fields": ["000000", "000001",
103
- "000002", "000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150,
104
- "name": "iris'' dataset model", "number_of_predictions": 0, "objective_fields":
105
- ["000004"], "private": true, "range": [1, 150], "resource": "model/4fe14cf31552687d42000151",
106
- "rows": 150, "size": 4608, "source": "source/4fe14cd4035d074a2100014d", "source_status":
107
- false, "status": {"code": 5, "elapsed": 151, "message": "The model has been
108
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:09:28.556000"},
109
- {"category": 0, "code": 200, "columns": 5, "created": "2012-06-20T04:09:12.196000",
110
- "credits": 0.03515625, "dataset": "dataset/4fe14cca035d074a1e000103", "dataset_status":
111
- false, "description": "", "holdout": 0.0, "input_fields": ["000000", "000001",
112
- "000002", "000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150,
113
- "name": "iris'' dataset model", "number_of_predictions": 0, "objective_fields":
114
- ["000004"], "private": true, "range": [1, 150], "resource": "model/4fe14ce81552687d45000152",
115
- "rows": 150, "size": 4608, "source": "source/4fe14cc8035d074a1b00011b", "source_status":
116
- false, "status": {"code": 5, "elapsed": 206, "message": "The model has been
117
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:09:17.882000"},
118
- {"category": 0, "code": 200, "columns": 5, "created": "2012-06-20T03:58:55.770000",
119
- "credits": 0.03515625, "dataset": "dataset/4fe14a9a1552687d4200014e", "dataset_status":
120
- false, "description": "", "holdout": 0.0, "input_fields": ["000000", "000001",
121
- "000002", "000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150,
122
- "name": "iris'' dataset model", "number_of_predictions": 0, "objective_fields":
123
- ["000004"], "private": true, "range": [1, 150], "resource": "model/4fe14a7f035d074a2100014a",
124
- "rows": 150, "size": 4608, "source": "source/4fe14a991552687d48000103", "source_status":
125
- false, "status": {"code": 5, "elapsed": 148, "message": "The model has been
126
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:08:56.725000"}]}'
103
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
+ "created": "2012-06-28T22:29:57.525000", "credits": 0.00439453125, "description":
105
+ "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
+ 1, "private": true, "resource": "dataset/4fecdae515526875f500330a", "rows":
107
+ 150, "size": 4608, "source": "source/4fecdae315526875f5003307", "source_status":
108
+ false, "status": {"bytes": 4608, "code": 5, "elapsed": 194, "field_errors":
109
+ [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
+ 150}, "tags": [], "updated": "2012-06-28T22:29:12.758000"}]}'
127
111
  http_version: '1.1'
128
- recorded_at: Wed, 20 Jun 2012 04:09:40 GMT
112
+ recorded_at: Thu, 28 Jun 2012 22:29:50 GMT
129
113
  - request:
130
114
  method: delete
131
- uri: https://bigml.io/andromeda/model/4fe14cfe1552687d48000109?username=<USERNAME>&api_key=<API_KEY>
115
+ uri: https://bigml.io/andromeda/dataset/4fecdae515526875f500330a?username=<USERNAME>&api_key=<API_KEY>
132
116
  body:
133
117
  encoding: US-ASCII
134
118
  string: ''
@@ -145,7 +129,7 @@ http_interactions:
145
129
  content-type:
146
130
  - text/html; charset=utf-8
147
131
  date:
148
- - Wed, 20 Jun 2012 04:05:51 GMT
132
+ - Thu, 28 Jun 2012 22:27:41 GMT
149
133
  server:
150
134
  - nginx/1.0.12
151
135
  connection:
@@ -154,10 +138,10 @@ http_interactions:
154
138
  encoding: US-ASCII
155
139
  string: ''
156
140
  http_version: '1.1'
157
- recorded_at: Wed, 20 Jun 2012 04:09:41 GMT
141
+ recorded_at: Thu, 28 Jun 2012 22:29:54 GMT
158
142
  - request:
159
- method: delete
160
- uri: https://bigml.io/andromeda/model/4fe14cf31552687d42000151?username=<USERNAME>&api_key=<API_KEY>
143
+ method: get
144
+ uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
161
145
  body:
162
146
  encoding: US-ASCII
163
147
  string: ''
@@ -166,27 +150,37 @@ http_interactions:
166
150
  - close
167
151
  response:
168
152
  status:
169
- code: 204
170
- message: NO CONTENT
153
+ code: 200
154
+ message: OK
171
155
  headers:
172
- content-length:
173
- - '0'
174
156
  content-type:
175
- - text/html; charset=utf-8
157
+ - application/json; charset=utf-8
176
158
  date:
177
- - Wed, 20 Jun 2012 04:08:12 GMT
159
+ - Thu, 28 Jun 2012 22:25:08 GMT
178
160
  server:
179
161
  - nginx/1.0.12
162
+ content-length:
163
+ - '844'
180
164
  connection:
181
165
  - Close
182
166
  body:
183
167
  encoding: US-ASCII
184
- string: ''
168
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
+ "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
+ "created": "2012-06-28T22:29:10.710000", "credits": 0.017578125, "dataset":
171
+ "dataset/4fecdae515526875f500330a", "dataset_status": false, "description":
172
+ "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
173
+ "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
174
+ model", "number_of_predictions": 1, "objective_fields": ["000004"], "private":
175
+ true, "range": [1, 150], "resource": "model/4fecdab6035d0741ef00329a", "rows":
176
+ 150, "size": 4608, "source": "source/4fecdae315526875f5003307", "source_status":
177
+ false, "status": {"code": 5, "elapsed": 135, "message": "The model has been
178
+ created", "progress": 1}, "tags": [], "updated": "2012-06-28T22:29:12.762000"}]}'
185
179
  http_version: '1.1'
186
- recorded_at: Wed, 20 Jun 2012 04:09:42 GMT
180
+ recorded_at: Thu, 28 Jun 2012 22:29:55 GMT
187
181
  - request:
188
182
  method: delete
189
- uri: https://bigml.io/andromeda/model/4fe14ce81552687d45000152?username=<USERNAME>&api_key=<API_KEY>
183
+ uri: https://bigml.io/andromeda/model/4fecdab6035d0741ef00329a?username=<USERNAME>&api_key=<API_KEY>
190
184
  body:
191
185
  encoding: US-ASCII
192
186
  string: ''
@@ -203,7 +197,7 @@ http_interactions:
203
197
  content-type:
204
198
  - text/html; charset=utf-8
205
199
  date:
206
- - Wed, 20 Jun 2012 04:05:53 GMT
200
+ - Thu, 28 Jun 2012 22:27:44 GMT
207
201
  server:
208
202
  - nginx/1.0.12
209
203
  connection:
@@ -212,10 +206,69 @@ http_interactions:
212
206
  encoding: US-ASCII
213
207
  string: ''
214
208
  http_version: '1.1'
215
- recorded_at: Wed, 20 Jun 2012 04:09:44 GMT
209
+ recorded_at: Thu, 28 Jun 2012 22:29:57 GMT
210
+ - request:
211
+ method: get
212
+ uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
213
+ body:
214
+ encoding: US-ASCII
215
+ string: ''
216
+ headers:
217
+ connection:
218
+ - close
219
+ response:
220
+ status:
221
+ code: 200
222
+ message: OK
223
+ headers:
224
+ content-type:
225
+ - application/json; charset=utf-8
226
+ date:
227
+ - Thu, 28 Jun 2012 22:25:15 GMT
228
+ server:
229
+ - nginx/1.0.12
230
+ content-length:
231
+ - '2539'
232
+ connection:
233
+ - Close
234
+ body:
235
+ encoding: US-ASCII
236
+ string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
237
+ "total_count": 2}, "objects": [{"category": 0, "code": 200, "created": "2012-06-28T22:29:12.746000",
238
+ "credits": 0.01, "dataset": "dataset/4fecdae515526875f500330a", "dataset_status":
239
+ false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
240
+ "double", "name": "sepal width", "optype": "numeric", "preferred": true},
241
+ "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
242
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
243
+ "string", "name": "species", "optype": "categorical", "preferred": true}},
244
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fecdab6035d0741ef00329a",
245
+ "model_status": false, "name": "Prediction for species", "objective_fields":
246
+ ["000004"], "prediction": {"000004": "Iris-virginica"}, "prediction_path":
247
+ {"bad_fields": [], "next_predicates": [{"field": "000002", "operator": ">",
248
+ "value": 2.45}, {"field": "000002", "operator": "<=", "value": 2.45}], "path":
249
+ [], "unknown_fields": []}, "private": true, "resource": "prediction/4fecdab8035d0741f40032a8",
250
+ "source": "source/4fecdae315526875f5003307", "source_status": false, "status":
251
+ {"code": 5, "message": "The prediction has been created"}, "tags": [], "updated":
252
+ "2012-06-28T22:29:12.746000"}, {"category": 0, "code": 200, "created": "2012-06-27T02:28:47.701000",
253
+ "credits": 0.01, "dataset": "dataset/4fea700715526875f5001bff", "dataset_status":
254
+ false, "description": "", "fields": {"000001": {"column_number": 1, "datatype":
255
+ "double", "name": "sepal width", "optype": "numeric", "preferred": true},
256
+ "000002": {"column_number": 2, "datatype": "double", "name": "petal length",
257
+ "optype": "numeric", "preferred": true}, "000004": {"column_number": 4, "datatype":
258
+ "string", "name": "species", "optype": "categorical", "preferred": true}},
259
+ "input_data": {"000001": 3}, "locale": "en_US", "model": "model/4fea700915526875f3001c2b",
260
+ "model_status": false, "name": "foo name", "objective_fields": ["000004"],
261
+ "prediction": {"000004": "Iris-virginica"}, "prediction_path": {"bad_fields":
262
+ [], "next_predicates": [{"field": "000002", "operator": ">", "value": 2.45},
263
+ {"field": "000002", "operator": "<=", "value": 2.45}], "path": [], "unknown_fields":
264
+ []}, "private": true, "resource": "prediction/4fea6fdf035d0741ed001b90", "source":
265
+ "source/4fea6fd9035d0741f4001bdb", "source_status": false, "status": {"code":
266
+ 5, "message": "The prediction has been created"}, "tags": [], "updated": "2012-06-27T02:28:49.603000"}]}'
267
+ http_version: '1.1'
268
+ recorded_at: Thu, 28 Jun 2012 22:30:01 GMT
216
269
  - request:
217
270
  method: delete
218
- uri: https://bigml.io/andromeda/model/4fe14a7f035d074a2100014a?username=<USERNAME>&api_key=<API_KEY>
271
+ uri: https://bigml.io/andromeda/prediction/4fecdab8035d0741f40032a8?username=<USERNAME>&api_key=<API_KEY>
219
272
  body:
220
273
  encoding: US-ASCII
221
274
  string: ''
@@ -232,7 +285,7 @@ http_interactions:
232
285
  content-type:
233
286
  - text/html; charset=utf-8
234
287
  date:
235
- - Wed, 20 Jun 2012 04:08:14 GMT
288
+ - Thu, 28 Jun 2012 22:27:49 GMT
236
289
  server:
237
290
  - nginx/1.0.12
238
291
  connection:
@@ -241,10 +294,10 @@ http_interactions:
241
294
  encoding: US-ASCII
242
295
  string: ''
243
296
  http_version: '1.1'
244
- recorded_at: Wed, 20 Jun 2012 04:09:45 GMT
297
+ recorded_at: Thu, 28 Jun 2012 22:30:03 GMT
245
298
  - request:
246
- method: get
247
- uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
299
+ method: delete
300
+ uri: https://bigml.io/andromeda/prediction/4fea6fdf035d0741ed001b90?username=<USERNAME>&api_key=<API_KEY>
248
301
  body:
249
302
  encoding: US-ASCII
250
303
  string: ''
@@ -253,25 +306,24 @@ http_interactions:
253
306
  - close
254
307
  response:
255
308
  status:
256
- code: 200
257
- message: OK
309
+ code: 204
310
+ message: NO CONTENT
258
311
  headers:
312
+ content-length:
313
+ - '0'
259
314
  content-type:
260
- - application/json; charset=utf-8
315
+ - text/html; charset=utf-8
261
316
  date:
262
- - Wed, 20 Jun 2012 04:05:56 GMT
317
+ - Thu, 28 Jun 2012 22:25:17 GMT
263
318
  server:
264
319
  - nginx/1.0.12
265
- content-length:
266
- - '101'
267
320
  connection:
268
321
  - Close
269
322
  body:
270
323
  encoding: US-ASCII
271
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
272
- "total_count": 0}, "objects": []}'
324
+ string: ''
273
325
  http_version: '1.1'
274
- recorded_at: Wed, 20 Jun 2012 04:09:46 GMT
326
+ recorded_at: Thu, 28 Jun 2012 22:30:04 GMT
275
327
  - request:
276
328
  method: get
277
329
  uri: https://bigml.io/andromeda/prediction?username=<USERNAME>&api_key=<API_KEY>
@@ -289,7 +341,7 @@ http_interactions:
289
341
  content-type:
290
342
  - application/json; charset=utf-8
291
343
  date:
292
- - Wed, 20 Jun 2012 04:08:17 GMT
344
+ - Thu, 28 Jun 2012 22:27:53 GMT
293
345
  server:
294
346
  - nginx/1.0.12
295
347
  content-length:
@@ -301,5 +353,5 @@ http_interactions:
301
353
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
302
354
  "total_count": 0}, "objects": []}'
303
355
  http_version: '1.1'
304
- recorded_at: Wed, 20 Jun 2012 04:09:48 GMT
356
+ recorded_at: Thu, 28 Jun 2012 22:30:06 GMT
305
357
  recorded_with: VCR 2.2.2