- predict_triples(model, *, triples, triples_factory=None, batch_size=None, mode=None)
Predict on labeled or mapped triples.
Model) – The model.
shape: (num_triples, 3) The triples in one of the following formats:
A single label-based triple.
A list of label-based triples.
An array of label-based triples
An array of ID-based triples.
None. In this case, a triples factory has to be provided, and its triples will be used.
- Return type:
a score pack of the triples with the predicted scores.