일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 크롤링
- InstructPix2Pix
- 개발흐름
- VOC 변환
- DOTA dataset
- Object Detection Dataset 생성
- 사회초년생 추천독서
- paper review
- TensorFlow Object Detection Error
- Docker
- Carla
- Linux build
- TensorFlow Object Detection API install
- 객체 탐지
- CARLA simulator
- Towards Deep Learning Models Resistant to Adversarial Attacks
- DACON
- 논문분석
- AI Security
- TensorFlow Object Detection 사용예시
- 기능과 역할
- Branch 활용 개발
- 논문 분석
- 리눅스 빌드
- Custom Animation
- object detection
- Paper Analysis
- 커스텀 애니메이션 적용
- TensorFlow Object Detection Model Build
- Git
Archives
- Today
- Total
JSP's Deep learning
[Data Preprocessing] train_test_split의 stratify 옵션을 데이터 균형 분할 본문
Data Processing/Data Preprocessing
[Data Preprocessing] train_test_split의 stratify 옵션을 데이터 균형 분할
_JSP_ 2022. 6. 2. 13:501. 코드
X_train, X_test, y_train, y_test = train_test_split(X_data, y_data, test_size=0.2, random_state=0, stratify=y_data)
- 또한 Train dataset과 Test dataset을 분할할 때, 라벨의 비율에 맞게 분할할 필요가 있다.
- 다음의 코드를 통해서 y_data의 label 분포에 맞게 데이터를 분할한다.
'Data Processing > Data Preprocessing' 카테고리의 다른 글
[Data Preprocessing] DOTA -> VOC 형식 데이터 변환 (0) | 2023.03.25 |
---|---|
[Data Preprocessing] DataFrame의 특정 값 치환 (0) | 2022.06.02 |
Comments