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

Add support for categorical data #10

Closed
dmey opened this issue Nov 9, 2020 · 0 comments
Closed

Add support for categorical data #10

dmey opened this issue Nov 9, 2020 · 0 comments
Milestone

Comments

@dmey
Copy link
Owner

dmey commented Nov 9, 2020

We can treat categorical data as discrete but first we need to pre-process categorical values by one hot encoding to remove the order. Re API we can change the current version from

# Assuming  an xarray datasets ds with X1 discrete and and X2 categorical 
generator.fit(ds, copula=syn.VineCopula(controls=ctrl), is_discrete={'X1': True, 'X2': False})

to something like

with X3 continuous 
g.fit(ds, copula=syn.VineCopula(controls=ctrl), types={'X1': 'disc', 'X2': 'cat', 'X3': 'cont'})
@dmey dmey modified the milestones: 0.2.0, 0.3.0 Nov 10, 2020
@dmey dmey closed this as completed in 792ebc1 Nov 12, 2020
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

1 participant