traveler.Lookup#

class traveler.Lookup(in_table, base_table, base_index)[source]#

Bases: object

A lookup table that can be used to convert a dictionary to a vector.

Parameters:
  • d (dict) – A dictionary to convert into a vector.

  • keys (tuple[str, ...] | None, optional) – A tuple that defines the order of keys to use for the vector. The keys must match the dictionary keys. If None, the keys will be inferred from the dictionary and sorted.

  • in_table (JaxTable)

  • base_table (JaxTable)

  • base_index (str)