dcase_util.ui.FancyHTMLStringifier.formatted_value

static FancyHTMLStringifier.formatted_value(value, data_type='auto')

Format value into string.

Valid data_type parameters:

  • auto

  • str or stf (fixed width string, padded with white space)

  • bool

  • float1, float2, float3, float4, float5, float6

  • float1_percentage, float2_percentage, float3_percentage, float4_percentage

  • float1_percentage+ci, float2_percentage+ci, float3_percentage+ci, float4_percentage+ci

  • float1_ci, float2_ci, float3_ci, float4_ci

  • float1_ci_bracket, float2_ci_bracket, float3_ci_bracket, float4_ci_bracket

Parameters
value
data_typestr

Data type in format [type label][length], e.g. for floats with 4 decimals use ‘float4’, strings with fixed length 10 use ‘str10’. For automatic value formatting use ‘auto’. Default value ‘auto’

Returns
str