Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Update dann.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed Sep 4, 2020
1 parent 1637aad commit 81028da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dann.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,17 @@ class DANNeuralNetwork {
console.log(" Layers:")
for (let i = 0; i < this.Layers.length;i++) {
let str = "Hidden Layer: ";
let afunc = "";
if (i == 0) {
str = "Input Layer: ";
afunc = " ";
} else if (i == this.Layers.length-1) {
str = "Output Layer: ";
afunc = this.aFunc[i+1].name;
} else {
afunc = this.aFunc[i+1].name;
}
console.log(" " + this.aFunc[i].name + " " + str + Matrix.toArray(this.Layers[i]).length);
console.log(" " + afunc + " " + str + Matrix.toArray(this.Layers[i]).length);
}
console.log(" ");
console.log(" Learning rate:")
Expand Down

0 comments on commit 81028da

Please sign in to comment.