I have tried:network net = load('c:\\nn\\net') and get the errors:Error using false Inputs must be numeric. Have tried >> > promoting nnet in path as well as removing Simulink from path. Without the sim call in trainb the program > > runs without any problem. Why are you modifying this function? -- Steve Lord [email protected] comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com Subject: 'model' parameter must be a weblink
Same results. Play games and win prizes! Search To add search criteria to your watch list, search for the desired term in the search box. Better way to check if match in array Why doesn't compiler report missing semicolon?
Same > >> > results. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed sim(net,XYZ) works fine in the main (calling) code. An Error Occurred Unable to complete the action because of changes made to the page.
Thus I put a sim(net ,VV) command in trainb function. > > I get the 'model' parameter must be a string error. Same results. sim(net,XYZ) works fine in the main (calling) code. Apparently for external inputs, I need to specify LoadExternalInputs to 'on'; I would like to override the default external input via ExternalInput to [myTimeVar, myInputVar], as documented in that link.
All parameters inside the fuction must be declared. The trained network is saved as a .mat file. Tagging provides a way to see both the big trends and the smaller, more obscure ideas and applications. https://www.mathworks.com/matlabcentral/answers/46034-neural-network-error-model-parameter-must-be-a-string-when-calling-sim-net-data I would like to do a nnet sim for each epoch.
Subject: 'model' parameter must be a string - error From: Steven_Lord Date: 23 Aug, 2010 13:54:39 Message: 4 of 8 Reply to this message Add author to My Watch List View The nem error show me that my function did not recognize my MPCobj. Author To add an author to your watch list, go to the author's profile page and click on the "Add this author to my watch list" link at the top of But it did not work for me!!
So I put the MPCobj as input for my function and it works. Without the sim call in trainb the program > runs without any problem. Have tried > >> > promoting nnet in path as well as removing Simulink from path. Why does the find command blow up in /run/?
Discover... have a peek at these guys Discover... Reload the page to see its updated state. Mark Mark (view profile) 4 questions 0 answers 0 accepted answers Reputation: 0 on 16 Aug 2012 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/46034#comment_94877 I'm sure that in the constructor you could
Thanks for your attention. Thus I put a sim(net ,VV) command in trainb function. > > What do you mean by "put a sim command in trainb function"? Download now × About Newsgroups, Newsreaders, and MATLAB Central What are newsgroups? check over here Taking Simulink off the path doesn't help. .
Learn more MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi Learn more Discover what MATLAB® can do for your career. So stupid!! In the main script, there is no problem with the SIM function.
Same results. Tags make it easier for you to find threads of interest. Thread To add a thread to your watch list, go to the thread page and click the "Add this thread to my watch list" link at the top of the page. You should be able to tell which of those two cases it is by using "whos" with the -file option to have whos look into the .mat file and report what
For example, if using the variable names from above the network must be properly accessed by writing:results = net.net(testdata); or results = sim(net.net, testdata); 0 Comments Show all comments Log In Discover... An Error Occurred Unable to complete the action because of changes made to the page. this content Mark Mark (view profile) 4 questions 0 answers 0 accepted answers Reputation: 0 on 16 Aug 2012 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/46034#comment_94878 Oh forgot to mention for the newbies out
Learn MATLAB today! I want > to call the sim command in the nntoolbox. I realized that only using 'global' my function would get the MPCobj, but not. Honestly try it!I tested it using:ISS =21 NISS = 21 TRISS = 54.09 RTS=4.09 pelvic=0 penis=3 teste=5 scrotum=0 rectum=0 result=runNet(ISS, NISS, TRISS, RTS, pelvic, penis, teste, scrotum, rectum) and then compiled
If you call SIM with a network object (such as one created > by NEWFF, NEWRB, etc.) as its first input, it will call the SIM method > rather than the Same results. The error points to the 'model' parameter, which is the first argument to the command. I would like to do a nnet sim for each epoch.
Reload the page to see its updated state. If I stop the program just > before the sim call with debug and check net, I get the same, correctly > structured net. Thanks for the help. Thus I put a sim(net ,VV) command in trainb function.
You probably > >> shouldn't modify the TRAINB function at all. > > Why are you modifying this function? > > -- > Steve Lord > [email protected] > comp.soft-sys.matlab (CSSM) FAQ: The simulation run perfectly. Apply Today MATLAB Academy On-demand access to MATLAB training.