mikexl / brain

a study of vanilla neural network
0 stars 0 forks source link

Particle Swarm Neural Net #3

Open mikexl opened 4 years ago

mikexl commented 4 years ago

image

mikexl commented 3 years ago

single perceptron

pso::psoptim(rep(NA, n.parm), function(w) {
p = tanh(x %*% w )
mean((y - p)^2) })