Giter VIP home page Giter VIP logo

Comments (3)

steunenberg avatar steunenberg commented on July 20, 2024

Looking at source I assumed from the help statement I could use 'None' as the method.
"""Refute an estimated causal effect. If method_name is provided, uses the provided method. Else, finds a suitable method to use. :param estimate: an instance of the CausalEstimate class. :returns: an instance of the RefuteResult class """
This throws an UnboundLocalError
UnboundLocalError: local variable 'refuter_class' referenced before assignment

This makes sense when I look at the code:
if method_name is None: pass else: refuter_class = causal_refuters.get_class_object(method_name)
refuter = refuter_class( self._data, identified_estimand=estimand, estimate=estimate, **kwargs ) res = refuter.refute_estimate() return res

from dowhy.

amit-sharma avatar amit-sharma commented on July 20, 2024

Thanks for raising this, @steunenberg . For some reason, I am unable to reproduce this bug. Can you share your python version and any other system details?
For instance, it works on the online Binder notebook here: https://mybinder.org/v2/gh/microsoft/dowhy/master?filepath=docs%2Fsource%2Fdowhy_simple_example.ipynb

from dowhy.

steunenberg avatar steunenberg commented on July 20, 2024

Thanks for getting back to me. System Info:

Python version 3.6.3 :: Anaconda custom (64-bit)
OS Ubuntu 16.04

I noticed that the Notebook examples under docs/source do work on my local system.

from dowhy.

Related Issues (20)

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.