인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

qazwsx09170133's profile image
qazwsx09170133

asked

Deep Learning for Everyone - Basic Machine Learning and Deep Learning Course

TensorFlow implementation of cost minimization for Linear Regression (new)

plt.plot 함수

Written on

·

383

0

plt.plot 함수는 어떻게 쓰신거죠? Traceback (most recent call last): File "/home/joe/PycharmProjects/Tensorflowpractice/LinearCost1.py", line 22, in plt.plot(W_val, cost_val, 'ro') NameError: name 'plt' is not defined 이렇게 없다는데요
강화학습딥러닝

Answer 2

0

터미널 창에서 입력하시면 됩니다. 그리고 본문에 나와있네요 터미널(혹은 콘솔에서) sudo apt-get install python-matplotlib Mac os x 를 기준으로  sudo pip install matplotlib

0

qazwsx09170133님의 프로필 이미지
qazwsx09170133
Questioner

import matplotlib.pyplot as plt Try to type sudo apt-get install python-matplotlib in a terminal. In your message you typed it in ipython console. This is a bash command, not a python one. You need to quit ipython before. For that use Ctrl + D

qazwsx09170133's profile image
qazwsx09170133

asked

Ask a question