big_ml 0.1.2 → 0.1.3

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 (52) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -1
  3. data/.rvmrc.example +1 -1
  4. data/.travis.yml +1 -1
  5. data/README.md +6 -5
  6. data/lib/big_ml.rb +5 -0
  7. data/lib/big_ml/base.rb +31 -0
  8. data/lib/big_ml/batch_prediction.rb +39 -0
  9. data/lib/big_ml/ensemble.rb +32 -0
  10. data/lib/big_ml/evaluation.rb +31 -0
  11. data/lib/big_ml/prediction.rb +2 -2
  12. data/lib/big_ml/util/client.rb +1 -0
  13. data/lib/big_ml/util/config.rb +4 -1
  14. data/lib/big_ml/util/request.rb +9 -4
  15. data/lib/big_ml/version.rb +1 -1
  16. data/spec/integration/dataset_spec.rb +21 -23
  17. data/spec/integration/ensemble_spec.rb +73 -0
  18. data/spec/integration/evaluation_spec.rb +64 -0
  19. data/spec/integration/model_spec.rb +23 -25
  20. data/spec/integration/prediction_spec.rb +20 -22
  21. data/spec/integration/source_spec.rb +22 -24
  22. data/spec/spec_helper.rb +4 -3
  23. data/spec/units/client_spec.rb +58 -26
  24. data/spec/units/source_spec.rb +3 -3
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +180 -99
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +144 -163
  27. data/spec/vcr_cassettes/BigML_Ensemble/no_ensemble/_all/must_be_empty.yml +223 -0
  28. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/can_be_converted_in_a_prediction.yml +1074 -0
  29. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_deleted_using_the_destroy_method.yml +1082 -0
  30. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_find_using_the_reference.yml +734 -0
  31. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_remove_the_ensemble.yml +1215 -0
  32. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_set_number_of_models.yml +853 -0
  33. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name.yml +1226 -0
  34. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name_from_the_instance.yml +1226 -0
  35. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_only_one_item.yml +686 -0
  36. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_the_same_size.yml +732 -0
  37. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/was_created_successfully.yml +495 -0
  38. data/spec/vcr_cassettes/BigML_Evaluation/no_evaluation/_all/must_be_empty.yml +600 -0
  39. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_deleted_using_the_destroy_method.yml +1127 -0
  40. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_find_using_the_reference.yml +1151 -0
  41. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_remove_the_evaluation.yml +1203 -0
  42. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name.yml +1374 -0
  43. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name_from_the_instance.yml +1373 -0
  44. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_only_one_item.yml +1103 -0
  45. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_the_same_name.yml +1108 -0
  46. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/was_created_successfully.yml +922 -0
  47. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +269 -282
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +360 -312
  49. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +75 -72
  50. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/debug_mode/raises_on_bad_request.yml +38 -0
  51. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/normal_mode/does_not_raise_on_bad_request.yml +38 -0
  52. metadata +74 -43
@@ -4,17 +4,17 @@ describe BigML::Source do
4
4
  describe "#code" do
5
5
  it "return code when set" do
6
6
  source = BigML::Source.new('code' => 201)
7
- source.code.should == 201
7
+ expect(source.code).to eq(201)
8
8
  end
9
9
 
10
10
  it "return nil when not set" do
11
11
  source = BigML::Source.new('code' => nil)
12
- source.code.should be_nil
12
+ expect(source.code).to be_nil
13
13
  end
14
14
 
15
15
  it "extract source id from resource" do
16
16
  source = BigML::Source.new('resource' => 'souce/4f66a0b903ce8940c5000000')
17
- source.id.should == "4f66a0b903ce8940c5000000"
17
+ expect(source.id).to eq("4f66a0b903ce8940c5000000")
18
18
  end
19
19
  end
20
20
  end
@@ -6,65 +6,67 @@ http_interactions:
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
- headers:
10
- connection:
11
- - close
9
+ headers: {}
12
10
  response:
13
11
  status:
14
12
  code: 200
15
13
  message: OK
16
14
  headers:
15
+ access-control-allow-methods:
16
+ - POST,GET,PUT,DELETE
17
+ access-control-allow-origin:
18
+ - "*"
17
19
  content-type:
18
- - application/json; charset=utf-8
20
+ - application/json
19
21
  date:
20
- - Sat, 14 Jul 2012 15:12:52 GMT
22
+ - Thu, 26 Jun 2014 14:23:58 GMT
21
23
  server:
22
24
  - nginx/1.0.12
25
+ vary:
26
+ - Accept-Encoding
23
27
  content-length:
24
- - '1293'
28
+ - '1002'
25
29
  connection:
26
30
  - Close
27
31
  body:
