How can I conduct a Neural Network online training within simulink?
7 次查看(过去 30 天)
显示 更早的评论
I have a UAV simulink framework, where I need to design a new control algorithm by deep learning. However, the deep learning toolbox can only support offline training. The design of control algorithm need to be based on feedback data, so I have to implement online training in simulink. Is there any method to achieve that?
0 个评论
回答(1 个)
Vinayak
2024-2-6
Hi Yang Chen,
I believe you would like to implement online training using Simulink. Since the deep learning toolbox for Simulink supports only offline training, I suggest a workaround to achieve the requirement. The challenge is to transfer your feedback data from Simulink environment to the internet where you are performing the training.
Utilize Simulink blocks for data collection from your UAV simulation, capturing the necessary feedback data for training. Save this data within your model.
Create a MATLAB function block or script to load the saved data and implement the online training loop. Ensure the loop updates your model based on the training data for subsequent simulations.
Establish a feedback loop within your Simulink model to continuously repeat the online training steps during the simulation. This approach ensures your model evolves in real-time based on feedback.
The pseudocode for the script/function block would look something like:
currentData = load(‘feedback.mat’);
trainingData = appendData(trainingData, currentData);
% Perform functions/updates
updatedAlgorithm(setpoint, trainingData);
You may refer to the following documentation for further reading:
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!