From Variants to Labels

Function Description

Converts input data to a label list (StringList). Supported data types include: NumberList, IndexList.

Use Cases

General-purpose data type conversion step, commonly used in the following scenarios:

  • Converts a set of numbers or indices uniformly into label strings for easy visualization or subsequent calculations.

  • Acts as a data format conversion bridging step when processing classification results, index mapping, and other tasks.

Inputs

  • Variant: Data to be converted to label type. Supported data types include: NumberList, IndexList.

Outputs

  • Labels: Labels converted from input data.

Parameters

  • Precision

    This parameter is only displayed when the input type is NumberList.

    Sets the number of decimal places to retain after converting numbers to labels. The conversion follows the rounding rule.