廢廢做了兩手準備,首先如DAY15一樣使用三維矩陣去訓練(缺點是前期的資料處理時間會過長),接著是使用二維矩陣去訓練,比如[12, 50, 38, 36, -1, -1, 32, 47, 4, 78.9, 39.0, 0, 1, 1, 0],此資料全部放入同一個二維陣列裡。
/ | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | J | Q | K | A
------------- | -------------
c | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0
d | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
h | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1
s | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0
strength | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12
hands_level | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
player1_chips | 78.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
player2_chips | 0 | 39.0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
擴充row | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
並且也訓練好了,此為loss值,看起來是不怎麼樣因為到後面loss和val_loss都趨於平穩代表學習遇到問題了,所以我還是會偏向於使用三維矩陣,至於修改後的程式碼至關於畢業專題就先不放上來了。
loss:train loss、val_loss:test loss
發個牢騷,因為搞資料電腦死機20幾次,顯卡還差點壞掉心情不是很好,之後會考慮使用colab了。