Subject: | [PATCH] dump_state does not work |
This bug makes the module pretty useless for any real-world tasks. Attached patch fixes it.
Subject: | open_KtKtYVgz.txt |
diff -rup AI-NNFlex-0.24-0/lib/AI/NNFlex.pm AI-NNFlex-0.24-Xv1lEN/lib/AI/NNFlex.pm
--- AI-NNFlex-0.24-0/lib/AI/NNFlex.pm 2017-05-01 14:46:46.000000000 -0700
+++ AI-NNFlex-0.24-Xv1lEN/lib/AI/NNFlex.pm 2017-05-01 14:46:43.000000000 -0700
@@ -445,6 +445,7 @@ sub dump_state
#FIXME - a more easily read format would be connectedNode first in the file
my $weight = ${$node->{'connectedNodesWest'}->{'weights'}}[$connectedNodeCounter];
print OFILE $node->{'nodeid'}." -> ".$connectedNode->{'nodeid'}." = ".$weight."\n";
+ $connectedNodeCounter++;
}
}
}