cost 237 ms
多輸出 keras model 帶有監控兩個指標的回調

[英]multi-output keras model with a callback that monitors two metrics

我有一個 tf model 有兩個輸出,如 model.compile() 所示: 我想使用 ModelCheckpoint 回調,它應該監控 val_BV_R2 和 val_Rsp_R2 的總和。 我可以像這樣運行回調: 但是,我不知道如何使用兩個指標的最高和來保存 model。 ...

Tensorflow Addons R2 ValueError:兩個形狀中的尺寸 0 必須相等,但 1 和 5

[英]Tensorflow Addons R2 ValueError: Dimension 0 in both shapes must be equal, but are 1 and 5

我一直在嘗試將 tfa 指標添加到我的 model 編譯中,以便在整個培訓過程中進行跟蹤。 但是,當我添加 R2 指標時,出現以下錯誤。 我以為y_shape=(1,)會解決這個問題,但事實並非如此。 我的代碼如下所示: 非常感謝任何幫助,請注意,我也嘗試將 y_shape 更改為 (5,),但隨 ...

TFA BeamSearchDecoder 澄清請求

[英]TFA BeamSearchDecoder Clarification Request

如果這個問題看起來很愚蠢,那是因為我是 TensorFlow 的新手。我正在使用 TensorFlow 2 的 TFA seq2seq 實現來實現玩具編碼器解碼器問題。 在我想用 BeamSearchDecoder 更改我的 BasicDecoder 之前,API 顯然是可以理解的。 我的問題是關於 ...

ValueError:尺寸必須相等,但輸入形狀為 100 和 19:[?,100], [?,100,19]

[英]ValueError: Dimensions must be equal, but are 100 and 19 with input shapes: [?,100], [?,100,19]

賞金將在 7 天后到期。 此問題的答案有資格獲得+50聲望賞金。 Aizayousaf正在從有信譽的來源尋找答案。 我的代碼中有一個錯誤,我已經閱讀了文檔,但它仍然是錯誤的,如何修復這個錯誤? 代碼: 這是 model 摘要: 這是適合訓練數據的代碼: 我得到了這個錯誤: ValueErro ...

CRF 層 ValueError: 維度必須相等,但分別為 75 和 8

[英]CRF layer ValueError: Dimensions must be equal, but are 75 and 8 for

當我構建層並成功生成摘要時,我使用 BiLSTM-CRF 來解決 NER 問題,但是,當我嘗試訓練 model 時,它給了我維度錯誤。 當我使用 Keras 和 Keras-contrib 包時它工作正常,但是,這些包在 python3.8 中不起作用。 因此,我必須為 BiLSTM 移動 ten ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM