Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support numpy>=2.0 in econml #944

Open
imatiach-msft opened this issue Jan 9, 2025 · 2 comments
Open

support numpy>=2.0 in econml #944

imatiach-msft opened this issue Jan 9, 2025 · 2 comments

Comments

@imatiach-msft
Copy link
Contributor

Getting errors when using econml with numpy>=2.0:

/usr/share/miniconda/envs/test/lib/python3.9/site-packages/responsibleai/managers/causal_manager.py:10: in <module>
    from econml.solutions.causal_analysis import CausalAnalysis
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/econml/solutions/causal_analysis/__init__.py:4: in <module>
    from ._causal_analysis import CausalAnalysis
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/econml/solutions/causal_analysis/_causal_analysis.py:13: in <module>
    from numpy.lib.function_base import iterable
E   ModuleNotFoundError: No module named 'numpy.lib.function_base'

numpy.lib.function_base was deprecated with numpy>=2.0 hence econml needs to fix the import to support it

@imatiach-msft
Copy link
Contributor Author

@imatiach-msft
Copy link
Contributor Author

sent PR with fix:
#945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant