Skip to content

Commit

Permalink
final clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanAMichaels committed Jan 11, 2018
1 parent a81c845 commit 72d08bc
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 847 deletions.
6 changes: 3 additions & 3 deletions examples/geneticRNN_Example_CO.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
evalOpts = [2 1]; % Plotting level and frequency of evaluation

%% Train network
% This step should take about 5 minutes, depending on your processor.
% Should stopped at the desired time by pressing the STOP button and waiting for 1 iteration
% This step should take less than 5 minutes on a 16 core machine.
% Should be stopped at the desired time by pressing the STOP button and waiting for 1 iteration.
% Look inside to see information about the many optional parameters.
[net, learnStats] = geneticRNN_learn_model_2(inp, mutationPower, populationSize, truncationSize, fitnessFunInputs, policyInitInputs, ...
[net, learnStats] = geneticRNN_learn_model(inp, mutationPower, populationSize, truncationSize, fitnessFunInputs, policyInitInputs, ...
'evalOpts', evalOpts, ...
'policyInitInputsOptional', policyInitInputsOptional, ...
'targetFun', targetFun, 'targetFunPassthrough', targetFunPassthrough);
Expand Down
11 changes: 5 additions & 6 deletions examples/geneticRNN_Example_DNMS.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
B = size(targ{1},1); % Outputs
I = size(inp{1},1); % Inputs
p = 1; % Sparsity
g = 1.2; % Spectral scaling
g = 1.1; % Spectral scaling
dt = 10; % Time step
tau = 50; % Time constant

Expand All @@ -70,14 +70,13 @@
evalOpts = [2 1]; % Plotting level and frequency of evaluation

%% Train network
% This step should take about 5 minutes, depending on your processor.
% Should stopped at the desired time by pressing the STOP button and waiting for 1 iteration
% This step should take less than 5 minutes on a 16 core machine.
% Should be stopped at the desired time by pressing the STOP button and waiting for 1 iteration.
% Look inside to see information about the many optional parameters.
[net, learnStats] = geneticRNN_learn_model_2(mutationPower, populationSize, truncationSize, fitnessFunInputs, policyInitInputs, ...
[net, learnStats] = geneticRNN_learn_model(inp, mutationPower, populationSize, truncationSize, fitnessFunInputs, policyInitInputs, ...
'input', inp, ...
'evalOpts', evalOpts, ...
'policyInitInputsOptional', policyInitInputsOptional);

%% Run network
[Z0, Z1, R, X, kin] = geneticRNN_run_model(net, 'input', inp);

[Z0, Z1, R, X, kin] = geneticRNN_run_model(net, inp);
Loading

0 comments on commit 72d08bc

Please sign in to comment.