# create data
X = matrix(c(0,0,1,
0,1,1,
1,0,1,
1,1,1), nrow=4, byrow=TRUE)
y = matrix(c(0,
1,
1,
0),
nrow=4)
# run full function
learn_bp(X, y)
Run the code above in your browser using DataLab