亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何檢查 LSTM 的準確性?

如何檢查 LSTM 的準確性?

jeck貓 2022-10-06 19:46:46
意圖:我正在嘗試實現一個 LSTM 模型,該模型可以預測給定動作的邊界框的變化。我的輸入是:行動邊界框點 0邊界框點 1邊界框點 2邊界框點 3班級號分數我有一個包含 5 行劇集的數據集(每個劇集需要 5 行數據集),劇集的第一個動作始終為 0(開始動作),而要預測的動作是第 5 個。數據集:act b0  b1  b2  b3  id  score0   85  238 129 256 69  0.92898654937744141   -1  -1  -1  -1  -1  -11   -1  -1  -1  -1  -1  -12   -1  -1  -1  -1  -1  -13   -1  -1  -1  -1  -1  -1                 //row to to predict//0   46  136 256 245 73  0.93698924779891971   18  18  256 252 73  0.82039213180541991   144 212 169 223 10  0.96303576231002811   13  9   252 199 73  0.93742138147354133   -1  -1  -1  -1  -1  -1                 //row to predict//0   215 141 255 233 72  0.99410289525985722   199 116 243 183 74  0.86854839324951173   215 141 255 233 72  0.99411845207214361   189 78  215 95  76  0.86103761196136473   206 50  255 169 72  0.8224002122879028 //row to predict//0   -1  -1  -1  -1  -1  -13   19  129 249 253 73  0.86352258920669562   -1  -1  -1  -1  -1  -12   0   78  13  91  10  0.94884544610977173   -1  -1  -1  -1  -1  -1                 //row to predict//0   206 123 255 189 62  0.99803322553634642   221 197 256 255 62  0.97825247049331672   -1  -1  -1  -1  -1  -12   -1  -1  -1  -1  -1  -11   -1  -1  -1  -1  -1  -1                 //row to predict//0   184 78  243 169 72  0.99534577131271362   191 139 254 246 72  0.99295288324356083   184 78  243 169 72  0.99539631605148323   197 1   254 91  72  0.99561250209808352   184 78  243 169 72  0.9953963160514832 //row to predict//-1是沒有邊界框。
查看完整描述

1 回答

?
弒天下

TA貢獻1818條經驗 獲得超8個贊

如果您的數據維度正確,則您的每個輸入(過濾器)中都會缺少一個額外的維度。


rnn.fit(

        [

            x_training["act"].reshape(episode_length, 1),

            x_training["b0"].reshape(episode_length, 1),

            x_training["b1"].reshape(episode_length, 1),

            x_training["b2"].reshape(episode_length, 1),

            x_training["b3"].reshape(episode_length, 1),

            x_training["class_id"].reshape(episode_length, 1),

            x_training["score"].reshape(episode_length, 1)

        ],

        [

            y_training["b_box"]

        ],

        validation_data=(

                    [

                        x_test["act"].reshape(episode_length, 1),

                        x_test["b0"].reshape(episode_length, 1),

                        x_test["b1"].reshape(episode_length, 1),

                        x_test["b2"].reshape(episode_length, 1),

                        x_test["b3"].reshape(episode_length, 1),

                        x_test["class_id"].reshape(episode_length, 1),

                        x_test["score"].reshape(episode_length, 1)        

                    ],

                    [

                        y_test["b_box"]        

                    ]

                ),

        epochs=1,

        batch_size=3200

    )


查看完整回答
反對 回復 2022-10-06
  • 1 回答
  • 0 關注
  • 135 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號