Skip to content

Instantly share code, notes, and snippets.

@ColdTeapot273K
Last active January 4, 2023 09:16
Show Gist options
  • Select an option

  • Save ColdTeapot273K/76a91a0416cb9b8ecb114e625f88f4a0 to your computer and use it in GitHub Desktop.

Select an option

Save ColdTeapot273K/76a91a0416cb9b8ecb114e625f88f4a0 to your computer and use it in GitHub Desktop.
Problem with learning from context for Vowpal Wabbit on simple data.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sandy4321

Copy link
Copy Markdown

great code
Jack Gerrits
@jackgerrits
Oct 05 17:31
In order to personalize you must specify interactions. You need to add -q UA to your command line. U corresponds to the User namespace, and A for Action

can you share updated code ?

@ColdTeapot273K

Copy link
Copy Markdown
Author

@Sandy4321 sorry for late reply

just replace

vw = pyvw.vw("--cb_explore_adf --quiet --epsilon 0.2")

with

vw = pyvw.vw("--cb_explore_adf -q UA --quiet --epsilon 0.2")

@AvielMak

AvielMak commented Jan 4, 2023

Copy link
Copy Markdown

Hi friend,
thanks for the gist, changing between the two (with -q UA or without) doesn't effect performance in your code.

have you changed something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment