big_ml 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +55 -18
  3. data/big_ml.gemspec +1 -0
  4. data/lib/big_ml/base.rb +21 -11
  5. data/lib/big_ml/dataset.rb +10 -4
  6. data/lib/big_ml/model.rb +16 -10
  7. data/lib/big_ml/prediction.rb +6 -4
  8. data/lib/big_ml/source.rb +10 -4
  9. data/lib/big_ml/{authenticable.rb → util/authenticable.rb} +0 -0
  10. data/lib/big_ml/util/client.rb +26 -0
  11. data/lib/big_ml/util/config.rb +32 -0
  12. data/lib/big_ml/{request.rb → util/request.rb} +0 -0
  13. data/lib/big_ml/version.rb +1 -1
  14. data/lib/big_ml.rb +8 -4
  15. data/spec/integration/dataset_spec.rb +17 -0
  16. data/spec/integration/model_spec.rb +17 -0
  17. data/spec/integration/prediction_spec.rb +11 -0
  18. data/spec/integration/source_spec.rb +19 -6
  19. data/spec/units/client_spec.rb +5 -5
  20. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +53 -17
  21. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +232 -0
  22. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +288 -0
  23. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +49 -49
  24. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +41 -77
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +57 -57
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +360 -0
  27. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +44 -44
  28. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +44 -44
  29. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +22 -22
  30. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +133 -21
  31. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +346 -0
  32. 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
  33. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +172 -161
  34. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +194 -70
  35. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +225 -243
  36. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +686 -0
  37. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +169 -52
  38. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +91 -90
  39. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +35 -114
  40. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +141 -89
  41. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +474 -0
  42. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +88 -88
  43. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +88 -88
  44. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +97 -97
  45. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +545 -0
  46. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +90 -90
  47. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +161 -78
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +45 -45
  49. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +12 -42
  50. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +119 -0
  51. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +135 -0
  52. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +22 -52
  53. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -30
  54. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +38 -68
  55. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +249 -0
  56. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +24 -54
  57. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +21 -51
  58. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +8 -38
  59. metadata +50 -9
  60. data/.rvmrc +0 -1
  61. data/lib/big_ml/client.rb +0 -29
  62. 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
- - Wed, 20 Jun 2012 03:17:36 GMT
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-20T03:21:41.406000", "credits":
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/4fe141c51552687d470000f6", "size":
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": 75, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:14.195000"}]}'
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: Wed, 20 Jun 2012 03:21:26 GMT
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/4fe141c51552687d470000f6?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:19:57 GMT
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: Wed, 20 Jun 2012 03:21:29 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: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
- - Wed, 20 Jun 2012 03:20:01 GMT
97
+ - Thu, 28 Jun 2012 22:29:31 GMT
128
98
  location:
129
- - http://bigml.io/andromeda/source/4fe141b1035d074a200000d7
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-20T03:21:21.028002", "credits": 0.0, "description": "",
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/4fe141b1035d074a200000d7", "size":
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-20T03:21:21.028025"}'
115
+ "2012-06-28T22:34:34.142951"}'
146
116
  http_version: '1.1'
147
- recorded_at: Wed, 20 Jun 2012 03:21:32 GMT
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/4fe141b1035d074a200000d7?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:17:43 GMT
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-20T03:21:21.028000", "credits": 0.0, "description": "",
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/4fe141b1035d074a200000d7", "size":
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": 78, "message": "The
188
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:21.052000"}'
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: Wed, 20 Jun 2012 03:21:33 GMT
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
- - Wed, 20 Jun 2012 03:23:52 GMT
20
+ - Thu, 28 Jun 2012 22:29:54 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '101'
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": 0}, "objects": []}'
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: Wed, 20 Jun 2012 03:25:24 GMT
46
+ recorded_at: Thu, 28 Jun 2012 22:34:40 GMT
33
47
  - request:
