관리 메뉴

Hee'World

머신러닝 인 액션 2.2.2 예제 에러 본문

Programming/Python

머신러닝 인 액션 2.2.2 예제 에러

Jonghee Jeon 2016. 4. 24. 15:13


2.2.2 분석 : 매스플롯라이브러리로 scatter 플롯 생성하기 에러 발생 

 - 아래와 같이 해결하면 됨


In [10]: ax.scatter(datingDataMat[:,1], datingDataMat[:,2], 15.0*array(datingLabels).astype(float), 15.0*array(datingLabels).astype(float))

Out[10]: <matplotlib.collections.PathCollection at 0x6aa7a58>


In [11]:


In [11]: plt.show()










참조 : http://modular.tistory.com/category/%EC%82%BD%EC%A7%88%EA%B3%BC%20%EC%97%B4%EB%A7%A4/Python

Comments