All Projects → uhlerlab → causaldag

uhlerlab / causaldag

Licence: other
Python package for the creation, manipulation, and learning of Causal DAGs

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects
r
7636 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to causaldag

RECCON
This repository contains the dataset and the PyTorch implementations of the models from the paper Recognizing Emotion Cause in Conversations.
Stars: ✭ 126 (+53.66%)
Mutual labels:  inference, causality, causal-inference, causal-models
Dowhy
DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
Stars: ✭ 3,480 (+4143.9%)
Mutual labels:  causality, causal-inference, causal-models
cfml tools
My collection of causal inference algorithms built on top of accessible, simple, out-of-the-box ML methods, aimed at being explainable and useful in the business context
Stars: ✭ 24 (-70.73%)
Mutual labels:  causality, causal-inference
causal-learn
Causal Discovery for Python. Translation and extension of the Tetrad Java code.
Stars: ✭ 428 (+421.95%)
Mutual labels:  causality, causal-inference
cfvqa
[CVPR 2021] Counterfactual VQA: A Cause-Effect Look at Language Bias
Stars: ✭ 96 (+17.07%)
Mutual labels:  causality, causal-inference
causeinfer
Machine learning based causal inference/uplift in Python
Stars: ✭ 45 (-45.12%)
Mutual labels:  causality, causal-inference
causal-ml
Must-read papers and resources related to causal inference and machine (deep) learning
Stars: ✭ 387 (+371.95%)
Mutual labels:  causal-inference, causal-models
Awesome-Neural-Logic
Awesome Neural Logic and Causality: MLN, NLRL, NLM, etc. 因果推断,神经逻辑,强人工智能逻辑推理前沿领域。
Stars: ✭ 106 (+29.27%)
Mutual labels:  causality, causal-inference
Causal Reading Group
We will keep updating the paper list about machine learning + causal theory. We also internally discuss related papers between NExT++ (NUS) and LDS (USTC) by week.
Stars: ✭ 339 (+313.41%)
Mutual labels:  causality, causal-inference
InferenceHelper
C++ Helper Class for Deep Learning Inference Frameworks: TensorFlow Lite, TensorRT, OpenCV, OpenVINO, ncnn, MNN, SNPE, Arm NN, NNabla, ONNX Runtime, LibTorch, TensorFlow
Stars: ✭ 142 (+73.17%)
Mutual labels:  inference
onnxruntime backend
The Triton backend for the ONNX Runtime.
Stars: ✭ 40 (-51.22%)
Mutual labels:  inference
arboreto
A scalable python-based framework for gene regulatory network inference using tree-based ensemble regressors.
Stars: ✭ 33 (-59.76%)
Mutual labels:  inference
forestError
A Unified Framework for Random Forest Prediction Error Estimation
Stars: ✭ 23 (-71.95%)
Mutual labels:  inference
serving-runtime
Exposes a serialized machine learning model through a HTTP API.
Stars: ✭ 15 (-81.71%)
Mutual labels:  inference
pyinfer
Pyinfer is a model agnostic tool for ML developers and researchers to benchmark the inference statistics for machine learning models or functions.
Stars: ✭ 19 (-76.83%)
Mutual labels:  inference
cobalt
Covariate Balance Tables and Plots - An R package for assessing covariate balance
Stars: ✭ 52 (-36.59%)
Mutual labels:  causal-inference
doubleml-for-r
DoubleML - Double Machine Learning in R
Stars: ✭ 58 (-29.27%)
Mutual labels:  causal-inference
FATE-Serving
A scalable, high-performance serving system for federated learning models
Stars: ✭ 107 (+30.49%)
Mutual labels:  inference
JOCI
Ordinal Common-sense Inference
Stars: ✭ 27 (-67.07%)
Mutual labels:  inference
pcalg-py
Implement PC algorithm in Python | PC 算法的 Python 实现
Stars: ✭ 52 (-36.59%)
Mutual labels:  causal-inference

PyPI version

This package is nearing a V1 release, with potential (minor) breaking changes. After the release, future breaking changes will occur less frequently and with more notice. Please raise issues as needed.

causaldag is common wrapper for the following packages:

Installing and importing causaldag should be sufficient for most use cases.

CausalDAG is a Python package for the creation, manipulation, and learning of Causal DAGs. CausalDAG requires Python 3.5+

Install

Install the latest version of CausalDAG:

$ pip3 install causaldag

Documentation

Documentation for each subpackage is available at:

Examples for specific algorithms can be found at https://uhlerlab.github.io/causaldag/

Simple Example

Find the CPDAG (complete partially directed acyclic graph, AKA the essential graph) corresponding to a DAG:

>>> from causaldag import rand, partial_correlation_suffstat, partial_correlation_test, MemoizedCI_Tester, gsp
>>> import numpy as np
>>> np.random.seed(12312)
>>> nnodes = 5
>>> nodes = set(range(nnodes))
>>> dag = rand.directed_erdos(nnodes, .5)
>>> gdag = rand.rand_weights(dag)
>>> samples = gdag.sample(100)
>>> suffstat = partial_correlation_suffstat(samples)
>>> ci_tester = MemoizedCI_Tester(partial_correlation_test, suffstat, alpha=1e-3)
>>> est_dag = gsp(nodes, ci_tester)
>>> dag.shd_skeleton(est_dag)

License

Released under the 3-Clause BSD license (see LICENSE.txt):

Copyright (C) 2018
Chandler Squires <[email protected]>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].