Re: Creating standalone application that contains neural network
- From: "Hamid " <s.hamid.d@xxxxxxxxx>
- Date: Wed, 11 May 2011 22:01:04 +0000 (UTC)
"Ashish Uthama" <first.last@xxxxxxxxxxxxx> wrote in message <op.ur24qwr2a5ziv5@xxxxxxxxxxxxxxxxxxxxxxxxxx>...
On Fri, 27 Mar 2009 02:51:04 -0400, Christine <christine_gee@xxxxxxxxxxx> wrote:
> i have checked what the MATLAB Compiler 4.10 can and cannot be compiled > in the below link:
> I am using the Neural Network Toolbox 6.0.2 in my gui and...
> THIS CAN BE COMPILED
> Pre-trained network
> command line functions
> THIS CANNOT BE COMPILED
> * All other command line functionality
> * All GUIs provided with toolbox
> * Simulink blocks
> * gensim
> Is that means that there is no way to create a standalone application > from GUI that contains neural network toolbox functions?
You will not be able to compile any function which trains the network (like ADAPT). Though the link does not explicitly list these funcions (like ADAPT), they fall under the 'All other command line functionality'.
However, you can deploy a M function code which uses a pre-trained network. I believe the SIM function will deploy fine.
The workflow I see is:
1. In MATLAB, train you network using test input/output
2. Save the network (mat file?)
3. Create a deployable function which then uses the pretrained network for new data. The network itself would not change/adapt/train in this function
4. Compile and deploy the above function
I have the same problem.
I can live with this case that we can't train or change the network.
I have a pre-trained network saved to file. but when I load the network and try to get the output of a test sample I get the following error:
"Subscript indices must either be real positive integers or logicals"
for this line of code ----> testOutput = net(data_inputNN);
I'm using matlab2010b
I added a line in my function to save the network to see how it's handling the network.
after opening the mat file in matlab I noticed that it has saved the network as a "struct" and all the weights and biases are empty.
- Prev by Date: Re: Matrix Multiplication
- Next by Date: How to declare an array of objects inside a class?
- Previous by thread: Matrix Multiplication
- Next by thread: Re: Creating standalone application that contains neural network