目錄

1140902 meeting

前言

本次實驗源於修改 Regression Ensemble 中的 LSTM 部分,藉由調整 LSTM 模型參數,使該模型能更加準確。

程式碼

修改的程式碼如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    rnn_model = RNNModel(
        model="LSTM",
        input_chunk_length=90,
        hidden_dim=100,
        n_rnn_layers=5,
        dropout=0.1,
        training_length=120,
        batch_size=16,
        n_epochs=500,
        random_state=random_state,
        force_reset=True,
        save_checkpoints=False
    )

模擬一

用於與 1140821 meeting 比較。

MethodALL Locs & All TimeKnown Locs & All TimeUnknown Locs & All TimeALL Locs & FutureKnown Locs & FutureUnknown Locs & FutureALL Locs & PastKnown Locs & PastUnknown Locs & Past
MSPE8.2907915818.1566911289.101066219141.46141777141.23102811142.853500262.9639665342.8337176493.750968858
RMSPE2.8793734702.8559921443.01679734511.8937554111.8840661411.952133711.7216174181.6833649781.936741815
MSPE%0.0276965630.0272329270.0304979930.472051420.471171290.477369460.0099223690.0094753920.012623134
RMSPE%0.1664228440.1650240180.1746367460.687059990.686419180.690919280.0996110880.0973416250.112352724
MAPE1.2971268831.2776700821.41469063110.6431594610.6350913510.691909380.9232855800.9033732321.043601881
MAPE%0.0043234830.0042569350.0047255860.035543970.035510390.035746850.0030746640.0030067970.003484735

模擬二

用於與 1140820 meeting 比較。

MethodALL Locs & All TimeKnown Locs & All TimeUnknown Locs & All TimeALL Locs & FutureKnown Locs & FutureUnknown Locs & FutureALL Locs & PastKnown Locs & PastUnknown Locs & Past
MSPE3.217737713.220878363.1987609962.756158862.84145762.24076220.836200870.836055210.83708095
RMSPE1.793805371.794680571.788508047.92187857.9272607.88928150.914440190.914360550.91492128
MSPE%0.271168420.271609540.268503075.24832975.2596545.17990360.072081970.072087750.07204705
RMSPE%0.520738340.521161720.518172822.29092332.2933942.27594020.268480860.268491620.26841582
MAPE0.892366840.892360150.892407245.62021645.6222685.60781950.703252850.703163830.70379076
MAPE%0.078289590.078303050.078208260.48588460.4862490.48368280.061985790.061985210.06198928

結語

https://raw.githubusercontent.com/Josh-test-lab/website-assets-repository/refs/heads/main/posts/1140819%20meeting/To%20be%20continued.jpg
To be continued!

運行環境

  • 本機作業系統:Windows 11 24H2
    • 程式語言:Python 3.12.9
  • 計算平臺:財團法人國家實驗研究院國家高速網路與計算中心臺灣 AI 雲
    • 作業系統:Ubuntu
    • Miniconda
    • GPU:NVIDIA Tesla V100 32GB GPU
    • CUDA 12.8 driver
    • 程式語言:Python 3.10.16 for Linux

延伸學習

參考資料