Git Product home page Git Product logo

Comments (3)

EtienneCmb avatar EtienneCmb commented on May 25, 2024 1

@raphaelvallat indeed results are different.

The stats works because it's following what's described in the paper. However, the pac estimation returned by the function doesn't corresponds to the one described in the paper. The s is squared in Ozkurt formula, but the returned pac should not. Actually, if you take your values, square it and multiply by the number of time-points (4000) you should retrieve my values.

So yes, please make a PR !

Merci,

++

from tensorpac.

EtienneCmb avatar EtienneCmb commented on May 25, 2024

I see your point. I don't really remember why I didn't strictly follow the paper but at the ed I think it's going to produce the same results because :

s > 2 * xlim
<=> s > 2 * N * erfinv(r) ²
<=> s / N > 2 * erfinv(r) ²

That's why the xlim doesn't contains N. An advantage of the current implementation is that I don't need to make a copy of pac (your s = pac ** 2).

However, I might also miss something. Could you please try it on your side with your implementation to double check?

from tensorpac.

raphaelvallat avatar raphaelvallat commented on May 25, 2024

Hi @EtienneCmb ! So I checked and it does induce produce different results. It seems that the current implementation gives PAC values that are not bounded by [0-1]. The masking seems correct however.

Let me know what you think of the notebooks below, and if that sounds good I can submit a PR

Notebook = ndpac.pdf

from tensorpac.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.