big_ml 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Wed, 20 Jun 2012 04:07:42 GMT
20
+ - Thu, 28 Jun 2012 22:22:16 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -28,7 +28,7 @@ http_interactions:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-20T04:11:36.859000", "credits":
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":
@@ -36,17 +36,17 @@ http_interactions:
36
36
  "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
37
  "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
38
  "name": "iris.csv", "number_of_datasets": 1, "number_of_models": 1, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fe14d781552687d4200016e", "size":
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
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 91, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T04:11:42.072000"}]}'
43
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
44
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:26:25.904000"}]}'
45
45
  http_version: '1.1'
46
- recorded_at: Wed, 20 Jun 2012 04:11:33 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:27:02 GMT
47
47
  - request:
48
48
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fe14d781552687d4200016e?username=<USERNAME>&api_key=<API_KEY>
49
+ uri: https://bigml.io/andromeda/source/4fecda3d15526875f8003324?username=<USERNAME>&api_key=<API_KEY>
50
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ''
@@ -55,24 +55,25 @@ http_interactions:
55
55
  - close
56
56
  response:
57
57
  status:
58
- code: 204
59
- message: NO CONTENT
58
+ code: 400
59
+ message: BAD REQUEST
60
60
  headers:
61
- content-length:
62
- - '0'
63
61
  content-type:
64
- - text/html; charset=utf-8
62
+ - application/json; charset=utf-8
65
63
  date:
66
- - Wed, 20 Jun 2012 04:10:04 GMT
64
+ - Thu, 28 Jun 2012 22:24:51 GMT
67
65
  server:
68
66
  - nginx/1.0.12
67
+ content-length:
68
+ - '132'
69
69
  connection:
70
70
  - Close
71
71
  body:
72
72
  encoding: US-ASCII
73
- string: ''
73
+ string: ! '{"code": 400, "status": {"code": -1204, "extra": ["This source is
74
+ being used and cannot be deleted now"], "message": "Bad request"}}'
74
75
  http_version: '1.1'
75
- recorded_at: Wed, 20 Jun 2012 04:11:34 GMT
76
+ recorded_at: Thu, 28 Jun 2012 22:27:04 GMT
76
77
  - request:
77
78
  method: get
78
79
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
@@ -90,29 +91,29 @@ http_interactions:
90
91
  content-type:
91
92
  - application/json; charset=utf-8
92
93
  date:
93
- - Wed, 20 Jun 2012 04:07:45 GMT
94
+ - Thu, 28 Jun 2012 22:22:21 GMT
94
95
  server:
95
96
  - nginx/1.0.12
96
97
  content-length:
97
- - '703'
98
+ - '712'
98
99
  connection:
99
100
  - Close
100
101
  body:
101
102
  encoding: US-ASCII
102
103
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
103
104
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
104
- "created": "2012-06-20T04:11:38.222000", "credits": 0.0087890625, "description":
105
+ "created": "2012-06-28T22:27:11.525000", "credits": 0.00439453125, "description":
105
106
  "", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
106
- 0, "private": true, "resource": "dataset/4fe14d7a1552687d4500015b", "rows":
107
- 150, "size": 4608, "source": "source/4fe14d781552687d4200016e", "source_status":
108
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 235, "field_errors":
109
- [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
110
- 150}, "tags": [], "updated": "2012-06-20T04:11:42.079000"}]}'
107
+ 0, "private": true, "resource": "dataset/4fecda3f15526875f8003327", "rows":
108
+ 150, "size": 4608, "source": "source/4fecda3d15526875f8003324", "source_status":
109
+ true, "status": {"bytes": 4608, "code": 4, "elapsed": 11841, "field_errors":
110
+ [], "message": "The summary is completed. Serializing", "row_format_errors":
111
+ [], "serialized_rows": 0}, "tags": [], "updated": "2012-06-28T22:27:20.516000"}]}'
111
112
  http_version: '1.1'
112
- recorded_at: Wed, 20 Jun 2012 04:11:35 GMT
113
+ recorded_at: Thu, 28 Jun 2012 22:27:08 GMT
113
114
  - request:
114
115
  method: delete
115
- uri: https://bigml.io/andromeda/dataset/4fe14d7a1552687d4500015b?username=<USERNAME>&api_key=<API_KEY>
116
+ uri: https://bigml.io/andromeda/dataset/4fecda3f15526875f8003327?username=<USERNAME>&api_key=<API_KEY>
116
117
  body:
117
118
  encoding: US-ASCII
118
119
  string: ''
@@ -121,24 +122,25 @@ http_interactions:
121
122
  - close
122
123
  response:
123
124
  status:
124
- code: 204
125
- message: NO CONTENT
125
+ code: 400
126
+ message: BAD REQUEST
126
127
  headers:
127
- content-length:
128
- - '0'
129
128
  content-type:
130
- - text/html; charset=utf-8
129
+ - application/json; charset=utf-8
131
130
  date:
132
- - Wed, 20 Jun 2012 04:10:06 GMT
131
+ - Thu, 28 Jun 2012 22:24:56 GMT
133
132
  server:
134
133
  - nginx/1.0.12
134
+ content-length:
135
+ - '132'
135
136
  connection:
136
137
  - Close
137
138
  body:
138
139
  encoding: US-ASCII
139
- string: ''
140
+ string: ! '{"code": 400, "status": {"code": -1204, "extra": ["The dataset is
141
+ being used and cannot be deleted now"], "message": "Bad request"}}'
140
142
  http_version: '1.1'
141
- recorded_at: Wed, 20 Jun 2012 04:11:37 GMT
143
+ recorded_at: Thu, 28 Jun 2012 22:27:09 GMT
142
144
  - request:
143
145
  method: get
144
146
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -156,31 +158,30 @@ http_interactions:
156
158
  content-type:
157
159
  - application/json; charset=utf-8
158
160
  date:
159
- - Wed, 20 Jun 2012 04:07:47 GMT
161
+ - Thu, 28 Jun 2012 22:22:25 GMT
160
162
  server:
161
163
  - nginx/1.0.12
162
- transfer-encoding:
163
- - chunked
164
+ content-length:
165
+ - '769'
164
166
  connection:
165
167
  - Close
166
168
  body:
167
169
  encoding: US-ASCII
168
170
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
169
171
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
170
- "created": "2012-06-20T04:11:11.239000", "credits": 0.03515625, "dataset":
171
- "dataset/4fe14d7a1552687d4500015b", "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": 0, "objective_fields": ["000004"], "private":
175
- true, "range": [1, 150], "resource": "model/4fe14d5f035d074a21000159", "rows":
176
- 150, "size": 4608, "source": "source/4fe14d781552687d4200016e", "source_status":
177
- false, "status": {"code": 5, "elapsed": 199, "message": "The model has been
178
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:11:42.083000"}]}'
172
+ "created": "2012-06-28T22:26:25.853000", "credits": 0.017578125, "dataset":
173
+ "dataset/4fecda3f15526875f8003327", "dataset_status": true, "description":
174
+ "", "holdout": 0.0, "input_fields": null, "locale": "en-US", "max_columns":
175
+ 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
176
+ 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
177
+ "model/4fecda11035d0741f1003311", "rows": 150, "size": 4608, "source": "source/4fecda3d15526875f8003324",
178
+ "source_status": true, "status": {"code": 0, "message": "The dataset is not
179
+ ready yet"}, "tags": [], "updated": "2012-06-28T22:26:37.186000"}]}'
179
180
  http_version: '1.1'
180
- recorded_at: Wed, 20 Jun 2012 04:11:38 GMT
181
+ recorded_at: Thu, 28 Jun 2012 22:27:11 GMT
181
182
  - request:
182
183
  method: delete
183
- uri: https://bigml.io/andromeda/model/4fe14d5f035d074a21000159?username=<USERNAME>&api_key=<API_KEY>
184
+ uri: https://bigml.io/andromeda/model/4fecda11035d0741f1003311?username=<USERNAME>&api_key=<API_KEY>
184
185
  body:
185
186
  encoding: US-ASCII
186
187
  string: ''
@@ -197,7 +198,7 @@ http_interactions:
197
198
  content-type:
198
199
  - text/html; charset=utf-8
199
200
  date:
200
- - Wed, 20 Jun 2012 04:10:08 GMT
201
+ - Thu, 28 Jun 2012 22:25:06 GMT
201
202
  server:
202
203
  - nginx/1.0.12
203
204
  connection:
@@ -206,7 +207,7 @@ http_interactions:
206
207
  encoding: US-ASCII
207
208
  string: ''
208
209
  http_version: '1.1'
209
- recorded_at: Wed, 20 Jun 2012 04:11:39 GMT
210
+ recorded_at: Thu, 28 Jun 2012 22:27:19 GMT
210
211
  - request:
211
212
  method: post
212
213
  uri: https://bigml.io/andromeda/source
@@ -228,9 +229,9 @@ http_interactions:
228
229
  content-type:
229
230
  - application/json; charset=utf-8
230
231
  date:
231
- - Wed, 20 Jun 2012 04:07:50 GMT
232
+ - Thu, 28 Jun 2012 22:22:34 GMT
232
233
  location:
233
- - http://bigml.io/andromeda/source/4fe14d8d1552687d43000149
234
+ - http://bigml.io/andromeda/source/4fecda28035d0741ef00328a
234
235
  server:
235
236
  - nginx/1.0.12
236
237
  content-length:
@@ -240,21 +241,21 @@ http_interactions:
240
241
  body:
241
242
  encoding: US-ASCII
242
243
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
243
- "created": "2012-06-20T04:11:57.725788", "credits": 0.0, "description": "",
244
+ "created": "2012-06-28T22:26:48.297486", "credits": 0.0, "description": "",
244
245
  "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
245
246
  "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
246
- 0, "private": true, "resource": "source/4fe14d8d1552687d43000149", "size":
247
+ 0, "private": true, "resource": "source/4fecda28035d0741ef00328a", "size":
247
248
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
248
249
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
249
- "2012-06-20T04:11:57.725808"}'
250
+ "2012-06-28T22:26:48.297509"}'
250
251
  http_version: '1.1'
251
- recorded_at: Wed, 20 Jun 2012 04:11:40 GMT
252
+ recorded_at: Thu, 28 Jun 2012 22:27:21 GMT
252
253
  - request:
253
254
  method: post
254
255
  uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
255
256
  body:
256
257
  encoding: UTF-8
257
- string: ! '{"source":"source/4fe14d8d1552687d43000149"}'
258
+ string: ! '{"source":"source/4fecda28035d0741ef00328a"}'
258
259
  headers:
259
260
  content-type:
260
261
  - application/json
@@ -268,37 +269,37 @@ http_interactions:
268
269
  content-type:
269
270
  - application/json; charset=utf-8
270
271
  date:
271
- - Wed, 20 Jun 2012 04:10:11 GMT
272
+ - Thu, 28 Jun 2012 22:25:10 GMT
272
273
  location:
273
- - http://bigml.io/andromeda/dataset/4fe14d72035d074a1e00011a
274
+ - http://bigml.io/andromeda/dataset/4fecda2a035d0741ef00328d
274
275
  server:
275
276
  - nginx/1.0.12
276
277
  content-length:
277
- - '920'
278
+ - '921'
278
279
  connection:
279
280
  - Close
280
281
  body:
281
282
  encoding: US-ASCII
282
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:11:30.754250",
283
- "credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
283
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:26:50.501481",
284
+ "credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
284
285
  0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
285
286
  1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
286
287
  2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
287
288
  3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
288
289
  4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
289
290
  "iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
