MatchZoo-py
latest
Contents:
matchzoo
MatchZoo Model Reference
API Reference
MatchZoo-py
Docs
»
matchzoo.utils.one_hot
Edit on GitHub
matchzoo.utils.one_hot
¶
One hot vectors.
Module Contents
¶
matchzoo.utils.one_hot.
one_hot
(
indices: int
,
num_classes: int
)
→ np.ndarray
¶
Returns:
A one-hot encoded vector.