logo
Loading...

為什麼不將train_test_split 的 test_size調整為更小? - Cupoy

想請問老師們,範例中的test_size為0.25,也就是說train_size是0.75但是不將t...

ml100-2,ml100-2-d46

為什麼不將train_test_split 的 test_size調整為更小?

2019/06/27 12:17 AM
機器學習新手論壇
黃稚翔
觀看數:0
回答數:2
收藏數:0
ml100-2
ml100-2-d46

想請問老師們,範例中的test_size為0.25,也就是說train_size是0.75

但是不將test_size調整為更小的原因是要預防overfitting嗎?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

(我自己有測試,將test_size設為0.1,acc可達0.977...)