big_ml 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/.rvmrc.example +1 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +49 -0
- data/Rakefile +6 -0
- data/TODO.md +6 -0
- data/big_ml.gemspec +23 -0
- data/lib/big_ml/authenticable.rb +10 -0
- data/lib/big_ml/base.rb +51 -0
- data/lib/big_ml/client.rb +29 -0
- data/lib/big_ml/config.rb +30 -0
- data/lib/big_ml/dataset.rb +19 -0
- data/lib/big_ml/model.rb +21 -0
- data/lib/big_ml/prediction.rb +19 -0
- data/lib/big_ml/request.rb +29 -0
- data/lib/big_ml/source.rb +18 -0
- data/lib/big_ml/version.rb +3 -0
- data/lib/big_ml.rb +13 -0
- data/spec/fixtures/iris.csv +151 -0
- data/spec/integration/dataset_spec.rb +51 -0
- data/spec/integration/model_spec.rb +53 -0
- data/spec/integration/prediction_spec.rb +55 -0
- data/spec/integration/source_spec.rb +55 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/units/client_spec.rb +50 -0
- data/spec/units/source_spec.rb +20 -0
- data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +136 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +293 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +318 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +360 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +265 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +265 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +149 -0
- data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +166 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +446 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +426 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +558 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +258 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_file_name.yml +375 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +375 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +298 -0
- data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +305 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +502 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +547 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +546 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +503 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +420 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +297 -0
- data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +136 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +191 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +195 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +279 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +192 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +192 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +105 -0
- metadata +224 -0
@@ -0,0 +1,166 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
connection:
|
11
|
+
- close
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
date:
|
20
|
+
- Wed, 20 Jun 2012 03:53:41 GMT
|
21
|
+
server:
|
22
|
+
- nginx/1.0.12
|
23
|
+
content-length:
|
24
|
+
- '1280'
|
25
|
+
connection:
|
26
|
+
- Close
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
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:57:06.463000", "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": 0, "number_of_models": 0, "number_of_predictions":
|
39
|
+
0, "private": true, "resource": "source/4fe14a12035d074a21000144", "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": 95, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:57:37.421000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Wed, 20 Jun 2012 03:57:31 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fe14a12035d074a21000144?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:56:02 GMT
|
67
|
+
server:
|
68
|
+
- nginx/1.0.12
|
69
|
+
connection:
|
70
|
+
- Close
|
71
|
+
body:
|
72
|
+
encoding: US-ASCII
|
73
|
+
string: ''
|
74
|
+
http_version: '1.1'
|
75
|
+
recorded_at: Wed, 20 Jun 2012 03:57:33 GMT
|
76
|
+
- request:
|
77
|
+
method: get
|
78
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
79
|
+
body:
|
80
|
+
encoding: US-ASCII
|
81
|
+
string: ''
|
82
|
+
headers:
|
83
|
+
connection:
|
84
|
+
- close
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
content-type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
date:
|
93
|
+
- Wed, 20 Jun 2012 03:53:44 GMT
|
94
|
+
server:
|
95
|
+
- nginx/1.0.12
|
96
|
+
content-length:
|
97
|
+
- '101'
|
98
|
+
connection:
|
99
|
+
- Close
|
100
|
+
body:
|
101
|
+
encoding: US-ASCII
|
102
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
103
|
+
"total_count": 0}, "objects": []}'
|
104
|
+
http_version: '1.1'
|
105
|
+
recorded_at: Wed, 20 Jun 2012 03:57:34 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
connection:
|
114
|
+
- close
|
115
|
+
response:
|
116
|
+
status:
|
117
|
+
code: 200
|
118
|
+
message: OK
|
119
|
+
headers:
|
120
|
+
content-type:
|
121
|
+
- application/json; charset=utf-8
|
122
|
+
date:
|
123
|
+
- Wed, 20 Jun 2012 03:56:04 GMT
|
124
|
+
server:
|
125
|
+
- nginx/1.0.12
|
126
|
+
content-length:
|
127
|
+
- '101'
|
128
|
+
connection:
|
129
|
+
- Close
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
133
|
+
"total_count": 0}, "objects": []}'
|
134
|
+
http_version: '1.1'
|
135
|
+
recorded_at: Wed, 20 Jun 2012 03:57:35 GMT
|
136
|
+
- request:
|
137
|
+
method: get
|
138
|
+
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
139
|
+
body:
|
140
|
+
encoding: US-ASCII
|
141
|
+
string: ''
|
142
|
+
headers:
|
143
|
+
connection:
|
144
|
+
- close
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 200
|
148
|
+
message: OK
|
149
|
+
headers:
|
150
|
+
content-type:
|
151
|
+
- application/json; charset=utf-8
|
152
|
+
date:
|
153
|
+
- Wed, 20 Jun 2012 03:53:45 GMT
|
154
|
+
server:
|
155
|
+
- nginx/1.0.12
|
156
|
+
content-length:
|
157
|
+
- '101'
|
158
|
+
connection:
|
159
|
+
- Close
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
163
|
+
"total_count": 0}, "objects": []}'
|
164
|
+
http_version: '1.1'
|
165
|
+
recorded_at: Wed, 20 Jun 2012 03:57:36 GMT
|
166
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,446 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
connection:
|
11
|
+
- close
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
date:
|
20
|
+
- Wed, 20 Jun 2012 03:54:09 GMT
|
21
|
+
server:
|
22
|
+
- nginx/1.0.12
|
23
|
+
content-length:
|
24
|
+
- '1280'
|
25
|
+
connection:
|
26
|
+
- Close
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
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:57:43.613000", "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
|
+
0, "private": true, "resource": "source/4fe14a37035d074a1b000113", "size":
|
40
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
41
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
42
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
43
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:58:14.686000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Wed, 20 Jun 2012 03:57:59 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fe14a37035d074a1b000113?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:56:30 GMT
|
67
|
+
server:
|
68
|
+
- nginx/1.0.12
|
69
|
+
connection:
|
70
|
+
- Close
|
71
|
+
body:
|
72
|
+
encoding: US-ASCII
|
73
|
+
string: ''
|
74
|
+
http_version: '1.1'
|
75
|
+
recorded_at: Wed, 20 Jun 2012 03:58:01 GMT
|
76
|
+
- request:
|
77
|
+
method: get
|
78
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
79
|
+
body:
|
80
|
+
encoding: US-ASCII
|
81
|
+
string: ''
|
82
|
+
headers:
|
83
|
+
connection:
|
84
|
+
- close
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
content-type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
date:
|
93
|
+
- Wed, 20 Jun 2012 03:54:12 GMT
|
94
|
+
server:
|
95
|
+
- nginx/1.0.12
|
96
|
+
content-length:
|
97
|
+
- '703'
|
98
|
+
connection:
|
99
|
+
- Close
|
100
|
+
body:
|
101
|
+
encoding: US-ASCII
|
102
|
+
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:57:44.916000", "credits": 0.0087890625, "description":
|
105
|
+
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
|
106
|
+
0, "private": true, "resource": "dataset/4fe14a38035d074a1c0000fb", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fe14a37035d074a1b000113", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 182, "field_errors":
|
109
|
+
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
+
150}, "tags": [], "updated": "2012-06-20T03:58:14.693000"}]}'
|
111
|
+
http_version: '1.1'
|
112
|
+
recorded_at: Wed, 20 Jun 2012 03:58:02 GMT
|
113
|
+
- request:
|
114
|
+
method: delete
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fe14a38035d074a1c0000fb?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:56:33 GMT
|
133
|
+
server:
|
134
|
+
- nginx/1.0.12
|
135
|
+
connection:
|
136
|
+
- Close
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
140
|
+
http_version: '1.1'
|
141
|
+
recorded_at: Wed, 20 Jun 2012 03:58:04 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
connection:
|
150
|
+
- close
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
content-type:
|
157
|
+
- application/json; charset=utf-8
|
158
|
+
date:
|
159
|
+
- Wed, 20 Jun 2012 03:54:14 GMT
|
160
|
+
server:
|
161
|
+
- nginx/1.0.12
|
162
|
+
content-length:
|
163
|
+
- '843'
|
164
|
+
connection:
|
165
|
+
- Close
|
166
|
+
body:
|
167
|
+
encoding: US-ASCII
|
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-20T03:58:14.682000", "credits": 0.03515625, "dataset":
|
171
|
+
"dataset/4fe14a38035d074a1c0000fb", "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/4fe14a561552687d42000148", "rows":
|
176
|
+
150, "size": 4608, "source": "source/4fe14a37035d074a1b000113", "source_status":
|
177
|
+
false, "status": {"code": 5, "elapsed": 158, "message": "The model has been
|
178
|
+
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:58:16.012000"}]}'
|
179
|
+
http_version: '1.1'
|
180
|
+
recorded_at: Wed, 20 Jun 2012 03:58:05 GMT
|
181
|
+
- request:
|
182
|
+
method: delete
|
183
|
+
uri: https://bigml.io/andromeda/model/4fe14a561552687d42000148?username=<USERNAME>&api_key=<API_KEY>
|
184
|
+
body:
|
185
|
+
encoding: US-ASCII
|
186
|
+
string: ''
|
187
|
+
headers:
|
188
|
+
connection:
|
189
|
+
- close
|
190
|
+
response:
|
191
|
+
status:
|
192
|
+
code: 204
|
193
|
+
message: NO CONTENT
|
194
|
+
headers:
|
195
|
+
content-length:
|
196
|
+
- '0'
|
197
|
+
content-type:
|
198
|
+
- text/html; charset=utf-8
|
199
|
+
date:
|
200
|
+
- Wed, 20 Jun 2012 03:56:35 GMT
|
201
|
+
server:
|
202
|
+
- nginx/1.0.12
|
203
|
+
connection:
|
204
|
+
- Close
|
205
|
+
body:
|
206
|
+
encoding: US-ASCII
|
207
|
+
string: ''
|
208
|
+
http_version: '1.1'
|
209
|
+
recorded_at: Wed, 20 Jun 2012 03:58:06 GMT
|
210
|
+
- request:
|
211
|
+
method: post
|
212
|
+
uri: https://bigml.io/andromeda/source
|
213
|
+
body:
|
214
|
+
encoding: US-ASCII
|
215
|
+
string: ''
|
216
|
+
headers:
|
217
|
+
content-type:
|
218
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
219
|
+
content-length:
|
220
|
+
- '5147'
|
221
|
+
connection:
|
222
|
+
- close
|
223
|
+
response:
|
224
|
+
status:
|
225
|
+
code: 201
|
226
|
+
message: CREATED
|
227
|
+
headers:
|
228
|
+
content-type:
|
229
|
+
- application/json; charset=utf-8
|
230
|
+
date:
|
231
|
+
- Wed, 20 Jun 2012 03:54:17 GMT
|
232
|
+
location:
|
233
|
+
- http://bigml.io/andromeda/source/4fe14a601552687d4200014b
|
234
|
+
server:
|
235
|
+
- nginx/1.0.12
|
236
|
+
content-length:
|
237
|
+
- '567'
|
238
|
+
connection:
|
239
|
+
- Close
|
240
|
+
body:
|
241
|
+
encoding: US-ASCII
|
242
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
243
|
+
"created": "2012-06-20T03:58:24.957346", "credits": 0.0, "description": "",
|
244
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
245
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
246
|
+
0, "private": true, "resource": "source/4fe14a601552687d4200014b", "size":
|
247
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
248
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
249
|
+
"2012-06-20T03:58:24.957368"}'
|
250
|
+
http_version: '1.1'
|
251
|
+
recorded_at: Wed, 20 Jun 2012 03:58:08 GMT
|
252
|
+
- request:
|
253
|
+
method: post
|
254
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
255
|
+
body:
|
256
|
+
encoding: UTF-8
|
257
|
+
string: ! '{"source":"source/4fe14a601552687d4200014b"}'
|
258
|
+
headers:
|
259
|
+
content-type:
|
260
|
+
- application/json
|
261
|
+
connection:
|
262
|
+
- close
|
263
|
+
response:
|
264
|
+
status:
|
265
|
+
code: 201
|
266
|
+
message: CREATED
|
267
|
+
headers:
|
268
|
+
content-type:
|
269
|
+
- application/json; charset=utf-8
|
270
|
+
date:
|
271
|
+
- Wed, 20 Jun 2012 03:56:38 GMT
|
272
|
+
location:
|
273
|
+
- http://bigml.io/andromeda/dataset/4fe14a621552687d4700010e
|
274
|
+
server:
|
275
|
+
- nginx/1.0.12
|
276
|
+
content-length:
|
277
|
+
- '920'
|
278
|
+
connection:
|
279
|
+
- Close
|
280
|
+
body:
|
281
|
+
encoding: US-ASCII
|
282
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:58:26.532705",
|
283
|
+
"credits": 0.0087890625, "description": "", "fields": {"000000": {"column_number":
|
284
|
+
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
285
|
+
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
286
|
+
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
287
|
+
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
288
|
+
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
289
|
+
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
290
|
+
true, "resource": "dataset/4fe14a621552687d4700010e", "rows": 0, "size": 4608,
|
291
|
+
"source": "source/4fe14a601552687d4200014b", "source_status": true, "status":
|
292
|
+
{"code": 1, "message": "The dataset is being processed and will be created
|
293
|
+
soon"}, "tags": [], "updated": "2012-06-20T03:58:26.532723"}'
|
294
|
+
http_version: '1.1'
|
295
|
+
recorded_at: Wed, 20 Jun 2012 03:58:09 GMT
|
296
|
+
- request:
|
297
|
+
method: post
|
298
|
+
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
299
|
+
body:
|
300
|
+
encoding: UTF-8
|
301
|
+
string: ! '{"dataset":"dataset/4fe14a621552687d4700010e"}'
|
302
|
+
headers:
|
303
|
+
content-type:
|
304
|
+
- application/json
|
305
|
+
connection:
|
306
|
+
- close
|
307
|
+
response:
|
308
|
+
status:
|
309
|
+
code: 201
|
310
|
+
message: CREATED
|
311
|
+
headers:
|
312
|
+
content-type:
|
313
|
+
- application/json; charset=utf-8
|
314
|
+
date:
|
315
|
+
- Wed, 20 Jun 2012 03:54:20 GMT
|
316
|
+
location:
|
317
|
+
- http://bigml.io/andromeda/model/4fe14a47035d074a1b000115
|
318
|
+
server:
|
319
|
+
- nginx/1.0.12
|
320
|
+
content-length:
|
321
|
+
- '690'
|
322
|
+
connection:
|
323
|
+
- Close
|
324
|
+
body:
|
325
|
+
encoding: US-ASCII
|
326
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-20T03:57:59.668479",
|
327
|
+
"credits": 0.03515625, "dataset": "dataset/4fe14a621552687d4700010e", "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/4fe14a47035d074a1b000115", "rows": 150, "size": 4608, "source": "source/4fe14a601552687d4200014b",
|
332
|
+
"source_status": true, "status": {"code": 1, "message": "The model is being
|
333
|
+
processed and will be created soon"}, "tags": [], "updated": "2012-06-20T03:57:59.668512"}'
|
334
|
+
http_version: '1.1'
|
335
|
+
recorded_at: Wed, 20 Jun 2012 03:58:11 GMT
|
336
|
+
- request:
|
337
|
+
method: get
|
338
|
+
uri: https://bigml.io/andromeda/model/4fe14a47035d074a1b000115?username=<USERNAME>&api_key=<API_KEY>
|
339
|
+
body:
|
340
|
+
encoding: US-ASCII
|
341
|
+
string: ''
|
342
|
+
headers:
|
343
|
+
connection:
|
344
|
+
- close
|
345
|
+
response:
|
346
|
+
status:
|
347
|
+
code: 200
|
348
|
+
message: OK
|
349
|
+
headers:
|
350
|
+
content-type:
|
351
|
+
- application/json; charset=utf-8
|
352
|
+
date:
|
353
|
+
- Wed, 20 Jun 2012 03:56:41 GMT
|
354
|
+
server:
|
355
|
+
- nginx/1.0.12
|
356
|
+
content-length:
|
357
|
+
- '6514'
|
358
|
+
connection:
|
359
|
+
- Close
|
360
|
+
body:
|
361
|
+
encoding: US-ASCII
|
362
|
+
string: ! '{"category": 0, "code": 200, "columns": 5, "created": "2012-06-20T03:57:59.668000",
|
363
|
+
"credits": 0.03515625, "dataset": "dataset/4fe14a621552687d4700010e", "dataset_status":
|
364
|
+
true, "description": "", "holdout": 0.0, "input_fields": ["000000", "000001",
|
365
|
+
"000002", "000003"], "locale": "en_US", "max_columns": 5, "max_rows": 150,
|
366
|
+
"model": {"fields": {"000000": {"column_number": 0, "datatype": "double",
|
367
|
+
"name": "sepal length", "optype": "numeric", "preferred": true, "summary":
|
368
|
+
{"maximum": 7.9, "median": 5.77889, "minimum": 4.3, "missing_count": 0, "population":
|
369
|
+
150, "splits": [4.51526, 4.67252, 4.81113, 4.89582, 4.96139, 5.01131, 5.05992,
|
370
|
+
5.11148, 5.18177, 5.35681, 5.44129, 5.5108, 5.58255, 5.65532, 5.71658, 5.77889,
|
371
|
+
5.85381, 5.97078, 6.05104, 6.13074, 6.23023, 6.29578, 6.35078, 6.41459, 6.49383,
|
372
|
+
6.63013, 6.70719, 6.79218, 6.92597, 7.20423, 7.64746], "sum": 876.5, "sum_squares":
|
373
|
+
5223.85}}, "000001": {"column_number": 1, "datatype": "double", "name": "sepal
|
374
|
+
width", "optype": "numeric", "preferred": true, "summary": {"counts": [[2,
|
375
|
+
1], [2.2, 3], [2.3, 4], [2.4, 3], [2.5, 8], [2.6, 5], [2.7, 9], [2.8, 14],
|
376
|
+
[2.9, 10], [3, 26], [3.1, 11], [3.2, 13], [3.3, 6], [3.4, 12], [3.5, 6], [3.6,
|
377
|
+
4], [3.7, 3], [3.8, 6], [3.9, 2], [4, 1], [4.1, 1], [4.2, 1], [4.4, 1]], "maximum":
|
378
|
+
4.4, "median": 3.02044, "minimum": 2, "missing_count": 0, "population": 150,
|
379
|
+
"sum": 458.6, "sum_squares": 1430.4}}, "000002": {"column_number": 2, "datatype":
|
380
|
+
"double", "name": "petal length", "optype": "numeric", "preferred": true,
|
381
|
+
"summary": {"maximum": 6.9, "median": 4.34142, "minimum": 1, "missing_count":
|
382
|
+
0, "population": 150, "splits": [1.25138, 1.32426, 1.37171, 1.40962, 1.44567,
|
383
|
+
1.48173, 1.51859, 1.56301, 1.6255, 1.74645, 3.23033, 3.675, 3.94203, 4.0469,
|
384
|
+
4.18243, 4.34142, 4.45309, 4.51823, 4.61771, 4.72566, 4.83445, 4.93363, 5.03807,
|
385
|
+
5.1064, 5.20938, 5.43979, 5.5744, 5.6646, 5.81496, 6.02913, 6.38125], "sum":
|
386
|
+
563.7, "sum_squares": 2582.71}}, "000003": {"column_number": 3, "datatype":
|
387
|
+
"double", "name": "petal width", "optype": "numeric", "preferred": true, "summary":
|
388
|
+
{"counts": [[0.1, 5], [0.2, 29], [0.3, 7], [0.4, 7], [0.5, 1], [0.6, 1], [1,
|
389
|
+
7], [1.1, 3], [1.2, 5], [1.3, 13], [1.4, 8], [1.5, 12], [1.6, 4], [1.7, 2],
|
390
|
+
[1.8, 12], [1.9, 5], [2, 6], [2.1, 6], [2.2, 3], [2.3, 8], [2.4, 3], [2.5,
|
391
|
+
3]], "maximum": 2.5, "median": 1.32848, "minimum": 0.1, "missing_count": 0,
|
392
|
+
"population": 150, "sum": 179.9, "sum_squares": 302.33}}, "000004": {"column_number":
|
393
|
+
4, "datatype": "string", "name": "species", "optype": "categorical", "preferred":
|
394
|
+
true, "summary": {"categories": [["Iris-versicolor", 50], ["Iris-setosa",
|
395
|
+
50], ["Iris-virginica", 50]], "missing_count": 0}}}, "kind": "stree", "locale":
|
396
|
+
"en_US", "missing_strategy": "last_prediction", "root": {"children": [{"children":
|
397
|
+
[{"children": [{"count": 38, "distribution": [["Iris-virginica", 38]], "leaf":
|
398
|
+
true, "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
399
|
+
">", "value": 5.05}}, {"children": [{"children": [{"children": [{"count":
|
400
|
+
1, "distribution": [["Iris-versicolor", 1]], "leaf": true, "output": "Iris-versicolor",
|
401
|
+
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
402
|
+
2, "distribution": [["Iris-virginica", 2]], "leaf": true, "output": "Iris-virginica",
|
403
|
+
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
404
|
+
3, "distribution": [["Iris-virginica", 2], ["Iris-versicolor", 1]], "output":
|
405
|
+
"Iris-virginica", "predicate": {"field": "000000", "operator": ">", "value":
|
406
|
+
5.95}}, {"count": 1, "distribution": [["Iris-versicolor", 1]], "leaf": true,
|
407
|
+
"output": "Iris-versicolor", "predicate": {"field": "000000", "operator":
|
408
|
+
"<=", "value": 5.95}}], "count": 4, "distribution": [["Iris-virginica", 2],
|
409
|
+
["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
410
|
+
"000001", "operator": ">", "value": 2.9}}, {"count": 6, "distribution": [["Iris-virginica",
|
411
|
+
6]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
412
|
+
"operator": "<=", "value": 2.9}}], "count": 10, "distribution": [["Iris-virginica",
|
413
|
+
8], ["Iris-versicolor", 2]], "output": "Iris-virginica", "predicate": {"field":
|
414
|
+
"000002", "operator": "<=", "value": 5.05}}], "count": 48, "distribution":
|
415
|
+
[["Iris-virginica", 46], ["Iris-versicolor", 2]], "output": "Iris-virginica",
|
416
|
+
"predicate": {"field": "000003", "operator": ">", "value": 1.65}}, {"children":
|
417
|
+
[{"children": [{"count": 3, "distribution": [["Iris-virginica", 3]], "leaf":
|
418
|
+
true, "output": "Iris-virginica", "predicate": {"field": "000000", "operator":
|
419
|
+
">", "value": 6.05}}, {"children": [{"count": 1, "distribution": [["Iris-versicolor",
|
420
|
+
1]], "leaf": true, "output": "Iris-versicolor", "predicate": {"field": "000001",
|
421
|
+
"operator": ">", "value": 2.45}}, {"count": 1, "distribution": [["Iris-virginica",
|
422
|
+
1]], "leaf": true, "output": "Iris-virginica", "predicate": {"field": "000001",
|
423
|
+
"operator": "<=", "value": 2.45}}], "count": 2, "distribution": [["Iris-virginica",
|
424
|
+
1], ["Iris-versicolor", 1]], "output": "Iris-virginica", "predicate": {"field":
|
425
|
+
"000000", "operator": "<=", "value": 6.05}}], "count": 5, "distribution":
|
426
|
+
[["Iris-virginica", 4], ["Iris-versicolor", 1]], "output": "Iris-virginica",
|
427
|
+
"predicate": {"field": "000002", "operator": ">", "value": 4.95}}, {"count":
|
428
|
+
47, "distribution": [["Iris-versicolor", 47]], "leaf": true, "output": "Iris-versicolor",
|
429
|
+
"predicate": {"field": "000002", "operator": "<=", "value": 4.95}}], "count":
|
430
|
+
52, "distribution": [["Iris-virginica", 4], ["Iris-versicolor", 48]], "output":
|
431
|
+
"Iris-versicolor", "predicate": {"field": "000003", "operator": "<=", "value":
|
432
|
+
1.65}}], "count": 100, "distribution": [["Iris-virginica", 50], ["Iris-versicolor",
|
433
|
+
50]], "output": "Iris-virginica", "predicate": {"field": "000002", "operator":
|
434
|
+
">", "value": 2.45}}, {"count": 50, "distribution": [["Iris-setosa", 50]],
|
435
|
+
"leaf": true, "output": "Iris-setosa", "predicate": {"field": "000002", "operator":
|
436
|
+
"<=", "value": 2.45}}], "count": 150, "distribution": [["Iris-virginica",
|
437
|
+
50], ["Iris-versicolor", 50], ["Iris-setosa", 50]], "output": "Iris-virginica",
|
438
|
+
"predicate": true}, "row_range": {"size": 150, "start": 0}}, "name": "iris''
|
439
|
+
dataset model", "number_of_predictions": 0, "objective_fields": ["000004"],
|
440
|
+
"private": true, "range": [1, 150], "resource": "model/4fe14a47035d074a1b000115",
|
441
|
+
"rows": 150, "size": 4608, "source": "source/4fe14a601552687d4200014b", "source_status":
|
442
|
+
true, "status": {"code": 5, "elapsed": 153, "message": "The model has been
|
443
|
+
created", "progress": 1}, "tags": [], "updated": "2012-06-20T03:57:59.792000"}'
|
444
|
+
http_version: '1.1'
|
445
|
+
recorded_at: Wed, 20 Jun 2012 03:58:12 GMT
|
446
|
+
recorded_with: VCR 2.2.2
|