Giter VIP home page Giter VIP logo

pcalg's People

Contributors

aldro61 avatar cpflat avatar keiichishima avatar limjcst avatar shisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pcalg's Issues

Incorrect application of rules?

Hi,
I don't think the application of the rules on line 183+ is correct.
I believe these rules are supposed to be applied until the graph is no longer changing. However, you're considering each edge only once and then never checking it again.
Changing another edge later on might make it so that a rule is applicable to an earlier edge you checked, but in your case, the rule is not applied in such a case.

iterator have no attribute of 'remove' and 'len'!

I was trying to use pc-algorithm use your script, but i encounter error below immediately:

File "pcalg.py", line 72, in estimate_skeleton adj_i.remove(j) AttributeError: 'dict_keyiterator' object has no attribute 'remove'
for the adj_i was G neighbors of node i(G was a graph).
it seems the adj_i was a iterator. how it could be an object of remove and len?
can you tell me how to correctly use this module?

Issue with the causalEffect function?

Hi,

I want to estimate the Average Causal Effect (ACE) of X on Y using the causalEffect function. However, it seems that it only takes into account direct edges, see example below.

``
set.seed(1)

g <- randDAG(3, 2)
plot(g)
causalEffect(g, 1, 2)
``

returns the direct effect of 2 on 1 (0.4349115) instead of the total effect (0.4349115 + 0.4349115*0.615568).

Am I missing something, or is this a bug? As far as I understand, ACE is defined as E(Y | do(X = z)) - E(Y| do(X = z+1)) which should yield the total effect, as, in the example above, intervening on 2 also changes 3 which impacts 1.

Thanks for any help!

Cheers,
Fabian

Using custom conditional indepedence tests

I have came across this package from "Elements of Causal Inference". Thank you for your work!

I have a question, is it possible to provide a custom conditional independence test?

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.