Python으로 연습하는 Machine Learning 면접 질문
Lisa Stuart
Data Scientist
테스트 데이터:
Monthly DebtAnnual Income/12| 기능 | 반환 |
|---|---|
sklearn.linear_model.LogisticRegression |
로지스틱 회귀 |
sklearn.model_selection.train_test_split |
학습/테스트 분할 함수 |
sns.countplot(x='Loan Status', data=data) |
막대 그래프 |
df.drop(['Feature 1', 'Feature 2'], axis=1) |
특징 목록 삭제 |
df["Loan Status"].replace({'Paid': 0, 'Not Paid': 1}) |
Loan Status를 정수로 |
pd.get_dummies() |
k - 1 이진 특징 |
sklearn.metrics.accuracy_score(y_test, predict(X_test)) |
모델 정확도 |
Python으로 연습하는 Machine Learning 면접 질문