28
- encoding: US-ASCII
29
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
32
+ encoding: UTF-8
33
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
34
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-07-14T15:19:26.085000", "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
- 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
40
- "source/50018dfe1552681ee400000b", "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": 82, "message": "The source has been created"}, "tags":
45
- [], "type": 0, "updated": "2012-07-14T15:18:24.901000"}]}'
35
+ "application/octet-stream", "created": "2014-06-26T14:21:25.625000", "credits":
36
+ 0.0, "description": "", "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
37
+ "name": "iris.csv", "number_of_datasets": 1, "number_of_ensembles": 0, "number_of_models":
38
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2c65ffa04408550066b7",
39
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
40
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
41
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
42
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
43
+ 5, "elapsed": 291, "message": "The source has been created"}, "subscription":
44
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
45
+ "2014-06-26T14:21:27.310000"}]}'
46
46
  http_version: '1.1'
47
- recorded_at: Sat, 14 Jul 2012 15:18:55 GMT
47
+ recorded_at: Thu, 26 Jun 2014 14:23:59 GMT
48
48
  - request:
49
49
  method: delete
50
- uri: https://bigml.io/dev/andromeda/source/50018dfe1552681ee400000b?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/53ac2c65ffa04408550066b7?username=<USERNAME>&api_key=<API_KEY>
51
51
  body:
52
52
  encoding: US-ASCII
53
53
  string: ''
54
- headers:
55
- connection:
56
- - close
54
+ headers: {}
57
55
  response:
58
56
  status:
59
57
  code: 204
60
58
  message: NO CONTENT
61
59
  headers:
60
+ access-control-allow-methods:
61
+ - POST,GET,PUT,DELETE
62
+ access-control-allow-origin:
63
+ - "*"
62
64
  content-length:
63
65
  - '0'
64
66
  content-type:
65
67
  - text/html; charset=utf-8
66
68
  date:
67
- - Sat, 14 Jul 2012 15:17:58 GMT
69
+ - Thu, 26 Jun 2014 14:23:58 GMT
68
70
  server:
69
71
  - nginx/1.0.12
70
72
  connection:
@@ -73,37 +75,87 @@ http_interactions:
73
75
  encoding: US-ASCII
74
76
  string: ''
75
77
  http_version: '1.1'
76
- recorded_at: Sat, 14 Jul 2012 15:19:01 GMT
78
+ recorded_at: Thu, 26 Jun 2014 14:23:59 GMT
77
79
  - request:
78
80
  method: get
79
81
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
80
82
  body:
81
83
  encoding: US-ASCII
82
84
  string: ''
83
- headers:
84
- connection:
85
- - close
85
+ headers: {}
86
86
  response:
87
87
  status:
88
88
  code: 200
89
89
  message: OK
90
90
  headers:
91
+ access-control-allow-methods:
92
+ - POST,GET,PUT,DELETE
93
+ access-control-allow-origin:
94
+ - "*"
91
95
  content-type:
92
- - application/json; charset=utf-8
96
+ - application/json
93
97
  date:
94
- - Sat, 14 Jul 2012 15:12:59 GMT
98
+ - Thu, 26 Jun 2014 14:23:59 GMT
95
99
  server:
96
100
  - nginx/1.0.12
101
+ vary:
102
+ - Accept-Encoding
103
+ transfer-encoding:
104
+ - chunked
105
+ connection:
106
+ - Close
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
110
+ "total_count": 1}, "objects": [{"all_fields": true, "category": 0, "cluster":
111
+ null, "cluster_status": true, "code": 200, "columns": 5, "created": "2014-06-26T14:21:27.299000",
112
+ "credits": 0.00439453125, "description": "", "dev": true, "field_types": {"categorical":
113
+ 1, "datetime": 0, "numeric": 4, "preferred": 5, "text": 0, "total": 5}, "locale":
114
+ "en_US", "missing_numeric_rows": 0, "name": "iris'' dataset", "number_of_batchcentroids":
115
+ 0, "number_of_batchpredictions": 0, "number_of_clusters": 0, "number_of_ensembles":
116
+ 0, "number_of_evaluations": 0, "number_of_models": 0, "number_of_predictions":
117
+ 0, "objective_field": {"column_number": 4, "datatype": "string", "id": "000004",
118
+ "name": "species", "optype": "categorical", "order": 4, "term_analysis": {"enabled":
119
+ true}}, "price": 0.0, "private": true, "ranges": null, "replacements": null,
120
+ "resource": "dataset/53ac2c67ffa044085d0023c6", "rows": 150, "sample_rates":
121
+ null, "seeds": null, "shared": false, "size": 4608, "source": "source/53ac2c65ffa04408550066b7",
122
+ "source_status": false, "status": {"bytes": 4608, "code": 5, "elapsed": 710,
123
+ "field_errors": [], "message": "The dataset has been created", "row_format_errors":
124
+ [], "serialized_rows": 150}, "subscription": false, "tags": [], "term_limit":
125
+ 32, "updated": "2014-06-26T14:21:28.281000"}]}'
126
+ http_version: '1.1'
127
+ recorded_at: Thu, 26 Jun 2014 14:24:00 GMT
128
+ - request:
129
+ method: delete
130
+ uri: https://bigml.io/dev/andromeda/dataset/53ac2c67ffa044085d0023c6?username=<USERNAME>&api_key=<API_KEY>
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers: {}
135
+ response:
136
+ status:
137
+ code: 204
138
+ message: NO CONTENT
139
+ headers:
140
+ access-control-allow-methods:
141
+ - POST,GET,PUT,DELETE
142
+ access-control-allow-origin:
143
+ - "*"
97
144
  content-length:
