Function dictionaryFromArrays

  • Create a dictionary from labels and integer indices. If call with just labels, returns a function from indices to dictionaries--this method is strongly recommended if you don't want things to be really slow.

    Parameters

    • labels: string[]

    Returns ((indices: IndicesType) => DictionaryType)

      • (indices: IndicesType): DictionaryType
      • Parameters

        • indices: IndicesType

        Returns DictionaryType

  • Create a dictionary from labels and integer indices. If call with just labels, returns a function from indices to dictionaries--this method is strongly recommended if you don't want things to be really slow.

    Parameters

    • labels: string[]
    • indices: IndicesType

    Returns DictionaryType

Generated using TypeDoc