ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python
Lisa Stuart
Data Scientist
ข้อมูล test:
Monthly DebtAnnual Income/12| ฟังก์ชัน | ค่าที่คืนกลับ |
|---|---|
sklearn.linear_model.LogisticRegression |
logistic regression |
sklearn.model_selection.train_test_split |
ฟังก์ชันแบ่ง train/test |
sns.countplot(x='Loan Status', data=data) |
bar plot |
df.drop(['Feature 1', 'Feature 2'], axis=1) |
ลบรายการ feature |
df["Loan Status"].replace({'Paid': 0, 'Not Paid': 1}) |
Loan Status เป็น integer |
pd.get_dummies() |
k - 1 binary features |
sklearn.metrics.accuracy_score(y_test, predict(X_test)) |
ความแม่นยำของโมเดล |
ฝึกตอบคำถามสัมภาษณ์ Machine Learning ด้วย Python