98
- - '101'
145
+ - '0'
146
+ content-type:
147
+ - text/html; charset=utf-8
148
+ date:
149
+ - Thu, 26 Jun 2014 14:23:59 GMT
150
+ server:
151
+ - nginx/1.0.12
99
152
  connection:
100
153
  - Close
101
154
  body:
102
155
  encoding: US-ASCII
103
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
104
- "total_count": 0}, "objects": []}'
156
+ string: ''
105
157
  http_version: '1.1'
106
- recorded_at: Sat, 14 Jul 2012 15:19:02 GMT
158
+ recorded_at: Thu, 26 Jun 2014 14:24:00 GMT
107
159
  - request:
108
160
  method: post
109
161
  uri: https://bigml.io/dev/andromeda/source
@@ -114,121 +166,150 @@ http_interactions:
114
166
  content-type:
115
167
  - multipart/form-data; boundary=-----------RubyMultipartPost
116
168
  content-length:
117
- - '5149'
118
- connection:
119
- - close
169
+ - '5150'
120
170
  response:
121
171
  status:
122
172
  code: 201
123
173
  message: CREATED
124
174
  headers:
175
+ access-control-allow-methods:
176
+ - POST,GET,PUT,DELETE
177
+ access-control-allow-origin:
178
+ - "*"
125
179
  content-type:
126
- - application/json; charset=utf-8
180
+ - application/json
127
181
  date:
128
- - Sat, 14 Jul 2012 15:18:00 GMT
182
+ - Thu, 26 Jun 2014 14:23:59 GMT
129
183
  location:
130
- - http://bigml.io/andromeda/source/50018e0c155268794e000016
184
+ - http://bigml.io/andromeda/source/53ac2cffffa04408550066c5
131
185
  server:
132
186
  - nginx/1.0.12
133
- content-length:
134
- - '580'
187
+ transfer-encoding:
188
+ - chunked
135
189
  connection:
136
190
  - Close
137
191
  body:
138
- encoding: US-ASCII
139
- string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
140
- "created": "2012-07-14T15:19:40.726139", "credits": 0.0, "description": "",
141
- "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
142
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
143
- 0, "private": true, "resource": "source/50018e0c155268794e000016", "size":
144
- 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
145
- been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
146
- "2012-07-14T15:19:40.726170"}'
192
+ encoding: UTF-8
193
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
194
+ "created": "2014-06-26T14:23:59.666000", "credits": 0.0, "description": "",
195
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
196
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
197
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
198
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
199
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
200
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
201
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
202
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
203
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
204
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2cffffa04408550066c5",
205
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
206
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
207
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
208
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
209
+ 5, "elapsed": 319, "message": "The source has been created"}, "subscription":
210
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
211
+ "2014-06-26T14:24:00.180000"}'
147
212
  http_version: '1.1'
148
- recorded_at: Sat, 14 Jul 2012 15:19:03 GMT
213
+ recorded_at: Thu, 26 Jun 2014 14:24:00 GMT
149
214
  - request:
150
215
  method: post
151
216
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
152
217
  body:
153
218
  encoding: UTF-8
154
- string: ! '{"source":"source/50018e0c155268794e000016"}'
219
+ string: '{"source":"source/53ac2cffffa04408550066c5"}'
155
220
  headers:
156
221
  content-type:
157
222
  - application/json
158
- connection:
159
- - close
160
223
  response:
161
224
  status:
162
225
  code: 201
163
226
  message: CREATED
164
227
  headers:
228
+ access-control-allow-methods:
229
+ - POST,GET,PUT,DELETE
230
+ access-control-allow-origin:
231
+ - "*"
165
232
  content-type:
166
- - application/json; charset=utf-8
233
+ - application/json
167
234
  date:
168
- - Sat, 14 Jul 2012 15:13:03 GMT
235
+ - Thu, 26 Jun 2014 14:24:01 GMT
169
236
  location:
170
- - http://bigml.io/andromeda/dataset/50018e0e1552681d6800001a
237
+ - http://bigml.io/andromeda/dataset/53ac2d010af5e815350042b9
171
238
  server:
172
239
  - nginx/1.0.12
173
- content-length:
174
- - '934'
240
+ transfer-encoding:
241
+ - chunked
175
242
  connection:
176
243
  - Close
177
244
  body:
