MatchZoo-py
stable
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.
Read the Docs
v: stable
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.