Divide constant folder

operators.val.divide_constant_folder(client, infolder='/infolder', outfolder='/outfolder', dtype='float', constant=1.0, worker_instance_type='x2large', manager_instance_type='small', extension_infile='.npy', extension_outfile='.npy', skip_existing_files=False)
Divide a constant value from a matrix.

divide_constant_folder(client,
infolder=’/infolder’,
outfolder=’/outfolder’,
dtype=’float’,
constant=1.0,
worker_instance_type=’x2large’,
manager_instance_type=”small”,
extension_infolder=”.npy”,
extension_outfolder=”.npy”,
skip_existing_files = False )
Parameters:
  • dtype – Data type of the matrix (default: float)

  • constant – Constant value to divide (default: 1.0)

  • infolder – Input folder folder

  • outfolder – Output folder folder

  • worker_instance_type – cloud instance type of worker nodes

  • manager_instance_type – cloud instance type of manager node

  • extension_infolder – File extension of files in folder for infolder

  • extension_outfolder – File extension of files in folder for outfolder

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