google-deepmind / google-deepmind/weathernext

How get the value from model dataset, such as norm_prediction?

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.7k
Forks
986
PR merge metrics
No merged PRs in 30d

Description

Hi.
The code has used the Xarray.dataset to store the intermediate varaiables .
Such as , norm_predictions which type is Xarray.dataset composed of several Xarray.DataArray 。

But how get the value from it? When I try to convert it to Numpy.narray with "norm_prediction.values()" ,
it gave me the following error:
{TracerArrayConversionError}The numpy.ndarray conversion method __array__() was called on traced array with shape float32[1,1,721,1440].

So how fix it?
Thanks a lot!
qc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.