How to build a multiple I/O npz file for validating with custom data?
I'm trying to build a .npz file with multiple input and output data.
I achieved to add just one input and output using this code:
np.savez('STM32TestData.npz',
m_inputs_1=input_1,
m_outputs_1=output_1,
)
This works fine, but just one pair of data.Adding more keys as 'm_inputs_2', 'm_outputs_2' didn't worked.
np.savez('STM32TestData.npz',
m_inputs_1=input_1,
m_outputs_1=output_1,
m_inputs_2=input_2,
m_outputs_2=output_2,
)
E204(ValParamError): number of input arrays is invalid, 2 instead 1Also I tried to save data as dictionaries with keys 'm_inputs_idx', 'm_outputs_idx' with 'idx' from 1 to N, but the same error occurred.
np.savez('STM32TestData.npz', **inputs_dict, **outputs_dict)
E204(ValParamError): number of input arrays is invalid, 439 instead 1What is the correct way to do it?
Additionally, what does 'c_inputs_<idx> and c_outputs_<idx> (multiple IO, if no m_inputs_<idx> keys are defined)' mean? How is it different from using 'm' version?
