All Projects → bd2kccd → Py Causal

bd2kccd / Py Causal

Licence: other

Projects that are alternatives of or similar to Py Causal

Spark R Notebooks
R on Apache Spark (SparkR) tutorials for Big Data analysis and Machine Learning as IPython / Jupyter notebooks
Stars: ✭ 109 (-0.91%)
Mutual labels:  jupyter-notebook
Gtc2019 Numba
Numba tutorial for GTC2019
Stars: ✭ 109 (-0.91%)
Mutual labels:  jupyter-notebook
Contrastive
Contrastive PCA
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Mtcnn
MTCNN face detection implementation for TensorFlow, as a PIP package.
Stars: ✭ 1,689 (+1435.45%)
Mutual labels:  jupyter-notebook
Sklearn
Data & Code associated with my tutorial on the sci-kit learn machine learning library in python
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Google Images Dataset
This repository provides the necessary code to create your own Google Images Dataset.
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Prisma abu
用机器学习做个艺术画家-Prisma
Stars: ✭ 109 (-0.91%)
Mutual labels:  jupyter-notebook
Pymc3 vs pystan
Personal project to compare hierarchical linear regression in PyMC3 and PyStan, as presented at http://pydata.org/london2016/schedule/presentation/30/ video: https://www.youtube.com/watch?v=Jb9eklfbDyg
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Hgn
Hierarchical Gating Networks for Sequential Recommendation
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Bigquery Tutorial
Google BigQuery Tutorial for Data Analyst
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Kubeflowdojo
Repository to hold code, instructions, demos and pointers to presentation assets for Kubeflow Dojo
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Leetcode Course
A guide to crushing tech interviews.
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Monetizing Machine Learning
Source code for 'Monetizing Machine Learning' by Manuel Amunategui and Mehdi Roopaei
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Densecap
Dense image captioning in Torch
Stars: ✭ 1,469 (+1235.45%)
Mutual labels:  jupyter-notebook
Wifi activity recognition
Code for IEEE Communication Magazine (A Survey on Behaviour Recognition Using WiFi Channle State Information)
Stars: ✭ 109 (-0.91%)
Mutual labels:  jupyter-notebook
Credit score
data from the kaggle 'give me some credit" competition
Stars: ✭ 109 (-0.91%)
Mutual labels:  jupyter-notebook
Taiwanreferendum
2018台灣公投結果中的不合理數據
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Introduction To Linear Programming
Introduction to Linear Programming with Python
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Cs231n Convolutional Neural Networks Solutions
Assignment solutions for the CS231n course taught by Stanford on visual recognition. Spring 2017 solutions are for both deep learning frameworks: TensorFlow and PyTorch.
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook
Keras Tutorials
一个面向初学者的,友好的Keras入门教程
Stars: ✭ 110 (+0%)
Mutual labels:  jupyter-notebook

py-causal

Python APIs for causal modeling algorithms developed by the University of Pittsburgh/Carnegie Mellon University Center for Causal Discovery.

This code is distributed under the LGPL 2.1 license.

Requirements:

Python 2.7 and 3.6

  • javabridge>=1.0.11
  • pandas
  • numpy
  • JDK 1.8
  • pydot (Optional)
  • GraphViz (Optional)

Installation overview:

We have found two approaches to be useful:

  • Direct python installation with pip, possibly including use of Jupyter. This approach is likely best for users who have Python installed and are familiar with installing Python modules.
  • Installation via Anaconda, which installs Python and related utilities.

Directions for both approaches are given below...

Installation with pip

First install Java 8 or higher and Python 2.7 or higher.

If you do not have pip installed already, try these instructions.

Once pip is installed, execute these commands

pip install -U numpy
pip install -U pandas
pip install -U javabridge
pip install -U pydot # optional
pip install -U GraphViz # optional

Note: you also need to install the GraphViz engine by following these instructions.

We have observed that on some OS X installations, pydot may provide the following response Couldn't import dot_parser, loading of dot files will not be possible.

If you see this, try the following

 pip uninstall pydot
 pip install pyparsing==1.5.7
 pip install pydot

Then, from within the py-causal directory, run the following command:

python setup.py install

or use the pip command:

pip install git+git://github.com/bd2kccd/py-causal

After running this command, enter a python shell and attempt the following imports:

import pandas as pd
import pydot
from pycausal import search as s

Finally, try to run the python example

python py-causal-fges-continuous-example.py

Be sure to run this from within the py-causal directory.

This program will create a file named tetrad.svg, which should be viewable in any SVG capable program. If you see a causal graph, everything is working correctly.

Running Jupyter/IPython

We have found Jupyter notebooks to be helpful. (Those who have run IPython in the past should know that Jupyter is simply a new name for IPython). To add Jupyter to your completed python install, simply run

pip -U jupyter
jupyter notebook

and then load one of the Jupyter notebooks found in this installation.

Anaconda/Jupyter

First install Java 8 or higher and Python 2.7 or higher.

Installing Python with Anaconda and Jupyter may be easier for some users:

Then run the following to configure anaconda

conda install javabridge
conda install pandas  
conda install numpy
conda install pydot
conda install graphviz 
conda install -c https://conda.anaconda.org/chirayu pycausal 
jupyter notebook

and then load one of the Jupyter notebooks.

Docker Image

The pre-installed py-causal Docker image is also available at Docker Hub

Citation

DOI

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].