Skip to content

AttributeError: 'GaussianCopula' object has no attribute 'getDimension' #4

@lvoursl-zz

Description

@lvoursl-zz

Hello!
I think there is some problems with freshness of documentation, because code from examples did not work. So, for example, I am trying to run this code: https://blent-ai.github.io/pycopula/build/html/examples.html#sampling
And I get the following errors:

---------------------------------------------------------------------------
TypeError                                 
Traceback (most recent call last)
<ipython-input-40-bb6934b931b1> in <module>()
----> 1 gaussian = GaussianCopula(dim=2, sigma=[[1, 0.8], [0.8, 1]])
 
TypeError: __init__() got an unexpected keyword argument 'sigma'

And after removing 'sigma' from arguments I've got a different error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-38-a14416189e8d> in <module>()
----> 1 sim = simulate(archimedean, 100)

/usr/local/lib/python3.5/dist-packages/pycopula/simulation.py in simulate(copula, n)
     19                 The size of the sample.
     20 	"""
---> 21         d = copula.getDimension()
     22 
     23         X = []

AttributeError: 'GaussianCopula' object has no attribute 'getDimension'

I'm using Python 3.5.2 and downloaded PyCopula using pip.
If you need any help, please, let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions