Skip to content

Instantly share code, notes, and snippets.

@michiboo
Created June 13, 2023 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiboo/537f888cc601701d6b12cc1db0a18a9f to your computer and use it in GitHub Desktop.
Save michiboo/537f888cc601701d6b12cc1db0a18a9f to your computer and use it in GitHub Desktop.
[{
"test_name": "cb_two_action_diff_context",
"data_func": "generate_cb_data",
"data_func_args": {
"num_examples": 100,
"num_features": 2,
"num_action": 2,
"reward_function": {
"name": "fixed_reward_for_diff_context",
"params": {}
},
"probability_function": {
"name": "even_probability",
"params": {
"num_actions": 2
}
},
"no_context": 2
},
"assert_functions": [
{
"assert_func": "assert_prediction",
"assert_func_args": {
"expected_value": [
0.5,
0.5
],
"threshold": 0.1
}
},
{
"assert_func": "assert_loss",
"assert_func_args": {
"expected_loss": -1.1
}
}
],
"grid": {
"#base": [
"--cb_explore 1 --epsilon 0.2"
]
},
"output": [
"--readable_model",
"-p"
]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment