big_ml 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -1
  3. data/.rvmrc.example +1 -1
  4. data/.travis.yml +1 -1
  5. data/README.md +6 -5
  6. data/lib/big_ml.rb +5 -0
  7. data/lib/big_ml/base.rb +31 -0
  8. data/lib/big_ml/batch_prediction.rb +39 -0
  9. data/lib/big_ml/ensemble.rb +32 -0
  10. data/lib/big_ml/evaluation.rb +31 -0
  11. data/lib/big_ml/prediction.rb +2 -2
  12. data/lib/big_ml/util/client.rb +1 -0
  13. data/lib/big_ml/util/config.rb +4 -1
  14. data/lib/big_ml/util/request.rb +9 -4
  15. data/lib/big_ml/version.rb +1 -1
  16. data/spec/integration/dataset_spec.rb +21 -23
  17. data/spec/integration/ensemble_spec.rb +73 -0
  18. data/spec/integration/evaluation_spec.rb +64 -0
  19. data/spec/integration/model_spec.rb +23 -25
  20. data/spec/integration/prediction_spec.rb +20 -22
  21. data/spec/integration/source_spec.rb +22 -24
  22. data/spec/spec_helper.rb +4 -3
  23. data/spec/units/client_spec.rb +58 -26
  24. data/spec/units/source_spec.rb +3 -3
  25. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +180 -99
  26. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +144 -163
  27. data/spec/vcr_cassettes/BigML_Ensemble/no_ensemble/_all/must_be_empty.yml +223 -0
  28. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/can_be_converted_in_a_prediction.yml +1074 -0
  29. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_deleted_using_the_destroy_method.yml +1082 -0
  30. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_find_using_the_reference.yml +734 -0
  31. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_remove_the_ensemble.yml +1215 -0
  32. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_set_number_of_models.yml +853 -0
  33. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name.yml +1226 -0
  34. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name_from_the_instance.yml +1226 -0
  35. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_only_one_item.yml +686 -0
  36. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_the_same_size.yml +732 -0
  37. data/spec/vcr_cassettes/BigML_Ensemble/one_ensemble/was_created_successfully.yml +495 -0
  38. data/spec/vcr_cassettes/BigML_Evaluation/no_evaluation/_all/must_be_empty.yml +600 -0
  39. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_deleted_using_the_destroy_method.yml +1127 -0
  40. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_find_using_the_reference.yml +1151 -0
  41. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_remove_the_evaluation.yml +1203 -0
  42. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name.yml +1374 -0
  43. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name_from_the_instance.yml +1373 -0
  44. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_only_one_item.yml +1103 -0
  45. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_the_same_name.yml +1108 -0
  46. data/spec/vcr_cassettes/BigML_Evaluation/one_evaluation/was_created_successfully.yml +922 -0
  47. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +269 -282
  48. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +360 -312
  49. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +75 -72
  50. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/debug_mode/raises_on_bad_request.yml +38 -0
  51. data/spec/vcr_cassettes/BigML_Util_Client/response_handling/normal_mode/does_not_raise_on_bad_request.yml +38 -0
  52. metadata +74 -43
@@ -6,65 +6,67 @@ http_interactions:
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
- headers:
10
- connection:
11
- - close
9
+ headers: {}
12
10
  response:
13
11
  status:
14
12
  code: 200
15
13
  message: OK
16
14
  headers:
15
+ access-control-allow-methods:
16
+ - POST,GET,PUT,DELETE
17
+ access-control-allow-origin:
18
+ - "*"
17
19
  content-type:
18
- - application/json; charset=utf-8
20
+ - application/json
19
21
  date:
20
- - Sat, 14 Jul 2012 15:26:18 GMT
22
+ - Thu, 26 Jun 2014 14:17:22 GMT
21
23
  server:
22
24
  - nginx/1.0.12
25
+ vary:
26
+ - Accept-Encoding
23
27
  content-length:
24
- - '1293'
28
+ - '1002'
25
29
  connection:
26
30
  - Close
27
31
  body:
