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