I need to perform single-step prediction of voltage values using data from the past 6 time nodes.

46 ビュー (過去 30 日間)
丁
2025 年 11 月 19 日 12:24
コメント済み: 2025 年 11 月 20 日 7:35
I need to perform single-step prediction of voltage values using data from the past 6 time nodes. However, there are errors in the data input that are causing incorrect prediction results. How should this be handled?"​"Given that my PyTorch model has an input shape of [batch_size, 6, 4] and an output shape of [batch_size, 1], how should I preprocess the upstream data to ensure compatibility and successful model prediction?"
  5 件のコメント
Sam Chak
Sam Chak 2025 年 11 月 20 日 7:11
Hi @丁
If the data are confidential, create a toy problem (for example, a two‑input dataset) and train the PyTorch model. After verifying the PyTorch model achieves accurate training results, deploy it in Simulink. If the erroneous behavior persists, post both the Simulink file and the PyTorch model in ONNX format so that experienced neural‑network users can assist.
丁
2025 年 11 月 20 日 7:35
This research component comprises Python scripts, ONNX model files, and associated Simulink simulation models. I shall accord utmost consideration to all recommendations offered and will duly document your valuable contributions in my subsequent research records.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTest Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by