Resize slice matrix folder

operators.val.resize_slice_matrix_folder(client, foldername_in='/foldername_in', foldername_out='/foldername_out', dtype='float', indices=':,124:,:3', default_value=0.0, worker_instance_type='x2large', manager_instance_type='small', extension_filename_in='.npy', extension_filename_out='.npy', skip_existing_files=False)
Resize and slice a matrix based on indices.

resize_slice_matrix_folder(client,
foldername_in=’/foldername_in’,
foldername_out=’/foldername_out’,
dtype=’float’,
indices=’:,124:,:3’,
default_value=0.0,
worker_instance_type=’x2large’,
manager_instance_type=”small”,
extension_foldername_in=”.npy”,
extension_foldername_out=”.npy”,
skip_existing_files = False )
Parameters:
  • 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)

  • foldername_in – Input folder folder for the matrix

  • foldername_out – Output folder folder for the resized and sliced matrix

  • worker_instance_type – cloud instance type of worker nodes

  • manager_instance_type – cloud instance type of manager node

  • extension_foldername_in – File extension of files in folder for foldername_in

  • extension_foldername_out – File extension of files in folder for foldername_out

  • skip_existing_files – skip files that already exist in the output folder