Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Training of Neural Net with Long Short-Term Memory

ARM Logo

Training of Neural Net with Long Short-Term Memory

/tmp/ipykernel_645855/2614269791.py:6: FutureWarning: In a future version of xarray the default value for data_vars will change from data_vars='all' to data_vars=None. This is likely to lead to different results when multiple datasets have matching variables with overlapping values. To opt in to new defaults and get rid of these warnings now use `set_options(use_new_combine_kwarg_defaults=True) or set data_vars explicitly.
  ds_mfrs = xr.open_mfdataset('sgpmfrsr7nchC1.b1/*')
Loading...
Loading...
<Figure size 640x480 with 1 Axes>
np.float32(4.2646008)
(1696, 2) (1696,)
(213, 2) (213,)
New Feature Shape: torch.Size([1696, 2])
New Target Shape: torch.Size([1696, 1])
Epoch 01/100 | Train Loss: 1.6455 | Val Loss: 5.4625
--> New best model found! Saving weights...
Epoch 02/100 | Train Loss: 0.7946 | Val Loss: 2.5191
--> New best model found! Saving weights...
Epoch 03/100 | Train Loss: 0.6700 | Val Loss: 3.0091
--> No improvement. Patience: 1/10
Epoch 04/100 | Train Loss: 0.6592 | Val Loss: 2.8470
--> No improvement. Patience: 2/10
Epoch 05/100 | Train Loss: 0.6558 | Val Loss: 2.8294
--> No improvement. Patience: 3/10
Epoch 06/100 | Train Loss: 0.6533 | Val Loss: 2.7398
--> No improvement. Patience: 4/10
Epoch 07/100 | Train Loss: 0.6511 | Val Loss: 2.9342
--> No improvement. Patience: 5/10
Epoch 08/100 | Train Loss: 0.6497 | Val Loss: 2.7840
--> No improvement. Patience: 6/10
Epoch 09/100 | Train Loss: 0.6456 | Val Loss: 2.7051
--> No improvement. Patience: 7/10
Epoch 10/100 | Train Loss: 0.6415 | Val Loss: 2.5917
--> No improvement. Patience: 8/10
Epoch 11/100 | Train Loss: 0.6379 | Val Loss: 2.8763
--> No improvement. Patience: 9/10
Epoch 12/100 | Train Loss: 0.6360 | Val Loss: 2.8946
--> No improvement. Patience: 10/10

🛑 Early stopping triggered! Stopping training at epoch 12.
Loading best model weights for final evaluation...

================ FINAL TEST PERFORMANCE ================
Mean Absolute Error (MAE): 0.4410
R² Score (Variance Explained): 0.0220
========================================================
<Figure size 640x480 with 1 Axes>