-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTransferFunction in scripting causes nerd to freeze #28
Comments
You cannot replace the scripted transfer function during its own reset() Instead, do not use an external transfer function to calculate the return myTanh(activation); However, it seems not necessary to use a ScriptedTranserFunction for On 10/08/2013 05:07 PM, htoutounji wrote:
|
Thanks! I'll write a local function then. The reason why I am not using ScriptedActivationFunction is that the theta dynamics I am trying to implement are on top of SRN and I didn't want to rewrite the SRN activation dynamics. I could set it as default but then I will lose the interface to observe variables and change equations and parameters. Also, these theta dynamics cannot be implemented with a single formula in the scripted SRN version because it needs to sum up incoming weights to the neuron which requires a for-loop. |
I am writing a script for a transfer function on nerd where I change the bias term according to some learning rule. I still want to use the hyperbolic tangent transfer function. Loading the following script is causing nerd to freeze:
var inSynapses;
function reset() {
net.setTransferFunction(neuron, "tanh");
inSynapses = net.getInSynapses(neuron);
}
function calc(activation) {
activation =
theta = net.getBias(neuron);
sumW = 0.0;
for (var i=0; i < inSynapses.length; ++i) {
sumW += net.getWeight(inSynapses[i]);
}
}
loading the same script but with the statement "net.setTransferFunction(neuron, "tanh");" commented works. Uncommenting it after loading also causes freeze. Is it a bug or am I using the statement wrongly?
The text was updated successfully, but these errors were encountered: