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 18, 2020
1 parent 9975d86 commit 565604c
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 @@ -86,6 +86,12 @@ class Dann {
this.aFunc[layer] = function_;
this.aFunc_d[layer] = function_d;
}
setActivations(function_,function_d) {
for (let i = 0; i < this.Layers.length-1; i++) {
this.aFunc[i] = function_;
this.aFunc_d[i] = function_d;
}
}
makeWeights() {
//this function should be called after the initialisation of the hidden layers.
for (let i = 0; i < this.Layers.length-1;i++) {
Expand Down Expand Up @@ -146,7 +152,6 @@ class Dann {

}
}

// Matrix Math:
class Matrix {
constructor(rows,cols) {
Expand Down

0 comments on commit 565604c

Please sign in to comment.