Processing

Properties


Methods

update

update(
   docker_image: (str|None) = None, docker_tag: (str|None) = None,
   description: (str|None) = None, default_parameters: (dict|None) = None,
   default_cpu: (int|None) = None, default_gpu: (int|None) = None
)

Description

Update docker_image, description or default_parameters of Processing.

Examples

processing.update(docker_image='new-image', docker_tag='1.2.0')

Arguments

  • docker_image (str, optional) : New docker image of this Processing. Defaults to None.

  • docker_tag (str, optional) : New docker tag of this Processing. Defaults to None.

  • description (str, optional) : New description of the Processing. Defaults to None.

  • default_parameters (dict, optional) : New default parameters of the Processing. Defaults to None.

  • default_cpu (str or InferenceType, optional) : New default cpu of the Processing. Defaults to None.

  • default_gpu (str or InferenceType, optional) : New default gpu of the Processing. Defaults to None.


delete

delete()

Description

Delete this processing from the platform.

⚠️ DANGER ZONE: Be very careful here!

Examples

processing.delete()

list_processing_inputs

list_processing_inputs()

Description

List inputs of this processing.


add_processing_input

add_processing_input(
   name: str, input_type: ProcessingInputType, required: bool,
   inference_type_constraint: (InferenceType|None),
   framework_constraint: (Framework|None)
)

Description

Add an input to this processing. Inputs are checked on launch_processing(), they must match types and constraints.
They are passed to the context of your processing in "inputs" key.


update_processing_input

update_processing_input(
   name: str, required: bool, inference_type_constraint: (InferenceType|None),
   framework_constraint: (Framework|None)
)

Description

Update an input of this processing.


delete_processing_input

delete_processing_input(
   name: str
)

Description

Delete an input from this processing.


create_dataset_version_processing_constraints

create_dataset_version_processing_constraints(
   input_dataset_version_type: (str|InferenceType|None) = None,
   output_dataset_version_type: (str|InferenceType|None) = None,
   model_version_framework: (str|Framework|None) = None,
   model_version_type: (str|InferenceType|None) = None
)

Description

This method can only be used for processing running on DatasetVersion.
So the type of this Processing must be one of:

  • PRE_ANNOTATION
  • DATA_AUGMENTATION
  • DATASET_VERSION_CREATION
  • AUTO_TAGGING
  • AUTO_ANNOTATION

create_datalake_processing_constraints

create_datalake_processing_constraints(
   model_version_framework: (str|Framework|None) = None,
   model_version_type: (str|InferenceType|None) = None
)

Description

This method can only be used for processing running on Datalake.
So the type of this Processing must be one of:

  • DATA_AUTO_TAGGING