一个名为 Python 的库,可帮助数据科学家推断因果关系,而不是观察相关性。
Theme Status Latest Release Python Version Documentation Build License Code Style[!IMPORTANT]
CausalNex is no longer actively maintained. As of 24th June 2026, CausalNex has reached end of life and has been discontinued.
McKinsey will continue to make this repository accessible strictly as a historical archive, but please be advised that the codebase has been discontinued and is no longer supported. Consequently, the project will not receive any future updates, bug-fixes, or security and vulnerability patches. Outstanding issues and pull requests will no longer be monitored or reviewed.
Pursuant to the applicable open-source license, CausalNex is provided on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. Any continued use, copying, modification, or distribution of this codebase is done entirely at the user's own risk, and McKinsey disclaims all liability arising from such use.
"A toolkit for causal reasoning with Bayesian Networks."
CausalNex aims to become one of the leading libraries for causal reasoning and "what-if" analysis using Bayesian Networks. It helps to simplify the steps:
CausalNex is built on our collective experience to leverage Bayesian Networks to identify causal relationships in data so that we can develop the right interventions from analytics. We developed CausalNex because:
In our experience, a data scientist generally has to use at least 3-4 different open-source libraries before arriving at the final step of finding the right intervention. CausalNex aims to simplify this end-to-end process for causality and counterfactual analysis.
The main features of this library are:
CausalNex is a Python package. To install it, simply run:
pip install causalnex
Use all for a full installation of dependencies:
pip install "causalnex[all]"
See more detailed installation instructions, including how to setup Python virtual environments, in our installation guide and get started with our tutorial.
You can find the documentation for the latest stable release here. It explains:
Note: You can find the notebook and markdown files used to build the docs in
docs/source.
We use SemVer for versioning. The best way to upgrade safely is to check our release notes for any notable breaking changes.
You may click "Cite this repository" under the "About" section of this repository to get the citation information in APA and BibTeX formats.
See our LICENSE for more detail.
Do you want to be part of the team that builds CausalNex and other great products at QuantumBlack? Take a look at our open positions and see if you're a fit.
暂无开放 Issues,或尚未同步最近议题。