tlc.core.objects.tables.from_table.subset_table#

A Table whose rows are a subset of another Table.

Module Contents#

Classes#

Class

Description

SubsetTable

A procedural table where rows in an input table are optionally included given

API#

class tlc.core.objects.tables.from_table.subset_table.SubsetTable(url: tlc.core.url.Url | None = None, created: str | None = None, description: str | None = None, init_parameters: Any = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, input_table_url: tlc.core.url.Url | tlc.core.objects.table.Table | None = None, range_factor_min: float | None = None, range_factor_max: float | None = None, include_probability: float | None = None)#

Bases: tlc.core.objects.tables.in_memory_rows_table._InMemoryRowsTable

A procedural table where rows in an input table are optionally included given

  • An include range factor min/max (where 0 mean start of table, and 1 means end)

  • An ‘include_probability’ which determines the ratio of rows in the range to include. The actual probabilities are generated by a pseudo-random generator which guarantees identical outputs for identical configurations

Parameters:
  • url – The URL of the table.

  • created – The creation time of the table.

  • description – The description of the table.

  • row_cache_url – The URL of the row cache.

  • row_cache_populated – Whether the row cache is populated.

  • override_table_rows_schema – The schema to override the table rows schema.

  • init_parameters – The initial parameters of the table.

property seed: int#

A deterministic seed for random number generation determined from object properties

To be used when including rows based on probability.

Returns: int: A random number seed