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

Categorical context variables #14

Open
michaelpollmann opened this issue Dec 20, 2022 · 1 comment
Open

Categorical context variables #14

michaelpollmann opened this issue Dec 20, 2022 · 1 comment

Comments

@michaelpollmann
Copy link

Is there an easy way to use/implement categorical context variables?
Is my understanding correct that all context_vars will implicitly be treated as continuous, such that I should (?) turn them into dummy variables manually beforehand if they are categorical (and take on more than 2 values)? Or is there a reason to prefer treating categorical context variables as continuous?

@Jonas-Metzger
Copy link
Collaborator

In general, your generator should be big enough for it not to make much of a difference, but yes, it's better to include categorical conditioning variables as dummies rather than integers (except if they're ordered categorical, then integers are usually better). The inductive bias of a neural net is towards assuming continuity in it's input dimensions, so it's suboptimal to ask it to learn very discontinuous functions – which you can avoid by using dummies.

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

No branches or pull requests

2 participants