Learn R Programming

learNN (version 0.2.0)

learn_bp11: Learn Back Propagation in 11 lines

Description

Learn Back Propagation in 11 lines

Usage

learn_bp11(X, y)

Arguments

X
input data
y
output data

References

http://qua.st/handcoding-neural-network/ http://iamtrask.github.io/2015/07/12/basic-python-network/

See Also

learn_bp

Examples

Run this code
# construct new 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 11 lines function
learn_bp11(X, y)

# view output
syn0
syn1

Run the code above in your browser using DataLab