View module source on GitHub

VariableType

class VariableType(str)

This class represents the type of a variable.

DatasetRow

@dataclass
class DatasetRow()

This class represents a row of a dataset.

Variable

class Variable()

This class represents a variable.

__init__

def __init__(type_: str, payload: Dict[str, Union[str, int, bool, float,
                                                  List[str]]])

This class represents a variable.

Arguments:

NameDescription
type_The type of the variable.
payloadThe payload of the variable.

DatasetEntry

class DatasetEntry()

This class represents a dataset entry.

__init__

def __init__(input: Variable,
             context: Optional[Variable] = None,
             expectedOutput: Optional[Variable] = None)

This class represents a dataset entry.

Arguments:

NameDescription
inputThe input variable.
contextThe context variable.
expectedOutputThe expected output variable.