Skip to content

Commit

Permalink
how the compiler sees it
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Jun 27, 2016
1 parent 11a3561 commit 889a957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/MVATrainer/plugins/ProcMLP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ void ProcMLP::trainData(const std::vector<double> *values,
weight = limiter;
}

if (iteration == ITER_COUNT) {
if (iteration == ITER_COUNT)
count++;
weightSum += weight; }
weightSum += weight;

if (iteration != ITER_TRAIN)
return;
Expand Down
4 changes: 2 additions & 2 deletions PhysicsTools/MVATrainer/plugins/mlp_gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2917,10 +2917,10 @@ int MLP_PrCFun(char *filename)
{
fprintf(W," out%d[%d] = %e\n",il+1,in,
(double) NET.Weights[il][in][0]);
for(jn=1;jn<=NET.Nneur[il-1]; jn++) {
for(jn=1;jn<=NET.Nneur[il-1]; jn++)
fprintf(W," +(%e) * out%d[%d]\n",
(double) NET.Weights[il][in][jn],il,jn-1);
fprintf(W," ;\n"); }
fprintf(W," ;\n");
}
fprintf(W,"\n");
for(in=0; in<NET.Nneur[il]; in++)
Expand Down

0 comments on commit 889a957

Please sign in to comment.