178
- encoding: US-ASCII
179
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:19:42.928241",
180
- "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
181
- {"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
182
- {"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
183
- {"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
184
- {"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
185
- {"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
186
- "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
187
- 0, "private": true, "resource": "dataset/50018e0e1552681d6800001a", "rows":
188
- 0, "size": 4608, "source": "source/50018e0c155268794e000016", "source_status":
189
- true, "status": {"code": 1, "message": "The dataset is being processed and
190
- will be created soon"}, "tags": [], "updated": "2012-07-14T15:19:42.928275"}'
245
+ encoding: UTF-8
246
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
247
+ true, "code": 201, "columns": 0, "created": "2014-06-26T14:24:01.356423",
248
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
249
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
250
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
251
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
252
+ "total": 0}, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
253
+ 0}, "locale": "en-US", "missing_numeric_rows": 0, "missing_tokens": [], "name":
254
+ "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
255
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
256
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
257
+ true, "ranges": null, "replacements": null, "resource": "dataset/53ac2d010af5e815350042b9",
258
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
259
+ "source": "source/53ac2cffffa04408550066c5", "source_status": true, "status":
260
+ {"code": 1, "message": "The dataset is being processed and will be created
261
+ soon"}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-26T14:24:01.356466",
262
+ "user_metadata": {}}'
191
263
  http_version: '1.1'
192
- recorded_at: Sat, 14 Jul 2012 15:19:06 GMT
264
+ recorded_at: Thu, 26 Jun 2014 14:24:02 GMT
193
265
  - request:
194
266
  method: post
195
267
  uri: https://bigml.io/dev/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
196
268
  body:
197
269
  encoding: UTF-8
198
- string: ! '{"dataset":"dataset/50018e0e1552681d6800001a"}'
270
+ string: '{"dataset":"dataset/53ac2d010af5e815350042b9"}'
199
271
  headers:
200
272
  content-type:
201
273
  - application/json
202
- connection:
203
- - close
204
274
  response:
205
275
  status:
206
276
  code: 201
207
277
  message: CREATED
208
278
  headers:
279
+ access-control-allow-methods:
280
+ - POST,GET,PUT,DELETE
281
+ access-control-allow-origin:
282
+ - "*"
209
283
  content-type:
210
- - application/json; charset=utf-8
284
+ - application/json
211
285
  date:
212
- - Sat, 14 Jul 2012 15:18:04 GMT
286
+ - Thu, 26 Jun 2014 14:24:01 GMT
213
287
  location:
214
- - http://bigml.io/andromeda/model/50018dd0035d0741ca000012
288
+ - http://bigml.io/andromeda/model/53ac2d010af5e815350042bc
215
289
  server:
216
290
  - nginx/1.0.12
217
- content-length:
218
- - '704'
291
+ transfer-encoding:
292
+ - chunked
219
293
  connection:
220
294
  - Close
221
295
  body:
222
- encoding: US-ASCII
223
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:18:40.347897",
224
- "credits": 0.017578125, "dataset": "dataset/50018e0e1552681d6800001a", "dataset_status":
225
- true, "description": "", "dev": true, "holdout": 0.0, "input_fields": [],
226
- "locale": "en_US", "max_columns": 5, "max_rows": 150, "name": "iris'' dataset
227
- model", "number_of_predictions": 0, "objective_fields": [], "private": true,
228
- "range": [1, 150], "resource": "model/50018dd0035d0741ca000012", "rows": 150,
229
- "size": 4608, "source": "source/50018e0c155268794e000016", "source_status":
230
- true, "status": {"code": 1, "message": "The model is being processed and will
231
- be created soon"}, "tags": [], "updated": "2012-07-14T15:18:40.347920"}'
296
+ encoding: UTF-8
297
+ string: '{"balance_objective": false, "category": 0, "code": 201, "columns":
298
+ 5, "created": "2014-06-26T14:24:01.720765", "credits": 0.017578125, "credits_per_prediction":
299
+ 0.0, "dataset": "dataset/53ac2d010af5e815350042b9", "dataset_field_types":
300
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
301
+ "total": 5}, "dataset_status": true, "dataset_type": 0, "description": "",
302
+ "dev": true, "ensemble": false, "ensemble_id": "", "ensemble_index": 0, "excluded_fields":
303
+ null, "input_fields": null, "locale": "en-US", "max_columns": 5, "max_rows":
304
+ 0, "model": {"fields": {}, "root": {}}, "name": "iris'' dataset model", "node_threshold":
305
+ 512, "number_of_batchpredictions": 0, "number_of_evaluations": 0, "number_of_predictions":
306
+ 0, "number_of_public_predictions": 0, "objective_field": null, "objective_fields":
307
+ [], "ordering": 0, "out_of_bag": false, "price": 0.0, "private": true, "randomize":
308
+ false, "range": [1, 0], "replacement": false, "resource": "model/53ac2d010af5e815350042bc",
309
+ "rows": 0, "sample_rate": 1.0, "shared": false, "size": 4608, "source": "source/53ac2cffffa04408550066c5",
310
+ "source_status": true, "status": {"code": 0, "message": "The dataset is not
311
+ ready yet"}, "subscription": false, "tags": [], "updated": "2014-06-26T14:24:01.720799",
312
+ "white_box": false}'
232
313
  http_version: '1.1'
233
- recorded_at: Sat, 14 Jul 2012 15:19:07 GMT
234
- recorded_with: VCR 2.2.2
314
+ recorded_at: Thu, 26 Jun 2014 14:24:02 GMT
315
+ recorded_with: VCR 2.9.2
@@ -6,65 +6,67 @@ http_interactions:
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
- headers:
10
- connection:
11
- - close
9
+ headers: {}
12
10
  response:
13
11
  status:
14
12
  code: 200
15
13
  message: OK
16
14
  headers:
15
+ access-control-allow-methods:
16
+ - POST,GET,PUT,DELETE
17
+ access-control-allow-origin:
18
+ - "*"
17
19
  content-type:
18
- - application/json; charset=utf-8
20
+ - application/json
19
21
  date:
20
- - Sat, 14 Jul 2012 15:16:40 GMT
22
+ - Thu, 26 Jun 2014 14:21:24 GMT
21
23
  server:
22
24
  - nginx/1.0.12
25
+ vary:
26
+ - Accept-Encoding
23
27
  content-length:
24
- - '1293'
28
+ - '1002'
25
29
  connection:
26
30
  - Close
27
31
  body:
28
- encoding: US-ASCII
29
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
32
+ encoding: UTF-8
33
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
34
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-07-14T15:17:11.468000", "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": 0, "number_of_predictions": 0, "private": true, "resource":
40
- "source/50018d77035d074059000020", "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": 87, "message": "The source has been created"}, "tags":
45
- [], "type": 0, "updated": "2012-07-14T15:18:17.633000"}]}'
35
+ "application/octet-stream", "created": "2014-06-26T14:17:22.582000", "credits":
36
+ 0.0, "description": "", "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
37
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
38
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2b720af5e8152c005d3d",
39
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
40
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
41
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
42
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
43
+ 5, "elapsed": 410, "message": "The source has been created"}, "subscription":
44
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
45
+ "2014-06-26T14:17:23.183000"}]}'
46
46
  http_version: '1.1'
