How can I obtain the functions parameterStructToVector and parameterVectorToStruct?

I want to execute the code provided as an example in the following page https://es.mathworks.com/help/deeplearning/ug/solve-partial-differential-equations-with-lbfgs-method-and-deep-learning.html but I am unable to do so since the code relies on the functions parameterStructToVector and parameterVectorToStruct and I am unable to generate them in my computer. How can I get these two functions or replicate them to be able to run the code?

 Respuesta aceptada

Hi
You can get the function in the example folder. The example path is given in the top right side of this documentation page. Or else you can run the below given command to move to the example directory.
openExample('nnet/TrainPhysicsInformedNeuralNetworkWithLBFGSAndAutoDiffExample')
The example folder contains all the helper functions.
Hope it will help!

2 comentarios

That was exactly what I needed, thank you so much!
Hi, can I run this example in MATLAB R2020b?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Oct. de 2021

Comentada:

el 19 de Oct. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by