Hỏi/ Thắc mắc - Tại sao khi sử dụng random_state lại hay dùng 42 [Python] | VN-Zoom | Cộng đồng Chia Sẻ Kiến Thức Công Nghệ và Phần Mềm Máy Tính

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We need money to operate the site, and almost all of it comes from our online advertising.

If possible, please support us by clicking on the advertisements.

Please add vn-z.vn to your ad blocking whitelist or disable your adblocking software.

×

Hỏi/ Thắc mắc Tại sao khi sử dụng random_state lại hay dùng 42 [Python]

Redtroller

Búa Gỗ Đôi
Chào cả nhà,

Mình đang tập tành tự học python, Khi sử dụng train_test_split trong sklearn, mình thấy hầu hết đều sử dụng random_state =42 khi muốn cố định tập con random.
Nhưng mình không hiểu tại sao lại là số 42 mà không phải là một số khác.

Cảm ơn mọi người
 
Sửa lần cuối:


Top