datarobot-ai_api 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +3 -0
  4. data/README.md +12 -0
  5. data/Rakefile +54 -0
  6. data/datarobot-ai_api.gemspec +19 -0
  7. data/lib/datarobot.rb +1 -0
  8. data/lib/datarobot/ai_api.rb +190 -0
  9. data/lib/datarobot/ai_api/ai.rb +191 -0
  10. data/lib/datarobot/ai_api/dataset.rb +99 -0
  11. data/lib/datarobot/ai_api/deployment.rb +20 -0
  12. data/lib/datarobot/ai_api/evaluation.rb +21 -0
  13. data/lib/datarobot/ai_api/learning_session.rb +112 -0
  14. data/lib/datarobot/ai_api/output.rb +58 -0
  15. data/lib/datarobot/ai_api/page.rb +50 -0
  16. data/lib/datarobot/ai_api/prediction.rb +20 -0
  17. data/lib/datarobot/ai_api/refreshable.rb +20 -0
  18. data/lib/datarobot/ai_api/task.rb +86 -0
  19. data/test/cassettes/Datarobot_AiApi/_ping/returns_unauthorized_when_not_authorized.yml +41 -0
  20. data/test/cassettes/Datarobot_AiApi/_ping/works_when_authorized.yml +58 -0
  21. data/test/cassettes/Datarobot_AiApi/_ping_me/returns_unauthorized_when_not_authorized.yml +41 -0
  22. data/test/cassettes/Datarobot_AiApi/_ping_me/works_when_authorized.yml +58 -0
  23. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/404s_if_there_is_no_matching_output.yml +190 -0
  24. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_find/should_accept_a_block.yml +66 -0
  25. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_next_page/can_go_to_the_next_page.yml +132 -0
  26. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +123 -0
  27. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_previous_page/can_go_to_the_previous_page.yml +262 -0
  28. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +67 -0
  29. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_refresh/can_refresh_to_a_new_object.yml +129 -0
  30. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_refresh_/can_refresh_its_values.yml +129 -0
  31. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_add_datasets_to_AIs.yml +120 -0
  32. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_add_learning_sessions_to_AIs.yml +120 -0
  33. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_be_trained.yml +4554 -0
  34. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_create_AIs.yml +120 -0
  35. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_delete_AIs.yml +58 -0
  36. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_find_AIs.yml +63 -0
  37. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_get_AI_datasets.yml +131 -0
  38. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_get_AI_outputs.yml +124 -0
  39. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_list_AIs.yml +123 -0
  40. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_predict_things.yml +190 -0
  41. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_create_AIs.yml +43 -0
  42. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_find_AIs.yml +43 -0
  43. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_list_AIs.yml +45 -0
  44. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_find/should_accept_a_block.yml +64 -0
  45. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_next_page/can_go_to_the_next_page.yml +126 -0
  46. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +113 -0
  47. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_previous_page/can_go_to_the_previous_page.yml +250 -0
  48. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +64 -0
  49. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_refresh/can_refresh_to_a_new_object.yml +125 -0
  50. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_refresh_/can_refresh_its_values.yml +125 -0
  51. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_delete_datasets.yml +58 -0
  52. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_find_datasets.yml +61 -0
  53. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_import_a_dataset_from_a_file.yml +1077 -0
  54. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_import_a_dataset_from_a_url.yml +55 -0
  55. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_list_datasets.yml +113 -0
  56. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_find/should_accept_a_block.yml +67 -0
  57. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_next_page/can_go_to_the_next_page.yml +67 -0
  58. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +100 -0
  59. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_previous_page/can_go_to_the_previous_page.yml +67 -0
  60. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +100 -0
  61. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_refresh/can_refresh_to_a_new_object.yml +131 -0
  62. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_refresh_/can_refresh_its_values.yml +130 -0
  63. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_create_learning_sessions.yml +2815 -0
  64. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_delete_learning_sessions.yml +58 -0
  65. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_find_learning_sessions.yml +63 -0
  66. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_deployment_data.yml +123 -0
  67. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_evaluation_data.yml +67 -0
  68. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_features.yml +127 -0
  69. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_list_learning_sessions.yml +100 -0
  70. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_create_outputs.yml +60 -0
  71. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_find_named_outputs.yml +123 -0
  72. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_get_features_of_an_output.yml +184 -0
  73. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_get_the_evaluation_of_an_output.yml +131 -0
  74. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_list_outputs.yml +124 -0
  75. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_find/should_accept_a_block.yml +63 -0
  76. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_refresh/can_refresh_to_a_new_object.yml +124 -0
  77. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_refresh_/can_refresh_its_values.yml +125 -0
  78. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/can_stop_a_task.yml +58 -0
  79. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/can_wait_until_completed.yml +1138 -0
  80. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/check_the_status_of_a_task.yml +64 -0
  81. data/test/data/delete-me.csv +8037 -0
  82. data/test/data/test.csv +8037 -0
  83. data/test/datarobot/ai_api/test_ai.rb +133 -0
  84. data/test/datarobot/ai_api/test_dataset.rb +64 -0
  85. data/test/datarobot/ai_api/test_learning_session.rb +77 -0
  86. data/test/datarobot/ai_api/test_output.rb +54 -0
  87. data/test/datarobot/ai_api/test_page.rb +50 -0
  88. data/test/datarobot/ai_api/test_prediction.rb +0 -0
  89. data/test/datarobot/ai_api/test_refreshable.rb +39 -0
  90. data/test/datarobot/ai_api/test_task.rb +53 -0
  91. data/test/datarobot/test_ai_api.rb +52 -0
  92. data/test/test_helper.rb +40 -0
  93. metadata +217 -0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d322f2c5c142b15d2f826e7
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Content-Type:
17
+ - application/json
18
+ Authorization:
19
+ - Bearer testingKey
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Date:
26
+ - Thu, 22 Aug 2019 00:56:25 GMT
27
+ Content-Type:
28
+ - text/html; charset=utf-8
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - openresty
33
+ Set-Cookie:
34
+ - SERVERID=blue; path=/
35
+ Strict-Transport-Security:
36
+ - max-age=16070400; includeSubDomains
37
+ Vary:
38
+ - Origin
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Datarobot-Request-Id:
42
+ - ae5f7bfc0f7f13517d601048f99eb2c6
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ X-Ratelimit-Limit:
46
+ - "-1"
47
+ X-Ratelimit-Remaining:
48
+ - '0'
49
+ X-Ratelimit-Reset:
50
+ - '1562953893'
51
+ X-Xss-Protection:
52
+ - 1; mode=block
53
+ body:
54
+ encoding: UTF-8
55
+ string: ''
56
+ http_version:
57
+ recorded_at: Thu, 22 Aug 2019 00:56:26 GMT
58
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d322f2c5c142b15d2f826e7
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Content-Type:
17
+ - application/json
18
+ Authorization:
19
+ - Bearer testingKey
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 22 Aug 2019 00:55:09 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '380'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - openresty
35
+ Set-Cookie:
36
+ - SERVERID=blue; path=/
37
+ Strict-Transport-Security:
38
+ - max-age=16070400; includeSubDomains
39
+ Vary:
40
+ - Origin
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Datarobot-Request-Id:
44
+ - 9178cd866f622fd182c9db84e81a11ec
45
+ X-Frame-Options:
46
+ - SAMEORIGIN
47
+ X-Ratelimit-Limit:
48
+ - "-1"
49
+ X-Ratelimit-Remaining:
50
+ - '0'
51
+ X-Ratelimit-Reset:
52
+ - '1562953893'
53
+ X-Xss-Protection:
54
+ - 1; mode=block
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"name": "Learning class", "links": {"status": "https://developers.datarobot.com/aiapi/status/9ec9b663-aa17-4958-ae3a-74d90339ca82/",
58
+ "self": "https://developers.datarobot.com/aiapi/learningSessions/5d322f2c5c142b15d2f826e7/"},
59
+ "created": "2019-07-19T20:59:30.138336Z", "modelCount": 4, "id": "5d322f2c5c142b15d2f826e7",
60
+ "datasetId": "5d322f185c142b15c6f826a0", "target": "class"}'
61
+ http_version:
62
+ recorded_at: Thu, 22 Aug 2019 00:55:09 GMT
63
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,123 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Content-Type:
17
+ - application/json
18
+ Authorization:
19
+ - Bearer testingKey
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 22 Aug 2019 01:32:15 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '383'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - openresty
35
+ Set-Cookie:
36
+ - SERVERID=blue; path=/
37
+ Strict-Transport-Security:
38
+ - max-age=16070400; includeSubDomains
39
+ Vary:
40
+ - Origin
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Datarobot-Request-Id:
44
+ - e38ee6e3cdbec151f5366ae116c2c2d7
45
+ X-Frame-Options:
46
+ - SAMEORIGIN
47
+ X-Ratelimit-Limit:
48
+ - "-1"
49
+ X-Ratelimit-Remaining:
50
+ - '0'
51
+ X-Ratelimit-Reset:
52
+ - '1562953893'
53
+ X-Xss-Protection:
54
+ - 1; mode=block
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"name": "Learning score1", "links": {"status": "https://developers.datarobot.com/aiapi/status/f4e26134-aefe-4563-8032-59d020317f59/",
58
+ "self": "https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93/"},
59
+ "created": "2019-07-31T18:39:23.701426Z", "modelCount": 17, "id": "5d41e055d8c81f0587732a93",
60
+ "datasetId": "5d41e041d8c81f0578732a94", "target": "score1"}'
61
+ http_version:
62
+ recorded_at: Thu, 22 Aug 2019 01:32:15 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93/deployment
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Accept-Encoding:
71
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
+ Accept:
73
+ - "*/*"
74
+ User-Agent:
75
+ - datarobot-ai/ruby
76
+ Content-Type:
77
+ - application/json
78
+ Authorization:
79
+ - Bearer testingKey
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Date:
86
+ - Thu, 22 Aug 2019 01:32:16 GMT
87
+ Content-Type:
88
+ - application/json
89
+ Content-Length:
90
+ - '316'
91
+ Connection:
92
+ - keep-alive
93
+ Server:
94
+ - openresty
95
+ Set-Cookie:
96
+ - SERVERID=blue; path=/
97
+ Strict-Transport-Security:
98
+ - max-age=16070400; includeSubDomains
99
+ Vary:
100
+ - Origin
101
+ X-Content-Type-Options:
102
+ - nosniff
103
+ X-Datarobot-Request-Id:
104
+ - 3ca052fc77127c3df65dd2450c29594b
105
+ X-Frame-Options:
106
+ - SAMEORIGIN
107
+ X-Ratelimit-Limit:
108
+ - "-1"
109
+ X-Ratelimit-Remaining:
110
+ - '0'
111
+ X-Ratelimit-Reset:
112
+ - '1562953893'
113
+ X-Xss-Protection:
114
+ - 1; mode=block
115
+ body:
116
+ encoding: UTF-8
117
+ string: '{"url": "https://developers.datarobot.com/predApi/v1.0/deployments/5d41e055d8c81f0587732a94/predictions",
118
+ "deploymentId": "5d41e055d8c81f0587732a94", "target": "score1", "modelType":
119
+ "Light Gradient Boosted Trees Regressor with Early Stopping (Poisson Loss)",
120
+ "datarobot-key": "ed08f69e-47be-ebd1-25cb-b7342c7fbac4"}'
121
+ http_version:
122
+ recorded_at: Thu, 22 Aug 2019 01:32:16 GMT
123
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d76980cf2ff5200587ce3da
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Host:
17
+ - developers.datarobot.com
18
+ Content-Type:
19
+ - application/json
20
+ Authorization:
21
+ - Bearer testingKey
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Thu, 12 Sep 2019 16:34:53 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '494'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - openresty
37
+ Set-Cookie:
38
+ - SERVERID=blue; path=/
39
+ Strict-Transport-Security:
40
+ - max-age=16070400; includeSubDomains
41
+ Vary:
42
+ - Origin
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Datarobot-Request-Id:
46
+ - 3529984e70717e4cbe1c0b68e4d552d3
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - "-1"
51
+ X-Ratelimit-Remaining:
52
+ - '0'
53
+ X-Ratelimit-Reset:
54
+ - '1568052672'
55
+ X-Xss-Protection:
56
+ - 1; mode=block
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"name": "Learning score1", "links": {"self": "https://developers.dragonpanda.drdev.io/aiapi/learningSessions/5d76980cf2ff5200587ce3da/"},
60
+ "created": "2019-09-09T18:21:12.081159Z", "modelCount": 17, "evaluation":
61
+ {"score": 6.6, "summary": "Because 6.6% of the variability in the values of
62
+ score1 are explained, fit accuracy for the current top performing model is
63
+ ranked as weak.", "label": "weak"}, "id": "5d76980cf2ff5200587ce3da", "datasetId":
64
+ "5d7697f1b153720056bb5784", "target": "score1"}'
65
+ http_version:
66
+ recorded_at: Thu, 12 Sep 2019 16:34:53 GMT
67
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,127 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Content-Type:
17
+ - application/json
18
+ Authorization:
19
+ - Bearer testingKey
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 22 Aug 2019 01:32:15 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Content-Length:
30
+ - '383'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - openresty
35
+ Set-Cookie:
36
+ - SERVERID=blue; path=/
37
+ Strict-Transport-Security:
38
+ - max-age=16070400; includeSubDomains
39
+ Vary:
40
+ - Origin
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Datarobot-Request-Id:
44
+ - 4178fcbb87b6d2ac783cafedec0e8a13
45
+ X-Frame-Options:
46
+ - SAMEORIGIN
47
+ X-Ratelimit-Limit:
48
+ - "-1"
49
+ X-Ratelimit-Remaining:
50
+ - '0'
51
+ X-Ratelimit-Reset:
52
+ - '1562953893'
53
+ X-Xss-Protection:
54
+ - 1; mode=block
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"name": "Learning score1", "links": {"status": "https://developers.datarobot.com/aiapi/status/f4e26134-aefe-4563-8032-59d020317f59/",
58
+ "self": "https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93/"},
59
+ "created": "2019-07-31T18:39:23.701426Z", "modelCount": 17, "id": "5d41e055d8c81f0587732a93",
60
+ "datasetId": "5d41e041d8c81f0578732a94", "target": "score1"}'
61
+ http_version:
62
+ recorded_at: Thu, 22 Aug 2019 01:32:15 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://developers.datarobot.com/aiapi/learningSessions/5d41e055d8c81f0587732a93/features/
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Accept-Encoding:
71
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
+ Accept:
73
+ - "*/*"
74
+ User-Agent:
75
+ - datarobot-ai/ruby
76
+ Content-Type:
77
+ - application/json
78
+ Authorization:
79
+ - Bearer testingKey
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Date:
86
+ - Thu, 22 Aug 2019 01:32:15 GMT
87
+ Content-Type:
88
+ - application/json
89
+ Content-Length:
90
+ - '630'
91
+ Connection:
92
+ - keep-alive
93
+ Server:
94
+ - openresty
95
+ Set-Cookie:
96
+ - SERVERID=blue; path=/
97
+ Strict-Transport-Security:
98
+ - max-age=16070400; includeSubDomains
99
+ Vary:
100
+ - Origin
101
+ X-Content-Type-Options:
102
+ - nosniff
103
+ X-Datarobot-Request-Id:
104
+ - 9dd9740cb06f147573d07bab3d799f4c
105
+ X-Frame-Options:
106
+ - SAMEORIGIN
107
+ X-Ratelimit-Limit:
108
+ - "-1"
109
+ X-Ratelimit-Remaining:
110
+ - '0'
111
+ X-Ratelimit-Reset:
112
+ - '1562953893'
113
+ X-Xss-Protection:
114
+ - 1; mode=block
115
+ body:
116
+ encoding: UTF-8
117
+ string: '{"features": [{"type": "Numeric", "name": "date (Year)"}, {"type":
118
+ "Numeric", "name": "league_id"}, {"type": "Categorical", "name": "league"},
119
+ {"type": "Categorical", "name": "team2"}, {"type": "Categorical", "name":
120
+ "team1"}, {"type": "Numeric", "name": "spi2"}, {"type": "Numeric", "name":
121
+ "spi1"}, {"type": "Numeric", "name": "score2"}, {"type": "Numeric", "name":
122
+ "score1"}, {"type": "Numeric", "name": "date (Day of Month)"}, {"type": "Categorical",
123
+ "name": "date (Month)"}, {"type": "Categorical", "name": "date (Day of Week)"}],
124
+ "target": "score1", "datasetId": "5d41e041d8c81f0578732a94", "id": "5d41e055d8c81f0587732a93"}'
125
+ http_version:
126
+ recorded_at: Thu, 22 Aug 2019 01:32:15 GMT
127
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,100 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/learningSessions/?limit=50&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Host:
17
+ - developers.datarobot.com
18
+ Content-Type:
19
+ - application/json
20
+ Authorization:
21
+ - Bearer testingKey
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Thu, 29 Aug 2019 03:53:35 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '803'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - openresty
37
+ Set-Cookie:
38
+ - SERVERID=blue; path=/
39
+ Strict-Transport-Security:
40
+ - max-age=16070400; includeSubDomains
41
+ Vary:
42
+ - Origin
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Datarobot-Request-Id:
46
+ - 3c9352622d1045ed90e97cf1edc9463f
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - "-1"
51
+ X-Ratelimit-Remaining:
52
+ - '0'
53
+ X-Ratelimit-Reset:
54
+ - '1562953893'
55
+ X-Xss-Protection:
56
+ - 1; mode=block
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: '{"total": 19, "data": [{"name": "Learning score1", "created": "2019-07-31T18:22:47.865168Z",
60
+ "modelCount": 17, "id": "5d41dc72d8c81f0578732a6e", "datasetId": "5d41dc61d8c81f0578732a65",
61
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T18:26:25.823048Z",
62
+ "modelCount": 17, "id": "5d41dd4cd8c81f0566732a67", "datasetId": "5d41dd38d8c81f04ee732a84",
63
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T18:30:08.191384Z",
64
+ "modelCount": 17, "id": "5d41de29d8c81f0587732a4f", "datasetId": "5d41de17d8c81f04ee732a8d",
65
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T18:32:44.135088Z",
66
+ "modelCount": 17, "id": "5d41dec6d8c81f0587732a66", "datasetId": "5d41deb4d8c81f0587732a5d",
67
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T18:39:23.701426Z",
68
+ "modelCount": 17, "id": "5d41e055d8c81f0587732a93", "datasetId": "5d41e041d8c81f0578732a94",
69
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T19:51:02.870724Z",
70
+ "modelCount": 17, "id": "5d41f121d8c81f05c9732a20", "datasetId": "5d41f10dd8c81f05bc732a21",
71
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T19:53:57.812728Z",
72
+ "modelCount": 17, "id": "5d41f1d0d8c81f05c9732a36", "datasetId": "5d41f1bbd8c81f05c9732a25",
73
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T21:24:43.153858Z",
74
+ "modelCount": 17, "id": "5d420715d8c81f05bc732a57", "datasetId": "5d420701d8c81f05fe732a51",
75
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T21:27:33.660402Z",
76
+ "modelCount": 17, "id": "5d4207bfd8c81f05e0732a2e", "datasetId": "5d42079ad8c81f0045732a6b",
77
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T21:29:04.907600Z",
78
+ "modelCount": 17, "id": "5d42081ad8c81f05ed732a74", "datasetId": "5d420807d8c81f05ed732a6b",
79
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T21:41:42.017453Z",
80
+ "modelCount": 17, "id": "5d420b10d8c81f05fe732a84", "datasetId": "5d420afad8c81f05ed732a8f",
81
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T21:43:23.866714Z",
82
+ "modelCount": 17, "id": "5d420b75d8c81f05e0732a3d", "datasetId": "5d420b60d8c81f05fe732a89",
83
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-07-31T22:00:47.171821Z",
84
+ "modelCount": 17, "id": "5d420f88d8c81f06247329e3", "datasetId": "5d420f76d8c81f0477732a5b",
85
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-26T22:41:50.940008Z",
86
+ "modelCount": 17, "id": "5d64602342eabf1da466f338", "datasetId": "5d645f4a42eabf1d9266f2d2",
87
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-26T23:18:03.691314Z",
88
+ "modelCount": 17, "id": "5d6468a042eabf1cc066f2db", "datasetId": "5d64671542eabf1dd266f2bc",
89
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-27T00:25:17.521208Z",
90
+ "modelCount": 17, "id": "5d64786242eabf1d9266f302", "datasetId": "5d64784b42eabf1dd266f302",
91
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-27T00:27:59.123442Z",
92
+ "modelCount": 17, "id": "5d64790442eabf1da466f38b", "datasetId": "5d6478ed42eabf1e0266f2ad",
93
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-27T00:32:26.780948Z",
94
+ "modelCount": 17, "id": "5d647a1042eabf1dd266f30a", "datasetId": "5d6479f842eabf1d9266f307",
95
+ "target": "score1"}, {"name": "Learning score1", "created": "2019-08-27T18:38:06.531655Z",
96
+ "modelCount": 17, "id": "5d65788342eabf202c66f2e7", "datasetId": "5d656bb042eabf201366f2d7",
97
+ "target": "score1"}], "links": {"previous": null, "next": null}}'
98
+ http_version:
99
+ recorded_at: Thu, 29 Aug 2019 03:53:35 GMT
100
+ recorded_with: VCR 5.0.0