How to use the copulas.univariate.Univariate function in copulas

To help you get started, we’ve selected a few copulas examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HDI-Project / SDV / sdv / tabular / copulas.py View on Github external
unflatten_dict)


class GaussianCopula(BaseTabularModel):
    """Model wrapping ``copulas.multivariate.GaussianMultivariate`` copula.

    Args:
        distribution (copulas.univariate.Univariate or str):
            Copulas univariate distribution to use.
        categorical_transformer (str):
            Type of transformer to use for the categorical variables, to choose
            from ``one_hot_encoding``, ``label_encoding``, ``categorical`` and
            ``categorical_fuzzy``.
    """

    DEFAULT_DISTRIBUTION = copulas.univariate.Univariate
    _distribution = None
    _categorical_transformer = None
    _model = None

    HYPERPARAMETERS = {
        'distribution': {
            'type': 'str or copulas.univariate.Univariate',
            'default': 'copulas.univariate.Univariate',
            'description': 'Univariate distribution to use to model each column',
            'choices': [
                'copulas.univariate.Univariate',
                'copulas.univariate.GaussianUnivariate',
                'copulas.univariate.GammaUnivariate',
                'copulas.univariate.BetaUnivariate',
                'copulas.univariate.StudentTUnivariate',
                'copulas.univariate.GaussianKDE',

copulas

Create tabular synthetic data using copulas-based modeling.

BSL-1.0
Latest version published 2 months ago

Package Health Score

88 / 100
Full package analysis