28
- encoding: US-ASCII
29
- string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
32
+ encoding: UTF-8
33
+ string: '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
34
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-07-14T15:27:55.967000", "credits":
32
- 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
33
- 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
34
- 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
35
- 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
36
- 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
37
- 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
38
- "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
39
- 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
40
- "source/50018ffb155268794e00002d", "size": 4608, "source_parser": {"header":
41
- true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
42
- "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
43
- "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
44
- {"code": 5, "elapsed": 80, "message": "The source has been created"}, "tags":
45
- [], "type": 0, "updated": "2012-07-14T15:26:52.914000"}]}'
35
+ "application/octet-stream", "created": "2014-06-26T14:17:20.407000", "credits":
36
+ 0.0, "description": "", "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
37
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
38
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2b700af5e8152c005d38",
39
+ "shared": false, "size": 4608, "source_parser": {"header": true, "locale":
40
+ "en_US", "missing_tokens": ["", "NaN", "NULL", "N/A", "null", "-", "#REF!",
41
+ "#VALUE!", "?", "#NULL!", "#NUM!", "#DIV/0", "n/a", "#NAME?", "NIL", "nil",
42
+ "na", "#N/A", "NA"], "quote": "\"", "separator": ","}, "status": {"code":
43
+ 5, "elapsed": 453, "message": "The source has been created"}, "subscription":
44
+ false, "tags": [], "term_analysis": {"enabled": true}, "type": 0, "updated":
45
+ "2014-06-26T14:17:21.051000"}]}'
46
46
  http_version: '1.1'
47
- recorded_at: Sat, 14 Jul 2012 15:27:21 GMT
47
+ recorded_at: Thu, 26 Jun 2014 14:17:22 GMT
48
48
  - request:
49
49
  method: delete
50
- uri: https://bigml.io/dev/andromeda/source/50018ffb155268794e00002d?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/53ac2b700af5e8152c005d38?username=<USERNAME>&api_key=<API_KEY>
51
51
  body:
52
52
  encoding: US-ASCII
53
53
  string: ''
54
- headers:
55
- connection:
56
- - close
54
+ headers: {}
57
55
  response:
58
56
  status:
59
57
  code: 204
60
58
  message: NO CONTENT
61
59
  headers:
60
+ access-control-allow-methods:
61
+ - POST,GET,PUT,DELETE
62
+ access-control-allow-origin:
63
+ - "*"
62
64
  content-length:
63
65
  - '0'
64
66
  content-type:
65
67
  - text/html; charset=utf-8
66
68
  date:
67
- - Sat, 14 Jul 2012 15:21:23 GMT
69
+ - Thu, 26 Jun 2014 14:17:22 GMT
68
70
  server:
69
71
  - nginx/1.0.12
70
72
  connection:
@@ -73,7 +75,7 @@ http_interactions:
73
75
  encoding: US-ASCII
74
76
  string: ''
75
77
  http_version: '1.1'
76
- recorded_at: Sat, 14 Jul 2012 15:27:26 GMT
78
+ recorded_at: Thu, 26 Jun 2014 14:17:23 GMT
77
79
  - request:
78
80
  method: post
79
81
  uri: https://bigml.io/dev/andromeda/source
@@ -84,79 +86,80 @@ http_interactions:
84
86
  content-type:
85
87
  - multipart/form-data; boundary=-----------RubyMultipartPost
86
88
  content-length:
87
- - '5149'
88
- connection:
89
- - close
89
+ - '5150'
90
90
  response:
91
91
  status:
92
92
  code: 201
93
93
  message: CREATED
94
94
  headers:
95
+ access-control-allow-methods:
96
+ - POST,GET,PUT,DELETE
97
+ access-control-allow-origin:
98
+ - "*"
95
99
  content-type:
96
- - application/json; charset=utf-8
100
+ - application/json
97
101
  date:
98
- - Sat, 14 Jul 2012 15:26:24 GMT
102
+ - Thu, 26 Jun 2014 14:17:22 GMT
99
103
  location:
100
- - http://bigml.io/andromeda/source/50019004155268794e000031
104
+ - http://bigml.io/andromeda/source/53ac2b720af5e8152c005d3d
101
105
  server:
102
106
  - nginx/1.0.12
103
107
  content-length:
104
- - '580'
108
+ - '736'
105
109
  connection:
