Skip to content

falsify_graph uses np.math which does not exist #1268

Open
@samiislam

Description

@samiislam

Describe the bug
On line 935

self.max_perms = np.math.factorial(self.causal_graph.number_of_nodes()) - int(self.exclude_original_order)

the method falsify_graph uses np.math which does not work.

Steps to reproduce the behavior

  1. Use falsify_graph in some code with valid parameters
  2. Errors out: AttributeError: module 'numpy' has no attribute 'math'

Expected behavior
falsify_graph returns without error

Version information:

  • DoWhy version 0.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions