SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.38k stars 192 forks source link

How to save a nested dictionary with `save_npz` #510

Open rqx110 opened 8 months ago

rqx110 commented 8 months ago

If i have a data struct like:

{
   "port1": {
                 "time": ["xxxx", "yyyy"],
                 "data": [0.0, 0.0]
                },
   "port2": {
                 "time": ["xxxx", "yyyy"],
                 "data": [0.0, 0.0]
                },
}

how to save it with save_npz? can you give same sample codes? Thanks!