290
- true, "resource": "dataset/4fe14d72035d074a1e00011a", "rows": 0, "size": 4608,
291
- "source": "source/4fe14d8d1552687d43000149", "source_status": true, "status":
291
+ true, "resource": "dataset/4fecda2a035d0741ef00328d", "rows": 0, "size": 4608,
292
+ "source": "source/4fecda28035d0741ef00328a", "source_status": true, "status":
292
293
  {"code": 1, "message": "The dataset is being processed and will be created
293
- soon"}, "tags": [], "updated": "2012-06-20T04:11:30.754269"}'
294
+ soon"}, "tags": [], "updated": "2012-06-28T22:26:50.501501"}'
294
295
  http_version: '1.1'
295
- recorded_at: Wed, 20 Jun 2012 04:11:42 GMT
296
+ recorded_at: Thu, 28 Jun 2012 22:27:23 GMT
296
297
  - request:
297
298
  method: post
298
299
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
299
300
  body:
300
301
  encoding: UTF-8
301
- string: ! '{"dataset":"dataset/4fe14d72035d074a1e00011a"}'
302
+ string: ! '{"dataset":"dataset/4fecda2a035d0741ef00328d"}'
302
303
  headers:
303
304
  content-type:
304
305
  - application/json
@@ -312,27 +313,28 @@ http_interactions:
312
313
  content-type:
313
314
  - application/json; charset=utf-8
314
315
  date:
315
- - Wed, 20 Jun 2012 04:07:52 GMT
316
+ - Thu, 28 Jun 2012 22:22:39 GMT
316
317
  location:
317
- - http://bigml.io/andromeda/model/4fe14d74035d074a2100015c
318
+ - http://bigml.io/andromeda/model/4fecda5d15526875f50032f9
318
319
  server:
319
320
  - nginx/1.0.12
320
321
  content-length:
321
- - '690'
322
+ - '705'
322
323
  connection:
323
324
  - Close
324
325
  body:
325
326
  encoding: US-ASCII
326
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T04:11:32.121238",
327
- "credits": 0.03515625, "dataset": "dataset/4fe14d72035d074a1e00011a", "dataset_status":
328
- true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
329
- "max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
330
- 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
331
- "model/4fe14d74035d074a2100015c", "rows": 150, "size": 4608, "source": "source/4fe14d8d1552687d43000149",
332
- "source_status": true, "status": {"code": 1, "message": "The model is being
333
- processed and will be created soon"}, "tags": [], "updated": "2012-06-20T04:11:32.121258"}'
327
+ string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:27:41.617706",
328
+ "credits": 0.017578125, "dataset": "dataset/4fecda2a035d0741ef00328d", "dataset_status":
329
+ true, "description": "", "holdout": 0.0, "input_fields": null, "locale": "en-US",
330
+ "max_columns": 5, "max_rows": 150, "model": {"fields": {}, "root": {}}, "name":
331
+ "iris'' dataset model", "number_of_predictions": 0, "objective_fields": [],
332
+ "private": true, "range": [1, 150], "resource": "model/4fecda5d15526875f50032f9",
333
+ "rows": 150, "size": 4608, "source": "source/4fecda28035d0741ef00328a", "source_status":
334
+ true, "status": {"code": 0, "message": "The dataset is not ready yet"}, "tags":
335
+ [], "updated": "2012-06-28T22:27:41.617747"}'
334
336
  http_version: '1.1'
335
- recorded_at: Wed, 20 Jun 2012 04:11:43 GMT
337
+ recorded_at: Thu, 28 Jun 2012 22:27:25 GMT
336
338
  - request:
337
339
  method: get
338
340
  uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
@@ -350,26 +352,25 @@ http_interactions:
350
352
  content-type:
351
353
  - application/json; charset=utf-8
352
354
  date:
353
- - Wed, 20 Jun 2012 04:10:13 GMT
355
+ - Thu, 28 Jun 2012 22:25:14 GMT
354
356
  server:
355
357
  - nginx/1.0.12
356
358
  content-length:
357
- - '841'
359
+ - '769'
358
360
  connection:
359
361
  - Close
360
362
  body:
361
363
  encoding: US-ASCII
362
364
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
363
365
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
364
- "created": "2012-06-20T04:11:32.121000", "credits": 0.03515625, "dataset":
365
- "dataset/4fe14d72035d074a1e00011a", "dataset_status": true, "description":
366
- "", "holdout": 0.0, "input_fields": ["000000", "000001", "000002", "000003"],
367
- "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
368
- model", "number_of_predictions": 0, "objective_fields": ["000004"], "private":
369
- true, "range": [1, 150], "resource": "model/4fe14d74035d074a2100015c", "rows":
370
- 150, "size": 4608, "source": "source/4fe14d8d1552687d43000149", "source_status":
371
- true, "status": {"code": 5, "elapsed": 188, "message": "The model has been
372
- created", "progress": 1}, "tags": [], "updated": "2012-06-20T04:11:32.261000"}]}'
366
+ "created": "2012-06-28T22:27:41.617000", "credits": 0.017578125, "dataset":
367
+ "dataset/4fecda2a035d0741ef00328d", "dataset_status": true, "description":
368
+ "", "holdout": 0.0, "input_fields": null, "locale": "en-US", "max_columns":
369
+ 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
370
+ 0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
371
+ "model/4fecda5d15526875f50032f9", "rows": 150, "size": 4608, "source": "source/4fecda28035d0741ef00328a",
372
+ "source_status": true, "status": {"code": 0, "message": "The dataset is not
373
+ ready yet"}, "tags": [], "updated": "2012-06-28T22:27:41.797000"}]}'
373
374
  http_version: '1.1'
374
- recorded_at: Wed, 20 Jun 2012 04:11:44 GMT
375
+ recorded_at: Thu, 28 Jun 2012 22:27:27 GMT
375
376
  recorded_with: VCR 2.2.2