Vinecop.fit
- Vinecop.fit(self: pyvinecopulib.Vinecop, data: numpy.ndarray[numpy.float64[m, n]], controls: pyvinecopulib.FitControlsBicop = FitControlsBicop(), num_threads: int = 1) None
Fits the parameters of a pre-specified vine copula model.
This method fits the pair-copulas of a vine copula model. It is assumed that the structure and pair-copula families are already set. The method is equivalent to calling
fit()
for each pair-copula in the model. The same can be achieved by callingselect()
with the same data and aFitControlsVinecop
object instantiated withselect_families = false
.- Parameters:
data – \(n \times (d + k)\) or \(n \times 2d\) matrix of observations, where \(k\) is the number of discrete variables.
controls – The controls for each bivariate fit (see
FitControlsBicop()
).num_threads – The number of threads to use for parallel computation.