Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
timlautk authored Mar 4, 2018
1 parent 2ffea83 commit 2dbc829
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bcd_dnn_mlp_cifar10_jinshan.m
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,18 @@
set(graph3,'LineWidth',1.5);
l3 = legend('Hidden layer 1','Hidden layer 2','Hidden layer 3','Output layer','Location','northeast');
l3.Interpreter = 'latex';
ylabel('$\nabla_{W^{k}}\bar{\mathcal{L}}$','interpreter','latex')
ylabel('$\|W^{k}-W^{k-1}\|_F$','interpreter','latex')
xlabel('Epochs','interpreter','latex')
title('Speed of learning: Three-layer MLP','interpreter','latex')

figure;
graph4 = semilogy(1:niter,layer11,1:niter,layer21,1:niter,layer31,1:niter,layer41);
set(graph4,'LineWidth',1.5);
l4 = legend('Hidden layer 1','Hidden layer 2','Hidden layer 3','Output layer','Location','northeast');
l4.Interpreter = 'latex';
ylabel('$\nabla_{b^{k}}\bar{\mathcal{L}}$','interpreter','latex')
xlabel('Epochs','interpreter','latex')
title('Speed of learning: Three-layer MLP','interpreter','latex')
% figure;
% graph4 = semilogy(1:niter,layer11,1:niter,layer21,1:niter,layer31,1:niter,layer41);
% set(graph4,'LineWidth',1.5);
% l4 = legend('Hidden layer 1','Hidden layer 2','Hidden layer 3','Output layer','Location','northeast');
% l4.Interpreter = 'latex';
% ylabel('$\nabla_{b^{k}}\bar{\mathcal{L}}$','interpreter','latex')
% xlabel('Epochs','interpreter','latex')
% title('Speed of learning: Three-layer MLP','interpreter','latex')
%% Training error
switch indicator
case 1 % ReLU
Expand Down

0 comments on commit 2dbc829

Please sign in to comment.