47
- recorded_at: Sat, 14 Jul 2012 15:17:43 GMT
47
+ recorded_at: Thu, 26 Jun 2014 14:21:25 GMT
48
48
  - request:
49
49
  method: delete
50
- uri: https://bigml.io/dev/andromeda/source/50018d77035d074059000020?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/53ac2b720af5e8152c005d3d?username=<USERNAME>&api_key=<API_KEY>
51
51
  body:
52
52
  encoding: US-ASCII
53
53
  string: ''
54
- headers:
55
- connection:
56
- - close
54
+ headers: {}
57
55
  response:
58
56
  status:
59
57
  code: 204
60
58
  message: NO CONTENT
61
59
  headers:
60
+ access-control-allow-methods:
61
+ - POST,GET,PUT,DELETE
62
+ access-control-allow-origin:
63
+ - "*"
62
64
  content-length:
63
65
  - '0'
64
66
  content-type:
65
67
  - text/html; charset=utf-8
66
68
  date:
67
- - Sat, 14 Jul 2012 15:11:44 GMT
69
+ - Thu, 26 Jun 2014 14:21:25 GMT
68
70
  server:
69
71
  - nginx/1.0.12
70
72
  connection:
@@ -73,25 +75,27 @@ http_interactions:
73
75
  encoding: US-ASCII
74
76
  string: ''
75
77
  http_version: '1.1'
76
- recorded_at: Sat, 14 Jul 2012 15:17:47 GMT
78
+ recorded_at: Thu, 26 Jun 2014 14:21:26 GMT
77
79
  - request:
78
80
  method: get
79
81
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
80
82
  body:
81
83
  encoding: US-ASCII
82
84
  string: ''
83
- headers:
84
- connection:
85
- - close
85
+ headers: {}
86
86
  response:
87
87
  status:
88
88
  code: 200
89
89
  message: OK
90
90
  headers:
91
+ access-control-allow-methods:
92
+ - POST,GET,PUT,DELETE
93
+ access-control-allow-origin:
94
+ - "*"
91
95
  content-type:
92
- - application/json; charset=utf-8
96
+ - application/json
93
97
  date:
94
- - Sat, 14 Jul 2012 15:16:45 GMT
98
+ - Thu, 26 Jun 2014 14:21:25 GMT
95
99
  server:
96
100
  - nginx/1.0.12
97
101
  transfer-encoding:
@@ -99,47 +103,11 @@ http_interactions:
99
103
  connection:
100
104
  - Close
101
105
  body:
