learn_bp11: Learn Back Propagation in 11 lines

Description Usage Arguments References See Also Examples

View source: R/learn_bp.R

Description

Learn Back Propagation in 11 lines

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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

learNN documentation built on May 29, 2017, 9 a.m.