.SMArtIInt.BaseClasses

Information

The package containes templates to include different types of neural networks in Modelica. One find blocks within the model which have to be connected with the dessired in- and outputs. The user should extend the model, give all parameters and give a interface which has to be connected to the inner blocks.


Steps to include a model:

  1. Create and train a model in TensorFlow
  2. Export a trained TensorFlow model as TfLite model
  3. Extends the appropriate base class
  4. Parametrize the model (provide path, number of in- and outputs, etc.)
  5. Define the interface and connect the in- and outputs of the blocks. The arrays have the same structure as those in TensorFlow: the inputs have to be connected in the same manner as they are used in the neural network during training.


The examples PipeLocalHeatTransfer_smallNN and TF_PI_Stateful uses this approach to create a model.

Contents

NameDescription
 BaseNeuralNet
 BaseGenericNeuralNet
 BaseFeedForwardNeuralNet
 BaseRecurrentNeuralNet
 BaseStatefulRecurrentNeuralNet

Generated at 2024-05-19T18:15:52Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos