Skip to content

Commit

Permalink
add trainNN: creates a NN with given size of hidden layer and trains …
Browse files Browse the repository at this point in the history
…it on training data
  • Loading branch information
nflip authored and marcoeilers committed Mar 16, 2012
1 parent 1dae0c2 commit dc559ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions handin3/trainNN.m
@@ -0,0 +1,13 @@
function trained = trainNN(hidden, tdata, act, actD, Lrate)
trained = initWs(hidden);
allow = initAllowed(Ws);
acts = initActs(hidden, act);



%% todo: run until error is small enough?
%%
trained = batchTrain(trained, tdata, acts, actD, allow, ...
Lrate);

%%

0 comments on commit dc559ae

Please sign in to comment.