learn_bp11: Learn Back Propagation in 11 lines

View source: R/learn_bp.R

learn_bp11R Documentation

Learn Back Propagation in 11 lines

Description

An 11 line version of the backpropagation function.

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

# 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

bquast/learNN documentation built on June 26, 2022, 2:08 a.m.