When running evaluation mode figures are being created. Currently, there is no option to output the predictions.
I would like to implement the option to output predictions as a Zarr dataset.
(WIP: https://github.com/khintz/neural-lam/tree/feature/output).
This should be possible by converting the predictions tensor from the function test_step to a Zarr dataset.
def test_step(self, batch, batch_idx):
"""
Run test on single batch
"""
prediction, target, pred_std, batch_times = self.common_step(batch)
This could be done by utilising the existing function create_dataarray_from_tensor
https://github.com/mllam/neural-lam/blob/main/neural_lam/weather_dataset.py#L509
and then simply using xarray to output to zarr.
When running evaluation mode figures are being created. Currently, there is no option to output the predictions.
I would like to implement the option to output predictions as a Zarr dataset.
(WIP: https://github.com/khintz/neural-lam/tree/feature/output).
This should be possible by converting the
predictionstensor from the functiontest_stepto a Zarr dataset.This could be done by utilising the existing function
create_dataarray_from_tensorhttps://github.com/mllam/neural-lam/blob/main/neural_lam/weather_dataset.py#L509
and then simply using xarray to output to zarr.