일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- TensorFlow Object Detection Error
- CARLA simulator
- 사회초년생 추천독서
- InstructPix2Pix
- object detection
- Carla
- Object Detection Dataset 생성
- 크롤링
- Git
- 커스텀 애니메이션 적용
- 개발흐름
- DOTA dataset
- Branch 활용 개발
- AI Security
- TensorFlow Object Detection Model Build
- TensorFlow Object Detection 사용예시
- Linux build
- 논문 분석
- 리눅스 빌드
- Custom Animation
- VOC 변환
- 기능과 역할
- 객체 탐지
- Paper Analysis
- Towards Deep Learning Models Resistant to Adversarial Attacks
- Docker
- TensorFlow Object Detection API install
- DACON
- paper review
- 논문분석
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 |