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,195 @@
|
|
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:23:52 GMT
|
21
|
+
server:
|
22
|
+
- nginx/1.0.12
|
23
|
+
content-length:
|
24
|
+
- '101'
|
25
|
+
connection:
|
26
|
+
- Close
|
27
|
+
body:
|
28
|
+
encoding: US-ASCII
|
29
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
30
|
+
"total_count": 0}, "objects": []}'
|
31
|
+
http_version: '1.1'
|
32
|
+
recorded_at: Wed, 20 Jun 2012 03:25:24 GMT
|
33
|
+
- request:
|
34
|
+
method: get
|
35
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
36
|
+
body:
|
37
|
+
encoding: US-ASCII
|
38
|
+
string: ''
|
39
|
+
headers:
|
40
|
+
connection:
|
41
|
+
- close
|
42
|
+
response:
|
43
|
+
status:
|
44
|
+
code: 200
|
45
|
+
message: OK
|
46
|
+
headers:
|
47
|
+
content-type:
|
48
|
+
- application/json; charset=utf-8
|
49
|
+
date:
|
50
|
+
- Wed, 20 Jun 2012 03:21:34 GMT
|
51
|
+
server:
|
52
|
+
- nginx/1.0.12
|
53
|
+
content-length:
|
54
|
+
- '101'
|
55
|
+
connection:
|
56
|
+
- Close
|
57
|
+
body:
|
58
|
+
encoding: US-ASCII
|
59
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
60
|
+
"total_count": 0}, "objects": []}'
|
61
|
+
http_version: '1.1'
|
62
|
+
recorded_at: Wed, 20 Jun 2012 03:25:24 GMT
|
63
|
+
- request:
|
64
|
+
method: post
|
65
|
+
uri: https://bigml.io/andromeda/source
|
66
|
+
body:
|
67
|
+
encoding: US-ASCII
|
68
|
+
string: ''
|
69
|
+
headers:
|
70
|
+
content-type:
|
71
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
72
|
+
content-length:
|
73
|
+
- '5147'
|
74
|
+
connection:
|
75
|
+
- close
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 201
|
79
|
+
message: CREATED
|
80
|
+
headers:
|
81
|
+
content-type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
date:
|
84
|
+
- Wed, 20 Jun 2012 03:23:55 GMT
|
85
|
+
location:
|
86
|
+
- http://bigml.io/andromeda/source/4fe142b61552687d470000fa
|
87
|
+
server:
|
88
|
+
- nginx/1.0.12
|
89
|
+
content-length:
|
90
|
+
- '567'
|
91
|
+
connection:
|
92
|
+
- Close
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
96
|
+
"created": "2012-06-20T03:25:42.879644", "credits": 0.0, "description": "",
|
97
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
98
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
99
|
+
0, "private": true, "resource": "source/4fe142b61552687d470000fa", "size":
|
100
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
101
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
102
|
+
"2012-06-20T03:25:42.879664"}'
|
103
|
+
http_version: '1.1'
|
104
|
+
recorded_at: Wed, 20 Jun 2012 03:25:26 GMT
|
105
|
+
- request:
|
106
|
+
method: delete
|
107
|
+
uri: https://bigml.io/andromeda/source/4fe142b61552687d470000fa?username=<USERNAME>&api_key=<API_KEY>
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: ''
|
111
|
+
headers:
|
112
|
+
connection:
|
113
|
+
- close
|
114
|
+
response:
|
115
|
+
status:
|
116
|
+
code: 204
|
117
|
+
message: NO CONTENT
|
118
|
+
headers:
|
119
|
+
content-length:
|
120
|
+
- '0'
|
121
|
+
content-type:
|
122
|
+
- text/html; charset=utf-8
|
123
|
+
date:
|
124
|
+
- Wed, 20 Jun 2012 03:21:37 GMT
|
125
|
+
server:
|
126
|
+
- nginx/1.0.12
|
127
|
+
connection:
|
128
|
+
- Close
|
129
|
+
body:
|
130
|
+
encoding: US-ASCII
|
131
|
+
string: ''
|
132
|
+
http_version: '1.1'
|
133
|
+
recorded_at: Wed, 20 Jun 2012 03:25:27 GMT
|
134
|
+
- request:
|
135
|
+
method: get
|
136
|
+
uri: https://bigml.io/andromeda/source/4fe142b61552687d470000fa?username=<USERNAME>&api_key=<API_KEY>
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
140
|
+
headers:
|
141
|
+
connection:
|
142
|
+
- close
|
143
|
+
response:
|
144
|
+
status:
|
145
|
+
code: 404
|
146
|
+
message: NOT FOUND
|
147
|
+
headers:
|
148
|
+
content-type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
date:
|
151
|
+
- Wed, 20 Jun 2012 03:23:57 GMT
|
152
|
+
server:
|
153
|
+
- nginx/1.0.12
|
154
|
+
content-length:
|
155
|
+
- '169'
|
156
|
+
connection:
|
157
|
+
- Close
|
158
|
+
body:
|
159
|
+
encoding: US-ASCII
|
160
|
+
string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
|
161
|
+
an instance of ''Source'' which matched ''pk=4fe142b61552687d470000fa''."],
|
162
|
+
"message": "Id does not exist"}}'
|
163
|
+
http_version: '1.1'
|
164
|
+
recorded_at: Wed, 20 Jun 2012 03:25:28 GMT
|
165
|
+
- request:
|
166
|
+
method: get
|
167
|
+
uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
168
|
+
body:
|
169
|
+
encoding: US-ASCII
|
170
|
+
string: ''
|
171
|
+
headers:
|
172
|
+
connection:
|
173
|
+
- close
|
174
|
+
response:
|
175
|
+
status:
|
176
|
+
code: 200
|
177
|
+
message: OK
|
178
|
+
headers:
|
179
|
+
content-type:
|
180
|
+
- application/json; charset=utf-8
|
181
|
+
date:
|
182
|
+
- Wed, 20 Jun 2012 03:21:38 GMT
|
183
|
+
server:
|
184
|
+
- nginx/1.0.12
|
185
|
+
content-length:
|
186
|
+
- '101'
|
187
|
+
connection:
|
188
|
+
- Close
|
189
|
+
body:
|
190
|
+
encoding: US-ASCII
|
191
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
192
|
+
"total_count": 0}, "objects": []}'
|
193
|
+
http_version: '1.1'
|
194
|
+
recorded_at: Wed, 20 Jun 2012 03:25:29 GMT
|
195
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,279 @@
|
|
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:20:03 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:21:21.028000", "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/4fe141b1035d074a200000d7", "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": 78, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:22.022000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Wed, 20 Jun 2012 03:21:34 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fe141b1035d074a200000d7?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:17:45 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:21:36 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:20:05 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:21:37 GMT
|
106
|
+
- request:
|
107
|
+
method: post
|
108
|
+
uri: https://bigml.io/andromeda/source
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
content-type:
|
114
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
115
|
+
content-length:
|
116
|
+
- '5147'
|
117
|
+
connection:
|
118
|
+
- close
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 201
|
122
|
+
message: CREATED
|
123
|
+
headers:
|
124
|
+
content-type:
|
125
|
+
- application/json; charset=utf-8
|
126
|
+
date:
|
127
|
+
- Wed, 20 Jun 2012 03:17:47 GMT
|
128
|
+
location:
|
129
|
+
- http://bigml.io/andromeda/source/4fe141b6035d074a2100012e
|
130
|
+
server:
|
131
|
+
- nginx/1.0.12
|
132
|
+
content-length:
|
133
|
+
- '567'
|
134
|
+
connection:
|
135
|
+
- Close
|
136
|
+
body:
|
137
|
+
encoding: US-ASCII
|
138
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
139
|
+
"created": "2012-06-20T03:21:26.729859", "credits": 0.0, "description": "",
|
140
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
141
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
142
|
+
0, "private": true, "resource": "source/4fe141b6035d074a2100012e", "size":
|
143
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
144
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
145
|
+
"2012-06-20T03:21:26.729884"}'
|
146
|
+
http_version: '1.1'
|
147
|
+
recorded_at: Wed, 20 Jun 2012 03:21:38 GMT
|
148
|
+
- request:
|
149
|
+
method: get
|
150
|
+
uri: https://bigml.io/andromeda/source/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
|
151
|
+
body:
|
152
|
+
encoding: US-ASCII
|
153
|
+
string: ''
|
154
|
+
headers:
|
155
|
+
connection:
|
156
|
+
- close
|
157
|
+
response:
|
158
|
+
status:
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
content-type:
|
163
|
+
- application/json; charset=utf-8
|
164
|
+
date:
|
165
|
+
- Wed, 20 Jun 2012 03:20:08 GMT
|
166
|
+
server:
|
167
|
+
- nginx/1.0.12
|
168
|
+
content-length:
|
169
|
+
- '1179'
|
170
|
+
connection:
|
171
|
+
- Close
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
|
175
|
+
"created": "2012-06-20T03:21:26.729000", "credits": 0.0, "description": "",
|
176
|
+
"fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
|
177
|
+
"numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
|
178
|
+
"numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
|
179
|
+
"numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
|
180
|
+
"numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
|
181
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
182
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
183
|
+
0, "private": true, "resource": "source/4fe141b6035d074a2100012e", "size":
|
184
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
185
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
186
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
187
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 64, "message": "The
|
188
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:26.886000"}'
|
189
|
+
http_version: '1.1'
|
190
|
+
recorded_at: Wed, 20 Jun 2012 03:21:39 GMT
|
191
|
+
- request:
|
192
|
+
method: put
|
193
|
+
uri: https://bigml.io/andromeda/source/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
|
194
|
+
body:
|
195
|
+
encoding: UTF-8
|
196
|
+
string: ! '{"name":"new name"}'
|
197
|
+
headers:
|
198
|
+
content-type:
|
199
|
+
- application/json
|
200
|
+
connection:
|
201
|
+
- close
|
202
|
+
response:
|
203
|
+
status:
|
204
|
+
code: 202
|
205
|
+
message: ACCEPTED
|
206
|
+
headers:
|
207
|
+
content-type:
|
208
|
+
- application/json; charset=utf-8
|
209
|
+
date:
|
210
|
+
- Wed, 20 Jun 2012 03:17:50 GMT
|
211
|
+
server:
|
212
|
+
- nginx/1.0.12
|
213
|
+
content-length:
|
214
|
+
- '1179'
|
215
|
+
connection:
|
216
|
+
- Close
|
217
|
+
body:
|
218
|
+
encoding: US-ASCII
|
219
|
+
string: ! '{"category": 0, "code": 202, "content_type": "application/octet-stream",
|
220
|
+
"created": "2012-06-20T03:21:26.729000", "credits": 0.0, "description": "",
|
221
|
+
"fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
|
222
|
+
"numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
|
223
|
+
"numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
|
224
|
+
"numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
|
225
|
+
"numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
|
226
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
227
|
+
"new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
228
|
+
0, "private": true, "resource": "source/4fe141b6035d074a2100012e", "size":
|
229
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
230
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
231
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
232
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 64, "message": "The
|
233
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:57.362762"}'
|
234
|
+
http_version: '1.1'
|
235
|
+
recorded_at: Wed, 20 Jun 2012 03:21:40 GMT
|
236
|
+
- request:
|
237
|
+
method: get
|
238
|
+
uri: https://bigml.io/andromeda/source/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
|
239
|
+
body:
|
240
|
+
encoding: US-ASCII
|
241
|
+
string: ''
|
242
|
+
headers:
|
243
|
+
connection:
|
244
|
+
- close
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 200
|
248
|
+
message: OK
|
249
|
+
headers:
|
250
|
+
content-type:
|
251
|
+
- application/json; charset=utf-8
|
252
|
+
date:
|
253
|
+
- Wed, 20 Jun 2012 03:20:10 GMT
|
254
|
+
server:
|
255
|
+
- nginx/1.0.12
|
256
|
+
content-length:
|
257
|
+
- '1179'
|
258
|
+
connection:
|
259
|
+
- Close
|
260
|
+
body:
|
261
|
+
encoding: US-ASCII
|
262
|
+
string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
|
263
|
+
"created": "2012-06-20T03:21:26.729000", "credits": 0.0, "description": "",
|
264
|
+
"fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
|
265
|
+
"numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
|
266
|
+
"numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
|
267
|
+
"numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
|
268
|
+
"numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
|
269
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
270
|
+
"new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
271
|
+
0, "private": true, "resource": "source/4fe141b6035d074a2100012e", "size":
|
272
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
273
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
274
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
275
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 64, "message": "The
|
276
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:57.362000"}'
|
277
|
+
http_version: '1.1'
|
278
|
+
recorded_at: Wed, 20 Jun 2012 03:21:41 GMT
|
279
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,192 @@
|
|
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:17:23 GMT
|
21
|
+
server:
|
22
|
+
- nginx/1.0.12
|
23
|
+
content-length:
|
24
|
+
- '1281'
|
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:21:29.774000", "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/4fe141b91552687d43000118", "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": 109, "message":
|
44
|
+
"The source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:29.883000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Wed, 20 Jun 2012 03:21:14 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fe141b91552687d43000118?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:19:44 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:21:16 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:17:26 GMT
|
94
|
+
server:
|
95
|
+
- nginx/1.0.12
|
96
|
+
transfer-encoding:
|
97
|
+
- chunked
|
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:21:17 GMT
|
106
|
+
- request:
|
107
|
+
method: post
|
108
|
+
uri: https://bigml.io/andromeda/source
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
content-type:
|
114
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
115
|
+
content-length:
|
116
|
+
- '5147'
|
117
|
+
connection:
|
118
|
+
- close
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 201
|
122
|
+
message: CREATED
|
123
|
+
headers:
|
124
|
+
content-type:
|
125
|
+
- application/json; charset=utf-8
|
126
|
+
date:
|
127
|
+
- Wed, 20 Jun 2012 03:19:47 GMT
|
128
|
+
location:
|
129
|
+
- http://bigml.io/andromeda/source/4fe141bf1552687d42000125
|
130
|
+
server:
|
131
|
+
- nginx/1.0.12
|
132
|
+
content-length:
|
133
|
+
- '567'
|
134
|
+
connection:
|
135
|
+
- Close
|
136
|
+
body:
|
137
|
+
encoding: US-ASCII
|
138
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
139
|
+
"created": "2012-06-20T03:21:35.139798", "credits": 0.0, "description": "",
|
140
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
141
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
142
|
+
0, "private": true, "resource": "source/4fe141bf1552687d42000125", "size":
|
143
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
144
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
145
|
+
"2012-06-20T03:21:35.139830"}'
|
146
|
+
http_version: '1.1'
|
147
|
+
recorded_at: Wed, 20 Jun 2012 03:21:18 GMT
|
148
|
+
- request:
|
149
|
+
method: get
|
150
|
+
uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
|
151
|
+
body:
|
152
|
+
encoding: US-ASCII
|
153
|
+
string: ''
|
154
|
+
headers:
|
155
|
+
connection:
|
156
|
+
- close
|
157
|
+
response:
|
158
|
+
status:
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
content-type:
|
163
|
+
- application/json; charset=utf-8
|
164
|
+
date:
|
165
|
+
- Wed, 20 Jun 2012 03:17:29 GMT
|
166
|
+
server:
|
167
|
+
- nginx/1.0.12
|
168
|
+
content-length:
|
169
|
+
- '1280'
|
170
|
+
connection:
|
171
|
+
- Close
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
175
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
|
176
|
+
"application/octet-stream", "created": "2012-06-20T03:21:35.139000", "credits":
|
177
|
+
0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
|
178
|
+
"sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
|
179
|
+
"sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
|
180
|
+
"petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
|
181
|
+
"petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
|
182
|
+
"species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
183
|
+
"name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
184
|
+
0, "private": true, "resource": "source/4fe141bf1552687d42000125", "size":
|
185
|
+
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
186
|
+
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
187
|
+
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
188
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 77, "message": "The
|
189
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:35.243000"}]}'
|
190
|
+
http_version: '1.1'
|
191
|
+
recorded_at: Wed, 20 Jun 2012 03:21:20 GMT
|
192
|
+
recorded_with: VCR 2.2.2
|