Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conditional Transfer Entropy Exception: Start point t=0 is too early #84

@groceryheist

Description

@groceryheist

Greetings!
I am using Python. I followed the tutorial using jpype. The code below works when I set the histories and delays to 1.

My code:

`
cteClass = jpype.JPackage("infodynamics.measures.continuous.kraskov").ConditionalTransferEntropyCalculatorKraskov
cte = cteClass()
cte.initialise()
cte.setProperty(cte.K_PROP_NAME,'261')
cte.setProperty(cte.K_TAU_PROP_NAME,'10')
cte.setProperty(cte.L_PROP_NAME,'261')
cte.setProperty(cte.L_TAU_PROP_NAME,'10')
cte.setProperty(cte.DELAY_PROP_NAME,'1')
cte.setProperty(cte.COND_EMBED_LENGTHS_PROP_NAME,'261')
cte.setProperty(cte.COND_EMBED_DELAYS_PROP_NAME,'10')
cte.setProperty(cte.COND_DELAYS_PROP_NAME,'1')

cte.setObservations(jpype.JArray(jpype.JDouble, 1)(ts1),jpype.JArray(jpype.JDouble, 1)(ts2), jpype.JArray(jpype.JDouble, 1)(ts3))

`

The exception is:
java.lang.Exception: java.lang.Exception: Start point t=0 is too early for a 261 length embedding vector with delay 10

It also seems like something might be wrong if I try to set up the class using initialise. The method is exposed but the parameters I set don't seem to have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions