machine-shop / evenflow

Compute transfer entropy and related statistics
3 stars 5 forks source link

Kernel Density Estimate #32

Open arkwave opened 8 years ago

arkwave commented 8 years ago

matlab transferEntropyKDE and mdKDE functions are done, tests written and passing on local machine.

AceHao commented 8 years ago

looks good to me,

Christopher-Tennant commented 8 years ago

This looks good. Two quick questions, (1) Math is a "generic" Python library, correct? (2) The large number of text files is required because you are testing many of the cases presented with the original toolbox?

arkwave commented 8 years ago

Sorry for the late reply. Yes, Math is a library native to python. The large number of text files is essentially because i ran the entire simulation given in the demoscript, and verified correctness to the same degree for all of them.

stefanv commented 8 years ago

Note that kernel density estimates are already implemented in SciPy, so you probably want to re-use those.

Also, please use the numpy documentation format to document functions.

arkwave commented 8 years ago

Alright in light of the issues thus far (lack of testing coverage and the existence of KDE in scipy), I'll take some time after finals to re-write this function after understanding the math behind it. @stefanv should I close this pull request and make a new one later?

stefanv commented 8 years ago

You could do that, or you can simply keep pushing to this branch. In the end, you can flatten / rewrite your commits. I'm happy to chat about vectorization sometime if you'd like.