Is it possible to make Machine Learning model to predict multiple outputs with Statistics and Machine Learning Toolbox?
Mostrar comentarios más antiguos
I'd like to create a model to predict two output signals based on the following seven input signals, by using Statistics and Machine Learning Toolbox.
This csv is a the data (about 4,200 rows) used as training data.
This data is a time series every 0.025 seconds.
I think the model type is Regressin model if you create a model from this data.

(Data type of each Signal is double type.)
Input Signals:
- V_TGT_Vehicle
- P_DCDC_PNT_W
- P_HVAC_PNT_W
- SOC_BT_Hi_PNT_per
- open_accel_Driver_per
- open_break_Driver_per
- w_MG_PNT_radps
Output Signals:
- trq_MG2_tgtCalc1
- trq_MG2_tgtCalc2
I've been going through Statistics and Machine Learning Toolbox documentation, I'm not sure if it's possible to create a machine learning model like above.
I'd like to export the model as Simulink block.
Do you have any ideas?
How do I make this with Statistics and Machine Learning Toolbox?
Respuesta aceptada
Más respuestas (1)
Jacob Mathew
el 25 de Sept. de 2024
0 votos
Hey 翼,
The Statistics and Machine Learning Toolbox deals with classical machine learning models like linear regression and decision tree ensemble approaches which deal with a single output. If there are any data preprocessing or transformation which allows single parameter output for the dataset then the following examples are worth exploring:
- Analyze Time Series Data : https://www.mathworks.com/help/releases/R2024b/stats/time-series-regression-of-airline-passenger-data.html
- Manually Perform Time Series Forecasting Using Ensembles of Boosted Regression Trees : https://www.mathworks.com/help/releases/R2024b/stats/time-series-forecasting-using-ensemble-of-boosted-regression-trees.html
- Model and Simulate Electricity Spot Prices Using the Skew-Normal Distribution : https://www.mathworks.com/help/releases/R2024b/econ/model-and-simulate-electricity-spot-prices-using-skew-normal-distribution.html
However, if you have require the output to have two signals, then you will require the Deep Learning Toolbox to create regression neural networks. The link to the Toolbox is :
Refer to the following example to get started with Time Series Forecasting:
Once the model has been trained, it can be exported using the exportNetworkToSimulink function. The link to the function’s documentation is below:
4 comentarios
Jacob Mathew
el 26 de Sept. de 2024
You can compare the requirements of both Toolboxes at the link belo. There is dropdown where you can check the requirements for any Toolbox you may need to use as well:
In regards to creating the a model to predict 2 outputs, refer to the Time Series Forecasting example in Deep Learning Toolbox mentioned above. A snippet from the example shows that it has more than one output, which is suitable for your requirement:

翼
el 3 de Oct. de 2024
Philip Brown
el 23 de Oct. de 2024
exportNetworkToSimulink works on networks of type dlnetwork, but trainNetwork trains a DAGNetwork network.
To train dlnetwork objects, you could take a look at the trainnet function.However, a simple workaround for you may be to call dlnet = dag2dlnetwork(net), which will convert the network type.
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


