Luyện tập câu hỏi phỏng vấn Machine Learning bằng Python
Lisa Stuart
Data Scientist
Dữ liệu kiểm tra:
Monthly DebtAnnual Income/12| Hàm | trả về |
|---|---|
sklearn.linear_model.LogisticRegression |
hồi quy logistic |
sklearn.model_selection.train_test_split |
hàm tách train/test |
sns.countplot(x='Loan Status', data=data) |
biểu đồ cột |
df.drop(['Feature 1', 'Feature 2'], axis=1) |
loại danh sách đặc trưng |
df["Loan Status"].replace({'Paid': 0, 'Not Paid': 1}) |
Loan Status dạng số nguyên |
pd.get_dummies() |
k - 1 đặc trưng nhị phân |
sklearn.metrics.accuracy_score(y_test, predict(X_test)) |
độ chính xác mô hình |
Luyện tập câu hỏi phỏng vấn Machine Learning bằng Python