big_ml 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +55 -18
- data/big_ml.gemspec +1 -0
- data/lib/big_ml/base.rb +21 -11
- data/lib/big_ml/dataset.rb +10 -4
- data/lib/big_ml/model.rb +16 -10
- data/lib/big_ml/prediction.rb +6 -4
- data/lib/big_ml/source.rb +10 -4
- data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
- data/lib/big_ml/util/client.rb +26 -0
- data/lib/big_ml/util/config.rb +32 -0
- data/lib/big_ml/{request.rb → util/request.rb} +0 -0
- data/lib/big_ml/version.rb +1 -1
- data/lib/big_ml.rb +8 -4
- data/spec/integration/dataset_spec.rb +17 -0
- data/spec/integration/model_spec.rb +17 -0
- data/spec/integration/prediction_spec.rb +11 -0
- data/spec/integration/source_spec.rb +19 -6
- data/spec/units/client_spec.rb +5 -5
- data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
- data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
- data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
- data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/{must_have_the_same_file_name.yml → must_be_able_to_be_deleted_using_the_destroy_method.yml} +90 -107
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
- data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
- data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
- data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
- data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
- data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
- data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
- data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
- data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
- data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
- data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
- metadata +50 -9
- data/.rvmrc +0 -1
- data/lib/big_ml/client.rb +0 -29
- data/lib/big_ml/config.rb +0 -30
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
content-type:
|
18
18
|
- application/json; charset=utf-8
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 28 Jun 2012 22:19:04 GMT
|
21
21
|
server:
|
22
22
|
- nginx/1.0.12
|
23
23
|
content-length:
|
@@ -28,25 +28,25 @@ http_interactions:
|
|
28
28
|
encoding: US-ASCII
|
29
29
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
30
30
|
"total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
|
31
|
-
"application/octet-stream", "created": "2012-06-
|
31
|
+
"application/octet-stream", "created": "2012-06-27T02:29:17.948000", "credits":
|
32
32
|
0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
|
33
33
|
"sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
|
34
34
|
"sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
|
35
35
|
"petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
|
36
36
|
"petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
|
37
37
|
"species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
38
|
-
"name": "
|
39
|
-
0, "private": true, "resource": "source/
|
38
|
+
"name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
39
|
+
0, "private": true, "resource": "source/4fea6ffd035d0741f0001c38", "size":
|
40
40
|
4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
|
41
41
|
["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
|
42
42
|
"nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
|
43
|
-
"\"", "separator": ","}, "status": {"code": 5, "elapsed":
|
44
|
-
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-
|
43
|
+
"\"", "separator": ","}, "status": {"code": 5, "elapsed": 73, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-27T02:30:04.724000"}]}'
|
45
45
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:23:51 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
49
|
-
uri: https://bigml.io/andromeda/source/
|
49
|
+
uri: https://bigml.io/andromeda/source/4fea6ffd035d0741f0001c38?username=<USERNAME>&api_key=<API_KEY>
|
50
50
|
body:
|
51
51
|
encoding: US-ASCII
|
52
52
|
string: ''
|
@@ -63,7 +63,7 @@ http_interactions:
|
|
63
63
|
content-type:
|
64
64
|
- text/html; charset=utf-8
|
65
65
|
date:
|
66
|
-
-
|
66
|
+
- Thu, 28 Jun 2012 22:21:40 GMT
|
67
67
|
server:
|
68
68
|
- nginx/1.0.12
|
69
69
|
connection:
|
@@ -72,7 +72,7 @@ http_interactions:
|
|
72
72
|
encoding: US-ASCII
|
73
73
|
string: ''
|
74
74
|
http_version: '1.1'
|
75
|
-
recorded_at:
|
75
|
+
recorded_at: Thu, 28 Jun 2012 22:23:53 GMT
|
76
76
|
- request:
|
77
77
|
method: get
|
78
78
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
@@ -90,19 +90,55 @@ http_interactions:
|
|
90
90
|
content-type:
|
91
91
|
- application/json; charset=utf-8
|
92
92
|
date:
|
93
|
-
-
|
93
|
+
- Thu, 28 Jun 2012 22:19:08 GMT
|
94
94
|
server:
|
95
95
|
- nginx/1.0.12
|
96
|
-
|
97
|
-
-
|
96
|
+
transfer-encoding:
|
97
|
+
- chunked
|
98
98
|
connection:
|
99
99
|
- Close
|
100
100
|
body:
|
101
101
|
encoding: US-ASCII
|
102
102
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
103
|
-
"total_count":
|
103
|
+
"total_count": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
104
|
+
"created": "2012-06-27T02:29:27.721000", "credits": 0.00439453125, "description":
|
105
|
+
"", "locale": "en_US", "name": "iris'' dataset", "number_of_models": 1, "number_of_predictions":
|
106
|
+
1, "private": true, "resource": "dataset/4fea700715526875f5001bff", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fea6fd9035d0741f4001bdb", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 210, "field_errors":
|
109
|
+
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
+
150}, "tags": [], "updated": "2012-06-27T02:28:47.906000"}]}'
|
111
|
+
http_version: '1.1'
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:23:55 GMT
|
113
|
+
- request:
|
114
|
+
method: delete
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fea700715526875f5001bff?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
|
+
- Thu, 28 Jun 2012 22:21:45 GMT
|
133
|
+
server:
|
134
|
+
- nginx/1.0.12
|
135
|
+
connection:
|
136
|
+
- Close
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
104
140
|
http_version: '1.1'
|
105
|
-
recorded_at:
|
141
|
+
recorded_at: Thu, 28 Jun 2012 22:23:58 GMT
|
106
142
|
- request:
|
107
143
|
method: get
|
108
144
|
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
@@ -120,7 +156,7 @@ http_interactions:
|
|
120
156
|
content-type:
|
121
157
|
- application/json; charset=utf-8
|
122
158
|
date:
|
123
|
-
-
|
159
|
+
- Thu, 28 Jun 2012 22:19:12 GMT
|
124
160
|
server:
|
125
161
|
- nginx/1.0.12
|
126
162
|
content-length:
|
@@ -132,5 +168,5 @@ http_interactions:
|
|
132
168
|
string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
|
133
169
|
"total_count": 0}, "objects": []}'
|
134
170
|
http_version: '1.1'
|
135
|
-
recorded_at:
|
171
|
+
recorded_at: Thu, 28 Jun 2012 22:23:59 GMT
|
136
172
|
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,232 @@
|
|
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
|
+
- Thu, 28 Jun 2012 22:21:19 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-28T22:26:13.480000", "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/4fecda0515526875f800331e", "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": 88, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:25:28.018000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:26:06 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecda0515526875f800331e?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
|
+
- Thu, 28 Jun 2012 22:23:55 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: Thu, 28 Jun 2012 22:26:08 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
|
+
- Thu, 28 Jun 2012 22:21:23 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: Thu, 28 Jun 2012 22:26:09 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
|
+
- Thu, 28 Jun 2012 22:23:58 GMT
|
128
|
+
location:
|
129
|
+
- http://bigml.io/andromeda/source/4fecda1315526875f8003320
|
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-28T22:26:27.886251", "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/4fecda1315526875f8003320", "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-28T22:26:27.886278"}'
|
146
|
+
http_version: '1.1'
|
147
|
+
recorded_at: Thu, 28 Jun 2012 22:26:11 GMT
|
148
|
+
- request:
|
149
|
+
method: post
|
150
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
151
|
+
body:
|
152
|
+
encoding: UTF-8
|
153
|
+
string: ! '{"source":"source/4fecda1315526875f8003320"}'
|
154
|
+
headers:
|
155
|
+
content-type:
|
156
|
+
- application/json
|
157
|
+
connection:
|
158
|
+
- close
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 201
|
162
|
+
message: CREATED
|
163
|
+
headers:
|
164
|
+
content-type:
|
165
|
+
- application/json; charset=utf-8
|
166
|
+
date:
|
167
|
+
- Thu, 28 Jun 2012 22:21:27 GMT
|
168
|
+
location:
|
169
|
+
- http://bigml.io/andromeda/dataset/4fecd9e4035d0741f000335b
|
170
|
+
server:
|
171
|
+
- nginx/1.0.12
|
172
|
+
content-length:
|
173
|
+
- '921'
|
174
|
+
connection:
|
175
|
+
- Close
|
176
|
+
body:
|
177
|
+
encoding: US-ASCII
|
178
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:25:40.755873",
|
179
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
180
|
+
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
181
|
+
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
182
|
+
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
183
|
+
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
184
|
+
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
185
|
+
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
186
|
+
true, "resource": "dataset/4fecd9e4035d0741f000335b", "rows": 0, "size": 4608,
|
187
|
+
"source": "source/4fecda1315526875f8003320", "source_status": true, "status":
|
188
|
+
{"code": 1, "message": "The dataset is being processed and will be created
|
189
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:25:40.755900"}'
|
190
|
+
http_version: '1.1'
|
191
|
+
recorded_at: Thu, 28 Jun 2012 22:26:13 GMT
|
192
|
+
- request:
|
193
|
+
method: post
|
194
|
+
uri: https://bigml.io/andromeda/model?username=<USERNAME>&api_key=<API_KEY>
|
195
|
+
body:
|
196
|
+
encoding: UTF-8
|
197
|
+
string: ! '{"dataset":"dataset/4fecd9e4035d0741f000335b"}'
|
198
|
+
headers:
|
199
|
+
content-type:
|
200
|
+
- application/json
|
201
|
+
connection:
|
202
|
+
- close
|
203
|
+
response:
|
204
|
+
status:
|
205
|
+
code: 201
|
206
|
+
message: CREATED
|
207
|
+
headers:
|
208
|
+
content-type:
|
209
|
+
- application/json; charset=utf-8
|
210
|
+
date:
|
211
|
+
- Thu, 28 Jun 2012 22:24:02 GMT
|
212
|
+
location:
|
213
|
+
- http://bigml.io/andromeda/model/4fecd9e6035d0741f000335e
|
214
|
+
server:
|
215
|
+
- nginx/1.0.12
|
216
|
+
content-length:
|
217
|
+
- '691'
|
218
|
+
connection:
|
219
|
+
- Close
|
220
|
+
body:
|
221
|
+
encoding: US-ASCII
|
222
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:25:42.532787",
|
223
|
+
"credits": 0.017578125, "dataset": "dataset/4fecd9e4035d0741f000335b", "dataset_status":
|
224
|
+
true, "description": "", "holdout": 0.0, "input_fields": [], "locale": "en_US",
|
225
|
+
"max_columns": 5, "max_rows": 150, "name": "iris'' dataset model", "number_of_predictions":
|
226
|
+
0, "objective_fields": [], "private": true, "range": [1, 150], "resource":
|
227
|
+
"model/4fecd9e6035d0741f000335e", "rows": 150, "size": 4608, "source": "source/4fecda1315526875f8003320",
|
228
|
+
"source_status": true, "status": {"code": 1, "message": "The model is being
|
229
|
+
processed and will be created soon"}, "tags": [], "updated": "2012-06-28T22:25:42.532812"}'
|
230
|
+
http_version: '1.1'
|
231
|
+
recorded_at: Thu, 28 Jun 2012 22:26:15 GMT
|
232
|
+
recorded_with: VCR 2.2.2
|
@@ -0,0 +1,288 @@
|
|
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
|
+
- Thu, 28 Jun 2012 22:20:49 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-28T22:24:57.636000", "credits":
|
32
|
+
0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
|
33
|
+
"sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
|
34
|
+
"sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
|
35
|
+
"petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
|
36
|
+
"petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
|
37
|
+
"species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
|
38
|
+
"name": "iris.csv", "number_of_datasets": 1, "number_of_models": 0, "number_of_predictions":
|
39
|
+
0, "private": true, "resource": "source/4fecd9b9035d0741f0003352", "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": 72, "message": "The
|
44
|
+
source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:24:59.326000"}]}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Thu, 28 Jun 2012 22:25:35 GMT
|
47
|
+
- request:
|
48
|
+
method: delete
|
49
|
+
uri: https://bigml.io/andromeda/source/4fecd9b9035d0741f0003352?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
|
+
- Thu, 28 Jun 2012 22:23:25 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: Thu, 28 Jun 2012 22:25:38 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
|
+
- Thu, 28 Jun 2012 22:20:53 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": 1}, "objects": [{"category": 0, "code": 200, "columns": 5,
|
104
|
+
"created": "2012-06-28T22:24:59.321000", "credits": 0.00439453125, "description":
|
105
|
+
"", "locale": "en_US", "name": "foo name", "number_of_models": 0, "number_of_predictions":
|
106
|
+
0, "private": true, "resource": "dataset/4fecd9bb035d0741f0003355", "rows":
|
107
|
+
150, "size": 4608, "source": "source/4fecd9b9035d0741f0003352", "source_status":
|
108
|
+
false, "status": {"bytes": 4608, "code": 5, "elapsed": 245, "field_errors":
|
109
|
+
[], "message": "The dataset has been created", "row_format_errors": [], "serialized_rows":
|
110
|
+
150}, "tags": [], "updated": "2012-06-28T22:25:49.809000"}]}'
|
111
|
+
http_version: '1.1'
|
112
|
+
recorded_at: Thu, 28 Jun 2012 22:25:40 GMT
|
113
|
+
- request:
|
114
|
+
method: delete
|
115
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9bb035d0741f0003355?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
|
+
- Thu, 28 Jun 2012 22:23:28 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: Thu, 28 Jun 2012 22:25:41 GMT
|
142
|
+
- request:
|
143
|
+
method: post
|
144
|
+
uri: https://bigml.io/andromeda/source
|
145
|
+
body:
|
146
|
+
encoding: US-ASCII
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
content-type:
|
150
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
151
|
+
content-length:
|
152
|
+
- '5147'
|
153
|
+
connection:
|
154
|
+
- close
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 201
|
158
|
+
message: CREATED
|
159
|
+
headers:
|
160
|
+
content-type:
|
161
|
+
- application/json; charset=utf-8
|
162
|
+
date:
|
163
|
+
- Thu, 28 Jun 2012 22:20:57 GMT
|
164
|
+
location:
|
165
|
+
- http://bigml.io/andromeda/source/4fecd9c7035d0741f40032a2
|
166
|
+
server:
|
167
|
+
- nginx/1.0.12
|
168
|
+
content-length:
|
169
|
+
- '567'
|
170
|
+
connection:
|
171
|
+
- Close
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
|
175
|
+
"created": "2012-06-28T22:25:11.161057", "credits": 0.0, "description": "",
|
176
|
+
"file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
|
177
|
+
"iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
|
178
|
+
0, "private": true, "resource": "source/4fecd9c7035d0741f40032a2", "size":
|
179
|
+
4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
|
180
|
+
been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
|
181
|
+
"2012-06-28T22:25:11.161084"}'
|
182
|
+
http_version: '1.1'
|
183
|
+
recorded_at: Thu, 28 Jun 2012 22:25:43 GMT
|
184
|
+
- request:
|
185
|
+
method: post
|
186
|
+
uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: ! '{"source":"source/4fecd9c7035d0741f40032a2"}'
|
190
|
+
headers:
|
191
|
+
content-type:
|
192
|
+
- application/json
|
193
|
+
connection:
|
194
|
+
- close
|
195
|
+
response:
|
196
|
+
status:
|
197
|
+
code: 201
|
198
|
+
message: CREATED
|
199
|
+
headers:
|
200
|
+
content-type:
|
201
|
+
- application/json; charset=utf-8
|
202
|
+
date:
|
203
|
+
- Thu, 28 Jun 2012 22:23:32 GMT
|
204
|
+
location:
|
205
|
+
- http://bigml.io/andromeda/dataset/4fecd9c9035d0741f1003306
|
206
|
+
server:
|
207
|
+
- nginx/1.0.12
|
208
|
+
content-length:
|
209
|
+
- '921'
|
210
|
+
connection:
|
211
|
+
- Close
|
212
|
+
body:
|
213
|
+
encoding: US-ASCII
|
214
|
+
string: ! '{"category": 0, "code": 201, "columns": 5, "created": "2012-06-28T22:25:13.009555",
|
215
|
+
"credits": 0.00439453125, "description": "", "fields": {"000000": {"column_number":
|
216
|
+
0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
|
217
|
+
1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
|
218
|
+
2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
|
219
|
+
3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
|
220
|
+
4, "name": "species", "optype": "categorical"}}, "locale": "en_US", "name":
|
221
|
+
"iris'' dataset", "number_of_models": 0, "number_of_predictions": 0, "private":
|
222
|
+
true, "resource": "dataset/4fecd9c9035d0741f1003306", "rows": 0, "size": 4608,
|
223
|
+
"source": "source/4fecd9c7035d0741f40032a2", "source_status": true, "status":
|
224
|
+
{"code": 1, "message": "The dataset is being processed and will be created
|
225
|
+
soon"}, "tags": [], "updated": "2012-06-28T22:25:13.009574"}'
|
226
|
+
http_version: '1.1'
|
227
|
+
recorded_at: Thu, 28 Jun 2012 22:25:46 GMT
|
228
|
+
- request:
|
229
|
+
method: delete
|
230
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9c9035d0741f1003306?username=<USERNAME>&api_key=<API_KEY>
|
231
|
+
body:
|
232
|
+
encoding: US-ASCII
|
233
|
+
string: ''
|
234
|
+
headers:
|
235
|
+
connection:
|
236
|
+
- close
|
237
|
+
response:
|
238
|
+
status:
|
239
|
+
code: 204
|
240
|
+
message: NO CONTENT
|
241
|
+
headers:
|
242
|
+
content-length:
|
243
|
+
- '0'
|
244
|
+
content-type:
|
245
|
+
- text/html; charset=utf-8
|
246
|
+
date:
|
247
|
+
- Thu, 28 Jun 2012 22:21:01 GMT
|
248
|
+
server:
|
249
|
+
- nginx/1.0.12
|
250
|
+
connection:
|
251
|
+
- Close
|
252
|
+
body:
|
253
|
+
encoding: US-ASCII
|
254
|
+
string: ''
|
255
|
+
http_version: '1.1'
|
256
|
+
recorded_at: Thu, 28 Jun 2012 22:25:48 GMT
|
257
|
+
- request:
|
258
|
+
method: get
|
259
|
+
uri: https://bigml.io/andromeda/dataset/4fecd9c9035d0741f1003306?username=<USERNAME>&api_key=<API_KEY>
|
260
|
+
body:
|
261
|
+
encoding: US-ASCII
|
262
|
+
string: ''
|
263
|
+
headers:
|
264
|
+
connection:
|
265
|
+
- close
|
266
|
+
response:
|
267
|
+
status:
|
268
|
+
code: 404
|
269
|
+
message: NOT FOUND
|
270
|
+
headers:
|
271
|
+
content-type:
|
272
|
+
- application/json; charset=utf-8
|
273
|
+
date:
|
274
|
+
- Thu, 28 Jun 2012 22:23:36 GMT
|
275
|
+
server:
|
276
|
+
- nginx/1.0.12
|
277
|
+
transfer-encoding:
|
278
|
+
- chunked
|
279
|
+
connection:
|
280
|
+
- Close
|
281
|
+
body:
|
282
|
+
encoding: US-ASCII
|
283
|
+
string: ! '{"code": 404, "status": {"code": -1201, "extra": ["Couldn''t find
|
284
|
+
an instance of ''Dataset'' which matched ''pk=4fecd9c9035d0741f1003306''."],
|
285
|
+
"message": "Id does not exist"}}'
|
286
|
+
http_version: '1.1'
|
287
|
+
recorded_at: Thu, 28 Jun 2012 22:25:49 GMT
|
288
|
+
recorded_with: VCR 2.2.2
|