Skip to content

Instantly share code, notes, and snippets.

View akelleh's full-sized avatar

Adam Kelleher akelleh

View GitHub Profile
library(CRF)
# there are 10 nodes. Each node can take on one of 3 states.
nNodes <- 10
nStates <- 3
# make the adjacency matrices for each graph
# a fully-connected graph of 10 nodes. Loopiest possible.
# we expect a lot of error: the inferred node beliefs should
library(CRF)
# there are 10 nodes. Each node can take on one of 3 states.
nNodes <- 10
nStates <- 3
# make the adjacency matrices for each graph
# a fully-connected graph of 10 nodes. Loopiest possible.
# we expect a lot of error: the inferred node beliefs should
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from causality.nonparametric.causal_reg import MutualInformation
import numpy as np
import pandas as pd
K = [[1., 0.5, 0.25],
[0.5, 1., 0.5],
[0.25, 0.5, 1.]]
X = np.random.multivariate_normal(mean=[0,0,0],cov=K, size=1000)
X = pd.DataFrame(X,columns=['x1','x2','x3'])
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.