Structured Data Models Structured Data Models Structured Data Models
/

Getting Started

  • Installation
  • Overview

Guides

  • Table Semantics
  • In-Context Learning
  • Data Processing

API

  • sdm
    • Stype
    • infer_stypes
    • Task
  • sdm.tensor
    • VarLenTensor
    • StringTensor
    • NullableTensor
    • CategoricalTensor
    • ColumnarTensor
    • TableTensor
  • sdm.relational
    • Relationship
    • RelationalData
    • TaskLink
    • RelatedTables
    • RelationalSampler
  • sdm.processing
    • Processor
    • InvertibleMixin
    • EnsembleProcessor
    • EnsembleInvertibleMixin
    • Recipe
    • Identity
    • Callable
    • Sequential
    • DropStypes
    • StypeDispatch
    • TaskDispatch
    • TableDispatch
    • EnsembleProcessorAdapter
    • Choice
    • ToNumerical
    • ShuffleColumns
    • SelectColumns
    • Cast
    • Clip
    • ClipQuantiles
    • ClipSigma
    • ClipSoft
    • ImputeMean
    • PowerTransform
    • QuantileTransform
    • Standardize
    • RobustScale
    • FlipSign
    • DropConstantColumns
    • PCA
    • RandomProjection
    • AlignCategories
    • ShuffleCategories
    • ImputeMode
    • AddCategoryCounts
    • TFIDF
    • SentenceTransformer
    • AddCalendarFields
    • AverageEstimators
    • Softmax
    • SortQuantiles
  • sdm.nn
    • RotaryEmbedding
    • SwiGLU
    • SoftplusScale
    • QueryScaling
    • QASSMax
    • LogScale
    • GatedLogScale
    • SDPA
    • Attention
    • TransformerBlock
    • InducedTransformerBlock
  • sdm.models
    • ICLModel
    • TabICLv2
    • TabFM
    • KumoTabular
    • KumoRelational
  • sdm.evaluation
    • to_class_indices
    • to_binary_class

On this page

  • TaskLink
    • TaskLink.from_mapping()
  1. Structured Data Models /
  2. sdm.relational /
  3. TaskLink

TaskLink#

class sdm.relational.TaskLink(task_columns: tuple[str, ...], table: str, table_columns: tuple[str, ...])#

Bases: object

Link between task rows to a table in relational data.

Parameters:
  • task_columns (tuple[str, ...]) – Column names in the task table.

  • table (str) – Name of the table referenced by task rows.

  • table_columns (tuple[str, ...]) – Column names in table.

classmethod from_mapping(mapping: Mapping[str, str | Sequence[str]]) → Self#

Create a TaskLink from a mapping.

Parameters:

mapping (Mapping[str, str | Sequence[str]]) – The mapping with "task_columns", "table", and "table_columns" entries.

Return type:

Self

Previous
RelationalData
Next
RelatedTables