Skip to content

Commit

Permalink
Add ADD_CONNECTION tests Todo
Browse files Browse the repository at this point in the history
  • Loading branch information
christianechevarria committed Jan 10, 2020
1 parent f62292c commit 968abc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/architecture/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ function Network(input_size, output_size, options) {
* network.possible(mutation.SUB_NODE) // returns an array of nodes that can be removed
*
* network.possible(mutation.ADD_CONN) // returns an array of node pairs to form a connection from
*
* @todo Add more ADD_CONNECTION tests
*/
self.possible = function(method) {
const self = this
Expand Down Expand Up @@ -771,7 +773,7 @@ function Network(input_size, output_size, options) {
if(!isInput && !isOutput && !node2.isProjectingTo(node1)) candidates.push([node2, node1])
}
}

return candidates
}
case "REMOVE_CONN": // SUB_CONN alias
Expand Down

0 comments on commit 968abc8

Please sign in to comment.