TargetPredictions
- class TargetPredictions(df: DataFrame, factory: CoreTriplesFactory | None, target: Literal['head', 'relation', 'tail'], other_columns_fixed_ids: tuple[int, int])[source]
Bases:
PredictionsTargets with their predicted scores.
Attributes Summary
the dataframe; has to have a column named "score"
an optional factory to use for labeling
the other column's fixed IDs
the prediction target
Attributes Documentation
- Parameters:
df (DataFrame)
factory (CoreTriplesFactory | None)
target (Literal['head', 'relation', 'tail'])
- df: DataFrame = <dataclasses._MISSING_TYPE object>
the dataframe; has to have a column named “score”
- factory: CoreTriplesFactory | None = <dataclasses._MISSING_TYPE object>
an optional factory to use for labeling