Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add nnexample to show use of functions for NN

  • Loading branch information...
commit f5ea5a39d2df060ffd18a54a54cf4483274293b4 1 parent dc559ae
@nflip nflip authored committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 handin3/nnexample.m
View
12 handin3/nnexample.m
@@ -0,0 +1,12 @@
+%% simple exmple session for nn batch training
+
+Ws = initWs(4);
+allowed = initAllowed(Ws);
+acts = initActs(4, act);
+tr = multiBatchTrain(Ws, tdata, acts, actd, allowed, 0.001, 50);
+tr2 = multiBatchTrain(Ws, tdata, acts, actd, allowed, 0.001, 500);
+
+nnerror(Ws, tdata, acts)
+nnerror(tr, tdata, acts)
+nnerror(tr2, tdata, acts)
+
Please sign in to comment.
Something went wrong with that request. Please try again.