(1001, 2)
Fitting Student copula.
UnboundLocalError Traceback (most recent call last)
in ()
7 cop = StudentCopula(dim=2)
8 print(X.shape)
----> 9 cop.fit(X, method='clme')
10
11 # Visualization of CDF and PDF
/usr/local/lib/python3.6/dist-packages/pycopula/copula.py in fit(self, X, method, df_fixed, verbose, **kwargs)
809 rho = fitted_params
810 else:
--> 811 nu = fitted_params[0]
812 rho = fitted_params[1:]
813
UnboundLocalError: local variable 'fitted_params' referenced before assignment
(1001, 2)
Fitting Student copula.
UnboundLocalError Traceback (most recent call last)
in ()
7 cop = StudentCopula(dim=2)
8 print(X.shape)
----> 9 cop.fit(X, method='clme')
10
11 # Visualization of CDF and PDF
/usr/local/lib/python3.6/dist-packages/pycopula/copula.py in fit(self, X, method, df_fixed, verbose, **kwargs)
809 rho = fitted_params
810 else:
--> 811 nu = fitted_params[0]
812 rho = fitted_params[1:]
813
UnboundLocalError: local variable 'fitted_params' referenced before assignment