Procházet zdrojové kódy

Finished Plot and printing results

Doriand
Doriand Petit před 4 roky
rodič
revize
b236040080
1 změnil soubory, kde provedl 9 přidání a 3 odebrání
  1. 9
    3
      code/wilshire_5000/nn.py

+ 9
- 3
code/wilshire_5000/nn.py Zobrazit soubor

y_true = np.concatenate((y_train,y_test)) y_true = np.concatenate((y_train,y_test))
x_cut = np.arange(x_train.shape[0]+x_test.shape[0]) x_cut = np.arange(x_train.shape[0]+x_test.shape[0])


print("----- ARIMA -----")
print()

print("----- ARIMA Test MSE -----")
orders_ARIMA = ["[2,1,1]","[2,2,1]","[3,1,1]","[2,1,2]"]
for k in range(len(orders_ARIMA)):
print("ARIMA"+orders_ARIMA[k]+" : "+str(arima_err[k]))
print("----- DNN Test MSE -----")
activations = ["ReLU","Swish","Sinus Cosinus","Sinus","Snake"]
for k in range(len(activations)):
print("DNN "+activations[k]+" : "+str(errors_test[k]))
plt.figure() plt.figure()
plt.plot(x_cut,y_true,label="True data") plt.plot(x_cut,y_true,label="True data")
plt.plot(x,future_preds,label="Predictions") plt.plot(x,future_preds,label="Predictions")

Načítá se…
Zrušit
Uložit