Remap values

operators.val.remap_values(client, file_values_in='file.npy', file_values_out='values.npy', map_in='1,2,3,4', map_out='3,1,2,2', dtype_in='int32', dtype_out='int32', unmapped='0', instance_type='x2large')

remap_values( client,
file_values_in=’file.npy’,
file_values_out=’values.npy’,
map_in=’1,2,3,4’,
map_out=’3,1,2,2’,
dtype_in=’int32’,
dtype_out=’int32’,
unmapped=’0’,
instance_type=’x2large’ )
Parameters:
  • file_values_in – input file [.txt, .labels or .npy]

  • file_values_out – output file [.txt, .labels or .npy]

  • map_in – map in

  • map_out – map out

  • dtype_in – data type input

  • dtype_out – data type output

  • unmapped – default value for values where no mapping exists

  • instance_type – type of cloud instance used for processing