34
- method: get
35
- uri: https://bigml.io/andromeda/dataset?username=<USERNAME>&api_key=<API_KEY>
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: 200
45
- message: OK
58
+ code: 204
59
+ message: NO CONTENT
46
60
  headers:
61
+ content-length:
62
+ - '0'
47
63
  content-type:
48
- - application/json; charset=utf-8
64
+ - text/html; charset=utf-8
49
65
  date:
50
- - Wed, 20 Jun 2012 03:21:34 GMT
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: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
60
- "total_count": 0}, "objects": []}'
73
+ string: ''
61
74
  http_version: '1.1'
62
- recorded_at: Wed, 20 Jun 2012 03:25:24 GMT
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
- - Wed, 20 Jun 2012 03:23:55 GMT
97
+ - Thu, 28 Jun 2012 22:29:58 GMT
85
98
  location:
86
- - http://bigml.io/andromeda/source/4fe142b61552687d470000fa
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-20T03:25:42.879644", "credits": 0.0, "description": "",
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/4fe142b61552687d470000fa", "size":
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-20T03:25:42.879664"}'
115
+ "2012-06-28T22:35:01.149424"}'
103
116
  http_version: '1.1'
104
- recorded_at: Wed, 20 Jun 2012 03:25:26 GMT
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/4fe142b61552687d470000fa?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:21:37 GMT
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: Wed, 20 Jun 2012 03:25:27 GMT
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/4fe142b61552687d470000fa?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:23:57 GMT
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=4fe142b61552687d470000fa''."],
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: Wed, 20 Jun 2012 03:25:28 GMT
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
- - Wed, 20 Jun 2012 03:21:38 GMT
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: Wed, 20 Jun 2012 03:25:29 GMT
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
- - Wed, 20 Jun 2012 03:20:03 GMT
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-20T03:21:21.028000", "credits":
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/4fe141b1035d074a200000d7", "size":
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": 78, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:22.022000"}]}'
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: Wed, 20 Jun 2012 03:21:34 GMT
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/4fe141b1035d074a200000d7?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:17:45 GMT
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: 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
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
- - Wed, 20 Jun 2012 03:17:47 GMT
97
+ - Thu, 28 Jun 2012 22:29:39 GMT
128
98
  location:
129
- - http://bigml.io/andromeda/source/4fe141b6035d074a2100012e
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-20T03:21:26.729859", "credits": 0.0, "description": "",
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/4fe141b6035d074a2100012e", "size":
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-20T03:21:26.729884"}'
115
+ "2012-06-28T22:34:42.105075"}'
146
116
  http_version: '1.1'
147
- recorded_at: Wed, 20 Jun 2012 03:21:38 GMT
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/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:20:08 GMT
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-20T03:21:26.729000", "credits": 0.0, "description": "",
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/4fe141b6035d074a2100012e", "size":
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": 64, "message": "The
188
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:26.886000"}'
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: Wed, 20 Jun 2012 03:21:39 GMT
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/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:17:50 GMT
180
+ - Thu, 28 Jun 2012 22:29:42 GMT
211
181
  server:
212
182
  - nginx/1.0.12
213
- content-length:
214
- - '1179'
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-20T03:21:26.729000", "credits": 0.0, "description": "",
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/4fe141b6035d074a2100012e", "size":
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": 64, "message": "The
233
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:57.362762"}'
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: Wed, 20 Jun 2012 03:21:40 GMT
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/4fe141b6035d074a2100012e?username=<USERNAME>&api_key=<API_KEY>
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
- - Wed, 20 Jun 2012 03:20:10 GMT
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-20T03:21:26.729000", "credits": 0.0, "description": "",
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/4fe141b6035d074a2100012e", "size":
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": 64, "message": "The
276
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-20T03:21:57.362000"}'
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: Wed, 20 Jun 2012 03:21:41 GMT
248
+ recorded_at: Thu, 28 Jun 2012 22:34:29 GMT
279
249
  recorded_with: VCR 2.2.2