혼공 머신러닝 78쪽

12 views
Skip to first unread message

단이

unread,
Aug 22, 2021, 12:03:57 PM8/22/21
to 머신러닝/딥러닝 도서 Q&A
책 78 쪽에 
import matplotlib.pyplot as plt
plt.scatter(train_input[:,0], train_input[:,1])  <-   왜 :,0  :,1 인지 이해가안가요
plt.scatter(test_input[:,0], test_input[:,1])
plt.xlabel('length')
plt.ylabel('weight')
plt.show()

Haesun Park

unread,
Aug 22, 2021, 9:52:42 PM8/22/21
to 단이, 머신러닝/딥러닝 도서 Q&A
안녕하세요. 박해선입니다.

두 특성은 넘파이 배열의 열에 놓여 있습니다.
따라서 첫 번째 특성은 [:,0], 두 번째 특성은 [:,1]로 선택합니다.
넘파이 배열에 관한 간단한 설명은 다음 페이지를 참고하세요.

감사합니다!

2021년 8월 23일 (월) 오전 1:03, 단이 <664...@gmail.com>님이 작성:
--
이 메일은 Google 그룹스 '머신러닝/딥러닝 도서 Q&A' 그룹에 가입한 분들에게 전송되는 메시지입니다.
이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 ml-dl-book-qn...@googlegroups.com에 이메일을 보내세요.
웹에서 이 토론을 보려면 https://groups.google.com/d/msgid/ml-dl-book-qna/4f879b03-0e50-4ad9-937f-f02d9aac4135n%40googlegroups.com을(를) 방문하세요.
Reply all
Reply to author
Forward
0 new messages