106
110
  - Close
107
111
  body:
108
- encoding: US-ASCII
109
- string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
110
- "created": "2012-07-14T15:28:04.690426", "credits": 0.0, "description": "",
111
- "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
112
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
113
- 0, "private": true, "resource": "source/50019004155268794e000031", "size":
114
- 4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
115
- been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
116
- "2012-07-14T15:28:04.690461"}'
112
+ encoding: UTF-8
113
+ string: '{"category": 0, "code": 201, "content_type": "application/octet-stream",
114
+ "created": "2014-06-26T14:17:22.582785", "credits": 0.0, "description": "",
115
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "total":
116
+ 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
117
+ "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
118
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2b720af5e8152c005d3d",
119
+ "shared": false, "size": 4608, "source_parser": {}, "status": {"code": 1,
120
+ "message": "The request has been queued and will be processed soon"}, "subscription":
121
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-26T14:17:22.582840"}'
117
122
  http_version: '1.1'
118
- recorded_at: Sat, 14 Jul 2012 15:27:27 GMT
123
+ recorded_at: Thu, 26 Jun 2014 14:17:23 GMT
119
124
  - request:
120
125
  method: get
121
- uri: https://bigml.io/dev/andromeda/source/50019004155268794e000031?username=<USERNAME>&api_key=<API_KEY>
126
+ uri: https://bigml.io/dev/andromeda/source/53ac2b720af5e8152c005d3d?username=<USERNAME>&api_key=<API_KEY>
122
127
  body:
123
128
  encoding: US-ASCII
124
129
  string: ''
125
- headers:
126
- connection:
127
- - close
130
+ headers: {}
128
131
  response:
129
132
  status:
130
133
  code: 200
131
134
  message: OK
132
135
  headers:
136
+ access-control-allow-methods:
137
+ - POST,GET,PUT,DELETE
138
+ access-control-allow-origin:
139
+ - "*"
133
140
  content-type:
134
- - application/json; charset=utf-8
141
+ - application/json
135
142
  date:
136
- - Sat, 14 Jul 2012 15:21:25 GMT
143
+ - Thu, 26 Jun 2014 14:17:22 GMT
137
144
  server:
138
145
  - nginx/1.0.12
146
+ vary:
147
+ - Accept-Encoding
139
148
  content-length:
140
- - '1192'
149
+ - '761'
141
150
  connection:
142
151
  - Close
143
152
  body:
144
- encoding: US-ASCII
145
- string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
146
- "created": "2012-07-14T15:28:04.690000", "credits": 0.0, "description": "",
147
- "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
148
- "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
149
- "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
150
- "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
151
- "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
152
- "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
153
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
154
- 0, "private": true, "resource": "source/50019004155268794e000031", "size":
155
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
156
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
157
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
158
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 63, "message": "The
159
- source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:28:04.737000"}'
153
+ encoding: UTF-8
154
+ string: '{"category": 0, "code": 200, "content_type": "application/octet-stream",
155
+ "created": "2014-06-26T14:17:22.582000", "credits": 0.0, "description": "",
156
+ "dev": true, "fields_meta": {"count": 0, "limit": 1000, "offset": 0, "query_total":
157
+ 0, "total": 0}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
158
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_ensembles": 0, "number_of_models":
159
+ 0, "number_of_predictions": 0, "private": true, "resource": "source/53ac2b720af5e8152c005d3d",
160
+ "shared": false, "size": 4608, "source_parser": {"missing_tokens": []}, "status":
161
+ {"code": 3, "elapsed": 0, "message": "The source is being created"}, "subscription":
162
+ false, "tags": [], "term_analysis": {}, "type": 0, "updated": "2014-06-26T14:17:22.770000"}'
160
163
  http_version: '1.1'
