- Prepare the raw data: The input data should be in a matrix form where columns represent the feature and rows represent observations. The target data should also be in a matrix format where each row corresponds to output for the respective input.
- Create the network: Use the “cascadeforwardnet” function to create a network of desired number of neurons in the hidden layer.
- Configure the network: You can use the “configure” function to configure the network This step is optional, as unconfigured networks are automatically configured when the “train” function is called for the first time.
- Train the network: Use “train” function to train the network.
- Simulate the network: Use “sim” function or call the network object with the inputs to simulate the network.
- cascadeforwardnet: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/cascadeforwardnet.html
- configure: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/network.configure.html
- train: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/network.train.html
- sim: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/sim.html
- view: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/view.html
- perform: https://www.mathworks.com/help/releases/R2024b/deeplearning/ref/network.perform.html