Page 1 of 1

Can Weights be modified via Script?

Posted: Mon 22. Nov 2010, 19:19
by MrCreosote
I'm trying to do my own custom Randomization and I cannot see any way to do this. All the ways I have found require mouse selection.

Perhaps there is a way to modify the .mbn file?

Thanks in advance,
Tom

Re: Can Weights be modified via Script?

Posted: Thu 25. Nov 2010, 06:25
by Admin
MrCreosote wrote: All the ways I have found require mouse selection.
This is not quite true: They require selection but not necessarily with the mouse, it can be done by csripting, too.

For example the NetEditor script class that is part of the scripting example downloads, uses this method.
However, it's quite slow and a bit of scripting implementation work.

You might want to take a look into the NetEditor script class, this may provide some useful hints on how to select items through scripting.

Regards,
Thomas

Re: Can Weights be modified via Script?

Posted: Mon 29. Nov 2010, 19:58
by MrCreosote
I can see how to Create a Link between two different nodes:

void ConnectInputToOutput()

however, I cannot see how to select the Link so I can get at its Properties.

Maybe the commands:

void SelectLinksFromExtra() and
void SelectLinksToExtra() ?

Could find no examples of Link editing in NetEditor class.

Thanks
Tom

Re: Can Weights be modified via Script?

Posted: Thu 2. Dec 2010, 06:22
by Admin
MrCreosote wrote:Maybe the commands:

void SelectLinksFromExtra() and
void SelectLinksToExtra() ?
Yes, basically the only way to select links is by defining their corresponding source and target neuron(s).
Once selected the links can be edited through their data properties structure 'SLinkProp'.