102
- encoding: US-ASCII
103
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
104
- "total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
105
- "created": "2012-07-14T15:18:17.629000", "credits": 0.00439453125, "description":
106
- "", "dev": true, "locale": "en_US", "name": "iris'' dataset", "number_of_models":
107
- 0, "number_of_predictions": 0, "private": true, "resource": "dataset/50018db91552681edf00000d",
108
- "rows": 150, "size": 4608, "source": "source/50018d77035d074059000020", "source_status":
109
- false, "status": {"bytes": 4608, "code": 5, "elapsed": 177, "field_errors":
110
- [], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
111
- 150}, "tags": [], "updated": "2012-07-14T15:18:19.088000"}]}'
112
- http_version: '1.1'
113
- recorded_at: Sat, 14 Jul 2012 15:17:47 GMT
114
- - request:
115
- method: delete
116
- uri: https://bigml.io/dev/andromeda/dataset/50018db91552681edf00000d?username=<USERNAME>&api_key=<API_KEY>
117
- body:
118
- encoding: US-ASCII
119
- string: ''
120
- headers:
121
- connection:
122
- - close
123
- response:
124
- status:
125
- code: 204
126
- message: NO CONTENT
127
- headers:
128
- content-length:
129
- - '0'
130
- content-type:
131
- - text/html; charset=utf-8
132
- date:
133
- - Sat, 14 Jul 2012 15:11:46 GMT
134
- server:
135
- - nginx/1.0.12
136
- connection:
137
- - Close
138
- body:
139
- encoding: US-ASCII
140
- string: ''
106
+ encoding: UTF-8
107
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
108
+ "total_count": 0}, "objects": []}'
141
109
  http_version: '1.1'
142
- recorded_at: Sat, 14 Jul 2012 15:17:49 GMT
110
+ recorded_at: Thu, 26 Jun 2014 14:21:26 GMT
143
111
  - request:
144
112
  method: post
145
113
  uri: https://bigml.io/dev/andromeda/source
@@ -150,145 +118,158 @@ http_interactions:
150
118
  content-type:
151
119
  - multipart/form-data; boundary=-----------RubyMultipartPost
152
120
  content-length:
153
- - '5149'
154
- connection:
155
- - close
121
+ - '5150'
156
122
  response:
157
123
  status:
158
124
  code: 201
159
125
  message: CREATED
160
126
  headers:
127
+ access-control-allow-methods:
128
+ - POST,GET,PUT,DELETE
129
+ access-control-allow-origin:
130
+ - "*"
161
131
  content-type:
162
- - application/json; charset=utf-8
132
+ - application/json
163
133
  date:
164
- - Sat, 14 Jul 2012 15:16:48 GMT
134
+ - Thu, 26 Jun 2014 14:21:25 GMT
165
135
  location:
166
- - http://bigml.io/andromeda/source/50018d84035d074058000010
136
+ - http://bigml.io/andromeda/source/53ac2c65ffa04408550066b7
167
137
  server:
168
138
  - nginx/1.0.12
169
- content-length:
170
- - '580'
139
+ transfer-encoding:
140
+ - chunked
171
141
  connection:
172
142
  - Close
173
143
  body:
174
- encoding: US-ASCII
175
- string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
176
- "created": "2012-07-14T15:17:24.535656", "credits": 0.0, "description": "",
177
- "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
178
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
179
- 0, "private": true, "resource": "source/50018d84035d074058000010", "size":
180
- 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
181
- been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
182
- "2012-07-14T15:17:24.535679"}'
144
+ encoding: UTF-8
145
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
146
+ "created": "2014-06-26T14:21:25.625000", "credits": 0.0, "description": "",
147
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
148
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
149
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
150
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
151
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
152
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
153
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
154
+ 0, "query_total": 5, "total": 5}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
155
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
156
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2c65ffa04408550066b7",
157
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
158
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
159
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
160
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
161
+ 5, "elapsed": 291, "message": "The source has been created"}, "subscription":
162
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
163
+ "2014-06-26T14:21:26.093000"}'
183
164
  http_version: '1.1'
184
- recorded_at: Sat, 14 Jul 2012 15:17:52 GMT
165
+ recorded_at: Thu, 26 Jun 2014 14:21:26 GMT
185
166
  - request:
186
167
  method: post
187
168
  uri: https://bigml.io/dev/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
188
169
  body:
189
170
  encoding: UTF-8
190
- string: ! '{"source":"source/50018d84035d074058000010"}'
171
+ string: '{"source":"source/53ac2c65ffa04408550066b7"}'
191
172
  headers:
192
173
  content-type:
193
174
  - application/json
194
- connection:
195
- - close
196
175
  response:
197
176
  status:
198
177
  code: 201
199
178
  message: CREATED
200
179
  headers:
180
+ access-control-allow-methods:
181
+ - POST,GET,PUT,DELETE
182
+ access-control-allow-origin:
183
+ - "*"
201
184
  content-type:
202
- - application/json; charset=utf-8
185
+ - application/json
203
186
  date:
204
- - Sat, 14 Jul 2012 15:11:50 GMT
187
+ - Thu, 26 Jun 2014 14:21:27 GMT
205
188
  location:
206
- - http://bigml.io/andromeda/dataset/50018d86035d074059000023
189
+ - http://bigml.io/andromeda/dataset/53ac2c67ffa044085d0023c6
207
190
  server:
208
191
  - nginx/1.0.12
209
- content-length:
210
- - '934'
192
+ transfer-encoding:
193
+ - chunked
211
194
  connection:
212
195
  - Close
213
196
  body:
214
- encoding: US-ASCII
215
- string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-07-14T15:17:26.446635",
216
- "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
217
- {"column_number": 0, "name": "sepal length", "optype": "numeric"}, "000001":
218
- {"column_number": 1, "name": "sepal width", "optype": "numeric"}, "000002":
219
- {"column_number": 2, "name": "petal length", "optype": "numeric"}, "000003":
220
- {"column_number": 3, "name": "petal width", "optype": "numeric"}, "000004":
221
- {"column_number": 4, "name": "species", "optype": "categorical"}}, "locale":
222
- "en_US", "name": "iris'' dataset", "number_of_models": 0, "number_of_predictions":
223
- 0, "private": true, "resource": "dataset/50018d86035d074059000023", "rows":
224
- 0, "size": 4608, "source": "source/50018d84035d074058000010", "source_status":
225
- true, "status": {"code": 1, "message": "The dataset is being processed and
226
- will be created soon"}, "tags": [], "updated": "2012-07-14T15:17:26.446655"}'
197
+ encoding: UTF-8
198
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
199
+ true, "code": 201, "columns": 0, "created": "2014-06-26T14:21:27.299172",
200
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
201
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
202
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
203
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
204
+ "total": 0}, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
205
+ 0}, "locale": "en-US", "missing_numeric_rows": 0, "missing_tokens": [], "name":
206
+ "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
207
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
208
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
209
+ true, "ranges": null, "replacements": null, "resource": "dataset/53ac2c67ffa044085d0023c6",
210
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
211
+ "source": "source/53ac2c65ffa04408550066b7", "source_status": true, "status":
212
+ {"code": 1, "message": "The dataset is being processed and will be created
213
+ soon"}, "subscription": false, "tags": [], "term_limit": 32, "updated": "2014-06-26T14:21:27.299211",
214
+ "user_metadata": {}}'
227
215
  http_version: '1.1'
228
- recorded_at: Sat, 14 Jul 2012 15:17:53 GMT
216
+ recorded_at: Thu, 26 Jun 2014 14:21:28 GMT
229
217
  - request:
230
218
  method: get
231
- uri: https://bigml.io/dev/andromeda/dataset/50018d86035d074059000023?username=<USERNAME>&api_key=<API_KEY>
219
+ uri: https://bigml.io/dev/andromeda/dataset/53ac2c67ffa044085d0023c6?username=<USERNAME>&api_key=<API_KEY>
232
220
  body:
233
221
  encoding: US-ASCII
234
222
  string: ''
235
- headers:
236
- connection:
237
- - close
223
+ headers: {}
238
224
  response:
239
225
  status:
240
226
  code: 200
241
227
  message: OK
242
228
  headers:
229
+ access-control-allow-methods:
230
+ - POST,GET,PUT,DELETE
231
+ access-control-allow-origin:
232
+ - "*"
243
233
  content-type:
244
- - application/json; charset=utf-8
234
+ - application/json
245
235
  date:
246
- - Sat, 14 Jul 2012 15:16:52 GMT
236
+ - Thu, 26 Jun 2014 14:21:27 GMT
247
237
  server:
248
238
  - nginx/1.0.12
249
- content-length:
250
- - '2939'
239
+ vary:
240
+ - Accept-Encoding
241
+ transfer-encoding:
242
+ - chunked
251
243
  connection:
252
244
  - Close
253
245
  body:
