Resize slice matrix

operators.val.resize_slice_matrix(client, filename_in='in.npy', filename_out='out.npy', dtype='float', indices=':,124:,:3', default_value=0.0, instance_type='x2large')
Resize and slice a matrix based on indices.

resize_slice_matrix( client,
filename_in=’in.npy’,
filename_out=’out.npy’,
dtype=’float’,
indices=’:,124:,:3’,
default_value=0.0,
instance_type=’x2large’ )
Parameters:
  • filename_in – Input file path for the matrix

  • filename_out – Output file path for the resized and sliced matrix

  • dtype – Data type of the matrix (default: float)

  • indices – Indices to slice the matrix (in NumPy slicing convention)

  • default_value – Default value to fill when resizing (default: 0.0)

  • instance_type – type of cloud instance used for processing