INNER CODE UNIT · Python

graph_preds_mean_and_y

alteryx/open_source_demos · predict-daily-temperature/utils.py:97

def graph_preds_mean_and_y(preds, rolling_mean, y):
    plt.plot(y, color='gray',label='Target')
    plt.plot(rolling_mean, color='blue', label='Rolling Mean')
    plt.plot(preds, color='red', label = 'Predictions')
    plt.legend(loc='best')
    plt.xlabel("Date")
    plt.ylabel("Temperature (C)")
    plt.show(block=False)
    

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…