Machine Learning แบบ End-to-End
Joshua Stapleton
Machine Learning Engineer

df.head()
# Print the first 5 rows
print(heart_disease_df.head())

df.info()
# Print out details
print(heart_disease_df.info())

df.value_counts()
# print the class balance
print(heart_disease_df['target'].value_counts(normalize=True))

ใช้ df.isnull()
การใช้งาน
# check whether all values in a column are null
print(heart_disease_df['oldpeak'].isnull().all())
True
ค่าผิดปกติ
อาจบิดเบือนประสิทธิภาพของโมเดล
บางครั้งมีประโยชน์:

การแสดงผลด้วยภาพช่วยให้เห็น:
ประเภทการแสดงผลอื่น ๆ:
df['age'].plot(kind='hist')
plt.xlabel('Age')
plt.ylabel('Frequency')
plt.show()

ทำความเข้าใจข้อมูล
ตรวจจับ outliers
ตั้งสมมติฐาน
ตรวจสอบข้อสมมติ
Machine Learning แบบ End-to-End