Skip to content

Instantly share code, notes, and snippets.

@michiboo
Created July 3, 2023 15:26
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/03f34dfe37588beb71b591506e5ac04e to your computer and use it in GitHub Desktop.
Save michiboo/03f34dfe37588beb71b591506e5ac04e to your computer and use it in GitHub Desktop.
import vowpalwabbit
vw = vowpalwabbit.Workspace(arg_str="--cb 1", quiet=True)
# print(dir(vw))
print(vw.get_config().keys())
print(dir(vw))
print(vw.get_arguments())
# print(vw.get_options())
# raise SystemExit(1)
# print(vw.get_config()['general'])
for x in vw.get_config()['cb_adf']:
print()
print(x[0])
print()
# if "Update" in x[0]:
for j in x[1]:
print(f"{j.name} : {j.value}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment