BookmarkSubscribeRSS Feed
AndyP

Community Member

Joined:

Jan 9, 2019

Neural network scripting

So I've been doing some work with neural networks, and it's a bit of a pain having to go through the whole process every time I want to change K-fold or the number of hidden layers. So, what I'd like to to is write a script that will take an open spreadsheet, take a range of values for K-fold and number of hidden layers, stopping when R-squared reaches a specified threshold. Is this possible, or is there a simpler way to do it?

1 REPLY
Highlighted
markbailey

Staff

Joined:

Jun 23, 2011

Re: Neural network scripting

There is no interactive feature to survey a range of fitting parameter values as you want to do. I think that a script is required.

 

See Help > Scripting Guide and change the index to show Objects. Then locate the Neural platform in the first list. Select this item and you will see the protocol for it in the second list. These messages serve to make the platform perform the analyses that you want.

 

Your loop could either run a fixed number of iterations and span fitting parameter values to under- and over-fitting the data or you could reference the metric you use in each iteration and stop when your criterion is met. See the same Scripting Index when showing Functions to see the For() and While() iteration functions, respectively.

Learn it once, use it forever!