tlc.client.reduce.reduction_method#

Base classes for dimensionality reducers.

Module Contents#

Classes#

Class

Description

ReducerArgs

Arguments specific to the reduction method.

ReductionMethod

Perform dimensionality reduction on columns of tables.

API#

class tlc.client.reduce.reduction_method.ReducerArgs#

Bases: typing.TypedDict

Arguments specific to the reduction method.

Initialize self. See help(type(self)) for accurate signature.

class tlc.client.reduce.reduction_method.ReductionMethod(reducer_args: tlc.client.reduce.reduction_method._ReducerArgsType | None = None)#

Bases: abc.ABC, typing.Generic[tlc.client.reduce.reduction_method._ReducerArgsType]

Perform dimensionality reduction on columns of tables.

Dimensionality reduction is accomplished by creating derived tables of the appropriate type (e.g., UMAPTable) which apply the reduction method to the input tables.

Params reducer_args:

A dictionary of arguments which are specific to the reduction method.

abstract default_args() tlc.client.reduce.reduction_method._ReducerArgsType#
abstract fit_and_apply_reduction(producer: tlc.core.objects.table.Table, consumers: list[tlc.core.objects.table.Table]) dict[tlc.core.url.Url, tlc.core.url.Url]#
abstract fit_reduction_method(table: tlc.core.objects.table.Table, column: str) tlc.core.url.Url#
abstract apply_reduction_method(table: tlc.core.objects.table.Table, fit_table_url: tlc.core.url.Url, column: str) tlc.core.url.Url | None#