-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include a cold start bandit test case (#71)
* cold start bandit test case * hit all variations in the cold start test * correct flag key * try null instead of cold start for model version * revert to using cold start placeholder
- Loading branch information
Showing
3 changed files
with
114 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"flag": "cold_start_bandit_flag", | ||
"defaultValue": "default", | ||
"subjects": [ | ||
{ | ||
"subjectKey": "alice", | ||
"subjectAttributes": { | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
"actions": [ | ||
{ | ||
"actionKey": "red", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "blue", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "green", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
} | ||
], | ||
"assignment": {"variation": "cold_start_bandit", "action": "red"} | ||
}, | ||
{ | ||
"subjectKey": "bob", | ||
"subjectAttributes": { | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
"actions": [ | ||
{ | ||
"actionKey": "red", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "blue", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "green", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
} | ||
], | ||
"assignment": {"variation": "cold_start_bandit", "action": "green"} | ||
}, | ||
{ | ||
"subjectKey": "charles", | ||
"subjectAttributes": { | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
"actions": [ | ||
{ | ||
"actionKey": "red", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "blue", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
}, | ||
{ | ||
"actionKey": "green", | ||
"numericAttributes": {}, | ||
"categoricalAttributes": {} | ||
} | ||
], | ||
"assignment": {"variation": "cold_start_bandit", "action": "blue"} | ||
} | ||
] | ||
} |