邏輯迴歸學習筆記2(python)

一、讀入數據; pdData = pd.read_csv(path, header=None, names=['Exam 1', 'Exam 2', 'Admitted']) 畫圖: positive = pdData[pdData['Admitted'] == 1] negative = pdData[pdData['Admitted'] == 0] fig, ax = plt.subplots
相關文章
相關標籤/搜索