sklearn - train_test_split

boingboing·2024년 6월 13일

split된 train리스트, split된 test리스트.

random_state

  • random_state : 데이터 분할 시 셔플이 이루어지는데 이를 위한 seed 값. 어떤 int 값 숫자를 사용할때마다 처음 나눌 때 항상 동일한 출력을 얻음.

  • int, RandomState instance or None, default=None
    Controls the shuffling applied to the data before applying the split. Pass an int for reproducible output across multiple function calls. See Glossary.

0개의 댓글