powered by
learn_gd13(X, y, alpha, hidden_dim)
learn_gd
# create new data alpha = 0.5 hidden_dim = 4 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 13 lines function learn_gd13(X, y, alpha, hidden_dim)
Run the code above in your browser using DataLab