df['Predictions'] = Predictions
df['Price'] = sc.inverse_transform(df['Price'])
df['Predictions'] = sc.inverse_transform(df['Predictions'])
Hágamos un gráfico para comprar las predicciones con la data real.
plt.xlabel('Date')
plt.ylabel('Price')
plt.plot(df['Price'], 'b', label='Price')
plt.plot(df['Predictions'], 'r', label='Prediction')
plt.legend(loc='upper left', shadow=True, fontsize='x-large')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter