Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Copula flatten parameters.
"""
parameters = unflatten_dict(parameters)
parameters.setdefault('fitted', True)
parameters.setdefault('distribution', self.distribution)
parameters = self._unflatten_gaussian_copula(parameters)
for param in parameters['distribs'].values():
param.setdefault('type', self.distribution)
param.setdefault('fitted', True)
self.model = multivariate.GaussianMultivariate.from_dict(parameters)
class GaussianCopulaTruncated(GaussianCopula):
DISTRIBUTION = univariate.TruncatedGaussian