254
- encoding: US-ASCII
255
- string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-07-14T15:17:26.446000",
256
- "credits": 0.00439453125, "description": "", "dev": true, "fields": {"000000":
257
- {"column_number": 0, "datatype": "double", "name": "sepal length", "optype":
258
- "numeric", "preferred": true, "summary": {"maximum": 7.9, "median": 5.77889,
259
- "minimum": 4.3, "missing_count": 0, "population": 150, "splits": [4.51526,
260
- 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992, 5.11148, 5.18177, 5.35681,
261
- 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889, 5.85381, 5.97078, 6.05104,
262
- 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383, 6.63013, 6.70719, 6.79218,
263
- 6.92597, 7.20423, 7.64746], "sum": 876.5, "sum_squares": 5223.85}}, "000001":
264
- {"column_number": 1, "datatype": "double", "name": "sepal width", "optype":
265
- "numeric", "preferred": true, "summary": {"counts": [[2, 1], [2.2, 3], [2.3,
266
- 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14], [2.9, 10], [3, 26],
267
- [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6, 4], [3.7, 3], [3.8,
268
- 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum": 4.4, "median":
269
- 3.02044, "minimum": 2, "missing_count": 0, "population": 150, "sum": 458.6,
270
- "sum_squares": 1430.4}}, "000002": {"column_number": 2, "datatype": "double",
271
- "name": "petal length", "optype": "numeric", "preferred": true, "summary":
272
- {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count": 0, "population":
273
- 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567, 1.48173, 1.51859,
274
- 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469, 4.18243, 4.34142,
275
- 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807, 5.1064, 5.20938,
276
- 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum": 563.7, "sum_squares":
277
- 2582.71}}, "000003": {"column_number": 3, "datatype": "double", "name": "petal
278
- width", "optype": "numeric", "preferred": true, "summary": {"counts": [[0.1,
279
- 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1, 7], [1.1, 3], [1.2,
280
- 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2], [1.8, 12], [1.9, 5],
281
- [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5, 3]], "maximum": 2.5,
282
- "median": 1.32848, "minimum": 0.1, "missing_count": 0, "population": 150,
283
- "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number": 4, "datatype":
284
- "string", "name": "species", "optype": "categorical", "preferred": true, "summary":
285
- {"categories": [["Iris-versicolor", 50], ["Iris-setosa", 50], ["Iris-virginica",
286
- 50]], "missing_count": 0}}}, "locale": "en_US", "name": "iris'' dataset",
287
- "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
288
- "dataset/50018d86035d074059000023", "rows": 150, "size": 4608, "source": "source/50018d84035d074058000010",
289
- "source_status": true, "status": {"bytes": 4608, "code": 5, "elapsed": 107,
290
- "field_errors": [], "message": "The dataset has been created", "row_format_errors":
291
- [], "serialized_rows": 150}, "tags": [], "updated": "2012-07-14T15:17:26.588000"}'
246
+ encoding: UTF-8
247
+ string: '{"all_fields": true, "category": 0, "cluster": null, "cluster_status":
248
+ true, "code": 200, "columns": 5, "created": "2014-06-26T14:21:27.299000",
249
+ "credits": 0.00439453125, "description": "", "dev": true, "download": {"code":
250
+ 0, "excluded_input_fields": [], "header": true, "input_fields": [], "message":
251
+ "", "preview": [], "separator": ","}, "excluded_fields": [], "field_types":
252
+ {"categorical": 0, "datetime": 0, "numeric": 0, "preferred": 0, "text": 0,
253
+ "total": 5}, "fields": {"000000": {"column_number": 0, "name": "sepal length",
254
+ "optype": "numeric", "order": 0}, "000001": {"column_number": 1, "name": "sepal
255
+ width", "optype": "numeric", "order": 1}, "000002": {"column_number": 2, "name":
256
+ "petal length", "optype": "numeric", "order": 2}, "000003": {"column_number":
257
+ 3, "name": "petal width", "optype": "numeric", "order": 3}, "000004": {"column_number":
258
+ 4, "name": "species", "optype": "categorical", "order": 4, "term_analysis":
259
+ {"enabled": true}}}, "fields_meta": {"count": 5, "limit": 1000, "offset":
260
+ 0, "query_total": 5, "total": 5}, "locale": "en_US", "missing_numeric_rows":
261
+ 0, "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!", "#VALUE!",
262
+ "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil", "na", "#N/A",
263
+ "NA"], "name": "iris'' dataset", "number_of_batchcentroids": 0, "number_of_batchpredictions":
264
+ 0, "number_of_clusters": 0, "number_of_ensembles": 0, "number_of_evaluations":
265
+ 0, "number_of_models": 0, "number_of_predictions": 0, "price": 0.0, "private":
266
+ true, "ranges": null, "replacements": null, "resource": "dataset/53ac2c67ffa044085d0023c6",
267
+ "rows": 0, "sample_rates": null, "seeds": null, "shared": false, "size": 4608,
268
+ "source": "source/53ac2c65ffa04408550066b7", "source_status": true, "status":
269
+ {"bytes": 0, "code": 2, "elapsed": 0, "field_errors": [], "message": "The
270
+ dataset creation has been started. No partial summary yet", "row_format_errors":
271
+ [], "serialized_rows": 0}, "subscription": false, "tags": [], "term_limit":
272
+ 32, "updated": "2014-06-26T14:21:27.568000", "user_metadata": {}}'
292
273
  http_version: '1.1'
293
- recorded_at: Sat, 14 Jul 2012 15:17:55 GMT
294
- recorded_with: VCR 2.2.2
274
+ recorded_at: Thu, 26 Jun 2014 14:21:28 GMT
275
+ recorded_with: VCR 2.9.2