Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: [RLOS2023] add test for cb with continous action #4630

Merged
merged 7 commits into from
Aug 18, 2023

Conversation

michiboo
Copy link
Collaborator

@michiboo michiboo commented Aug 9, 2023

No description provided.

@michiboo michiboo changed the base branch from master to rlos2023/test August 9, 2023 15:23
@michiboo michiboo changed the title test: [RLOS2023][WIP] add test for cb with continous action test: [RLOS2023][WIP] add test for cb with continous action Aug 9, 2023
@@ -0,0 +1,189 @@
[
{
"test_name": "cb_two_action",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cb -> ca

for _ in range(num_examples):
no_context = len(context_name)
if no_context > 1:
context = random.randint(1, no_context)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

context = context_names[context - 1] after that? (or using np.random.choice)

@ataymano ataymano changed the title test: [RLOS2023][WIP] add test for cb with continous action test: [RLOS2023] add test for cb with continous action Aug 18, 2023
@ataymano ataymano merged commit 4bb9741 into VowpalWabbit:rlos2023/test Aug 18, 2023
41 checks passed
ataymano added a commit that referenced this pull request Oct 5, 2023
* intro notebook

* test: [RLOS_2023][WIP] updated test for regression weight  (#4600)

* test: add test for regression weight

* test: make test more reusable by using json to specify pytest

* test: minor fix on naming

* test: add and option to python json test

* test: [RLOS_2023]  test for contextual bandit (#4612)

* test: add basic cb test and configuration

* test: add shared context data generation

* add test for cb_explore_adf

* test: dynamically create pytest test case

* test: give fixed reward function signature

* test: [RLOS_2023] [WIP] Support + and * expression for grids (#4618)

* test: add basic cb test and configuration

* test: add shared context data generation

* add test for cb_explore_adf

* test: dynamically create pytest test case

* test: give fixed reward function signature

* test: support + and * expression for grids

* fix empty expression bugs

* test: [RLOS2023] [WIP] add more arguments for reg&cb tests (#4619)

* test: add more arguments for reg&cb tests

* test: fix minor bug in generate expression & add loss funcs to tests

* test: [RLOS2023] [WIP] add classification test (#4623)

* test: add more arguments for reg&cb tests

* test: fix minor bug in generate expression & add loss funcs to tests

* test: add test for classification

* test: organize test framework structure (#4624)

* test: [RLOS2023][WIP] add option for storing output and grid language redefinition (#4627)

* test: redesign grid lang

* test: add option for store output

* test: change list to dict for config vars

* test: [RLOS2023] add test for slate (#4629)

* test: add test for slate

* test: test cleanup and slate test update

* test: minor cleanup and change assert_loss function to equal instead of lower

* test: [RLOS2023] add test for cb with continous action  (#4630)

* test: add test for slate

* test: test cleanup and slate test update

* test: minor cleanup and change assert_loss function to equal instead of lower

* test: add test for cb with continous action

* modify blocker testcase

* test: [RLOS2023] clean for e2e testing framework v2 (#4633)

* test: clean for e2e test v2

* test:change seed to same value for all tests

* test: add datagen driver (#4638)

* python black

* python black 2

* minor demo cleanup

---------

Co-authored-by: Alexey Taymanov <[email protected]>
Co-authored-by: Alexey Taymanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants