0
import math
import pandas_datareader as web
import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, LSTM
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')

...(其他代码加载我的数据)...

plt.figure(figsize=(16,8))

我的代码抛出错误。有任何想法吗?

TypeError                                 Traceback (most recent call last)
<ipython-input-74-d717924e19f2> in <module>()
      1 #visualize
----> 2 plt.figure(figsize=(16,8))
      3 plt.title('Close Price History')
      4 plt.plot(df['Close'])
      5 plt.xlabel('Date', fontsize=18)

TypeError: 'tuple' object is not callable
4

0 回答 0