161
- recorded_at: Sat, 14 Jul 2012 15:27:28 GMT
162
- recorded_with: VCR 2.2.2
164
+ recorded_at: Thu, 26 Jun 2014 14:17:23 GMT
165
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://bigml.io/dev/andromeda/source
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ content-type:
11
+ - multipart/form-data; boundary=-----------RubyMultipartPost
12
+ content-length:
13
+ - '5108'
14
+ response:
15
+ status:
16
+ code: 401
17
+ message: UNAUTHORIZED
18
+ headers:
19
+ access-control-allow-methods:
20
+ - POST,GET,PUT,DELETE
21
+ access-control-allow-origin:
22
+ - "*"
23
+ content-type:
24
+ - application/json
25
+ date:
26
+ - Thu, 26 Jun 2014 15:32:43 GMT
27
+ server:
28
+ - nginx/1.0.12
29
+ transfer-encoding:
30
+ - chunked
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"code": 401, "status": {"code": -1100, "message": "Unauthorized use"}}'
36
+ http_version: '1.1'
37
+ recorded_at: Thu, 26 Jun 2014 15:32:43 GMT
38
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://bigml.io/dev/andromeda/source
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ content-type:
11
+ - multipart/form-data; boundary=-----------RubyMultipartPost
12
+ content-length:
13
+ - '5109'
14
+ response:
15
+ status:
16
+ code: 401
17
+ message: UNAUTHORIZED
18
+ headers:
19
+ access-control-allow-methods:
20
+ - POST,GET,PUT,DELETE
21
+ access-control-allow-origin:
22
+ - "*"
23
+ content-type:
24
+ - application/json
25
+ date:
26
+ - Thu, 26 Jun 2014 15:38:28 GMT
27
+ server:
28
+ - nginx/1.0.12
29
+ content-length:
30
+ - '71'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"code": 401, "status": {"code": -1100, "message": "Unauthorized use"}}'
36
+ http_version: '1.1'
37
+ recorded_at: Thu, 26 Jun 2014 15:38:29 GMT
38
+ recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Vicent Gozalbes
@@ -10,102 +9,90 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-10-20 00:00:00.000000000 Z
12
+ date: 2014-07-09 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: httmultiparty
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: json
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rake
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: rspec
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: vcr
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - ">="
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - ">="
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: fakeweb
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - ">="
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - ">="
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  description: A Ruby wrapper for the BigML REST API
@@ -116,10 +103,10 @@ executables: []
116
103
  extensions: []
117
104
  extra_rdoc_files: []
118
105
  files:
119
- - .gitignore
120
- - .rspec
121
- - .rvmrc.example
122
- - .travis.yml
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - ".rvmrc.example"
109
+ - ".travis.yml"
123
110
  - CHANGELOG.md
124
111
  - Gemfile
125
112
  - LICENSE
@@ -129,7 +116,10 @@ files:
129
116
  - big_ml.gemspec
130
117
  - lib/big_ml.rb
131
118
  - lib/big_ml/base.rb
119
+ - lib/big_ml/batch_prediction.rb
132
120
  - lib/big_ml/dataset.rb
121
+ - lib/big_ml/ensemble.rb
122
+ - lib/big_ml/evaluation.rb
133
123
  - lib/big_ml/model.rb
134
124
  - lib/big_ml/prediction.rb
135
125
  - lib/big_ml/source.rb
@@ -140,6 +130,8 @@ files:
140
130
  - lib/big_ml/version.rb
141
131
  - spec/fixtures/iris.csv
142
132
  - spec/integration/dataset_spec.rb
133
+ - spec/integration/ensemble_spec.rb
134
+ - spec/integration/evaluation_spec.rb
143
135
  - spec/integration/model_spec.rb
144
136
  - spec/integration/prediction_spec.rb
145
137
  - spec/integration/source_spec.rb
@@ -156,6 +148,26 @@ files:
156
148
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml
157
149
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml
158
150
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml
151
+ - spec/vcr_cassettes/BigML_Ensemble/no_ensemble/_all/must_be_empty.yml
152
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/can_be_converted_in_a_prediction.yml
153
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_deleted_using_the_destroy_method.yml
154
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_find_using_the_reference.yml
155
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_remove_the_ensemble.yml
156
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_set_number_of_models.yml
157
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name.yml
158
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name_from_the_instance.yml
159
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_only_one_item.yml
160
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_the_same_size.yml
161
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/was_created_successfully.yml
162
+ - spec/vcr_cassettes/BigML_Evaluation/no_evaluation/_all/must_be_empty.yml
163
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_deleted_using_the_destroy_method.yml
164
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_find_using_the_reference.yml
165
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_remove_the_evaluation.yml
166
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name.yml
167
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name_from_the_instance.yml
168
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_only_one_item.yml
169
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_the_same_name.yml
170
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/was_created_successfully.yml
159
171
  - spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml
