Data Conditions#
- class DataCondition(input, conditional_variables=None)[source]#
Bases:
ConditionInterface
Condition defined by input data and conditional variables. It can be used in unsupervised learning problems. Based on the type of the input, different condition implementations are available:
TensorDataCondition
: Fortorch.Tensor
orLabelTensor
input data.GraphDataCondition
: ForGraph
orData
input data.
Initialize the object by storing the input and conditional variables (if any).
- Parameters:
input (torch.Tensor | LabelTensor | Graph | Data | list[Graph] | list[Data] | tuple[Graph] | tuple[Data]) – Input data for the condition.
conditional_variables (torch.Tensor | LabelTensor) – Conditional variables for the condition.
- class GraphDataCondition(input, conditional_variables=None)[source]#
Bases:
DataCondition
DataCondition for
Graph
orData
input dataInitialize the object by storing the input and conditional variables (if any).
- Parameters:
input (torch.Tensor | LabelTensor | Graph | Data | list[Graph] | list[Data] | tuple[Graph] | tuple[Data]) – Input data for the condition.
conditional_variables (torch.Tensor | LabelTensor) – Conditional variables for the condition.
- class TensorDataCondition(input, conditional_variables=None)[source]#
Bases:
DataCondition
DataCondition for
torch.Tensor
orLabelTensor
input dataInitialize the object by storing the input and conditional variables (if any).
- Parameters:
input (torch.Tensor | LabelTensor | Graph | Data | list[Graph] | list[Data] | tuple[Graph] | tuple[Data]) – Input data for the condition.
conditional_variables (torch.Tensor | LabelTensor) – Conditional variables for the condition.