Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- kt에이블 스쿨 #kt #공모전 #DX 후기 # DX 3기 # kt 에이블스쿨 DX 3기 # kt 에이블스쿨 3기
- argmax #다중분류
- KT에이블스쿨 #DX #DX 3기 #후기 #기자단 #에이블 기자단
- Auto ML
- 하이퍼파라미터 최적화
- 파이썬 #python #DataFrame #pandas #판다스
- batch normalization
- Python #파이썬 #판다스 #pandas #선형보간법 #결측치처리
- ADsP #데이터준전문가
- KT #kt #kt에이블스쿨 #DX #kt aivle 3기 # kt aivle dx # DX후기
- 32회 #ADsP #데이터분석준전문가
- 파이썬 #python #함수 #내장함수 #예외처리
- KT에이블스쿨 #aice합격후기 #aice associate # aivle합격
- KT에이블스쿨 3기 #DX과정 #인적성 #
- 파이썬 #python #리스트 #리스트 컴프리헨션 #딕셔너리 #메소드
- ADsP #데이터분석준전문가
- randomsearch
- 파이썬 #python #class
- python #파이썬 #판다스 #pandas #가변수화 #get_dummies #범주화
- 머신러닝 #ML #copysheet # ML copysheet #머신러닝 copysheet
- Softmax
- 파이썬 # python # 이변량분석 # 단변량분석 # 시각화 # 수치화
- KT에이블스쿨
- 파이썬 #python #numpy #array #배열 #인덱싱 #슬라이싱
- cnn #keras #딥러닝 # EarlyStopping #
- 에이블후기
- Image Data Augmentation #
- KT에이블스쿨 #에이블 #DX #3기
- python #pandas #판다스 #파이썬 #DataFrame #데이터탐색 #데이터 조회 #데이터 집계 #jupyter lab #jupyter notebook
- IT 인프라 #서브넷 #7계층 #OSI #TCP #IT Infra
Archives
- Today
- Total
파이썬 하는 파이리
Auto ML 본문
Auto ML copysheet / 개념은 추후 정리해서 업로드 예정
! pip install tpot
import pandas as pd
from tpot import TPOTClassifier
from sklearn.model_selection import train_test_split
# load and prepare the data
## 학습데이터와 검증데이터는 모두 준비가 되었다고 가정
# train and test the model using TPOT
tpot = TPOTClassifier(generations=5, population_size=20, verbosity=2)
tpot.fit(s_x_train, s_y_train)
score = tpot.score(x_test, y_test)
print('Accuracy:', score)
# evaluate the model performance
predictions = tpot.predict(x_test)
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score
print('Accuracy:', accuracy_score(y_test, predictions))
print('Precision:', precision_score(y_test, predictions))
print('Recall:', recall_score(y_test, predictions))
print('F1 Score:', f1_score(y_test, predictions))
'프로그래밍 > 머신러닝, 딥러닝' 카테고리의 다른 글
Random Search_ (0) | 2023.05.29 |
---|---|
ML정리본 (0) | 2023.05.29 |
CNN (0) | 2023.04.15 |
Comments