160
172
  - spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml
161
173
  - spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml
@@ -185,39 +197,36 @@ files:
185
197
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml
186
198
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml
187
199
  - spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml
200
+ - spec/vcr_cassettes/BigML_Util_Client/response_handling/debug_mode/raises_on_bad_request.yml
201
+ - spec/vcr_cassettes/BigML_Util_Client/response_handling/normal_mode/does_not_raise_on_bad_request.yml
188
202
  homepage: http://vigosan.github.com/big_ml
189
203
  licenses: []
204
+ metadata: {}
190
205
  post_install_message:
191
206
  rdoc_options: []
192
207
  require_paths:
193
208
  - lib
194
209
  required_ruby_version: !ruby/object:Gem::Requirement
195
- none: false
196
210
  requirements:
197
- - - ! '>='
211
+ - - ">="
198
212
  - !ruby/object:Gem::Version
199
213
  version: '0'
200
- segments:
201
- - 0
202
- hash: -1251087903395477845
203
214
  required_rubygems_version: !ruby/object:Gem::Requirement
204
- none: false
205
215
  requirements:
206
- - - ! '>='
216
+ - - ">="
207
217
  - !ruby/object:Gem::Version
208
218
  version: '0'
209
- segments:
210
- - 0
211
- hash: -1251087903395477845
212
219
  requirements: []
213
220
  rubyforge_project:
214
- rubygems_version: 1.8.23
221
+ rubygems_version: 2.2.2
215
222
  signing_key:
216
- specification_version: 3
223
+ specification_version: 4
217
224
  summary: A Ruby wrapper for the BigML REST API
218
225
  test_files:
219
226
  - spec/fixtures/iris.csv
220
227
  - spec/integration/dataset_spec.rb
228
+ - spec/integration/ensemble_spec.rb
229
+ - spec/integration/evaluation_spec.rb
221
230
  - spec/integration/model_spec.rb
222
231
  - spec/integration/prediction_spec.rb
223
232
  - spec/integration/source_spec.rb
@@ -234,6 +243,26 @@ test_files:
234
243
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml
235
244
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml
236
245
  - spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml
246
+ - spec/vcr_cassettes/BigML_Ensemble/no_ensemble/_all/must_be_empty.yml
247
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/can_be_converted_in_a_prediction.yml
248
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_deleted_using_the_destroy_method.yml
249
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_be_find_using_the_reference.yml
250
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_remove_the_ensemble.yml
251
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_set_number_of_models.yml
252
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name.yml
253
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_be_able_to_update_the_name_from_the_instance.yml
254
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_only_one_item.yml
255
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/must_have_the_same_size.yml
256
+ - spec/vcr_cassettes/BigML_Ensemble/one_ensemble/was_created_successfully.yml
257
+ - spec/vcr_cassettes/BigML_Evaluation/no_evaluation/_all/must_be_empty.yml
258
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_deleted_using_the_destroy_method.yml
259
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_be_find_using_the_reference.yml
260
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_remove_the_evaluation.yml
261
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name.yml
262
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_be_able_to_update_the_name_from_the_instance.yml
263
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_only_one_item.yml
264
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/must_have_the_same_name.yml
265
+ - spec/vcr_cassettes/BigML_Evaluation/one_evaluation/was_created_successfully.yml
237
266
  - spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml
238
267
  - spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml
239
268
  - spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml
@@ -263,3 +292,5 @@ test_files:
263
292
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml
264
293
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml
265
294
  - spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml
295
+ - spec/vcr_cassettes/BigML_Util_Client/response_handling/debug_mode/raises_on_bad_request.yml
296
+ - spec/vcr_cassettes/BigML_Util_Client/response_handling/normal_mode/does_not_raise_on_bad_request.yml