Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 농지연금
- 인덱싱
- 신탁공매
- command
- lambda
- 세금계산서
- 임업후계자
- boto3
- 성능개선
- Filter
- 경매
- Kubernetes
- OpenSearch
- AWS
- S3
- serverless
- 매입불공제
- 외국납부세액공제
- route53
- Resolver
- 정책자금
- node
- 공매
- 리소스
- kubectl
- python
- 산지연금
- 금융소득
- 양도소득세
- pod
Archives
- Today
- Total
진지한 개발자
빅데이터 분석기사 실기 본문
728x90
- Pima Indians Diabetes (피마 인디언 당뇨병)
import pandas as pd
import sklearn
help(sklearn)
import sklearn.ensemble
dir(sklearn.ensemble) # 확인
from sklearn.ensemble import RandomForestClassifier
X_train.head().T
X_train.info()
X_train.describe()
X_train.isnull().sum()
X_test.isnull().sum()
help(df.drop)
X_train.drop('id', axis=1, inplace=True)
X_test.drop('id', axis=1, inplace=True)
X_train.info()
help(RandomForestClassifier)
model = RandomForestClassifier()
model.fit(X_train, y_train['Outcome'])
predictions = model.predict(X_test)
round(model.score(X_train, y_train['Outcome']) * 100, 2)
output.to_csv('123456.csv', index=False)
728x90