VectorOneHot Method |
Name | Description | |
---|---|---|
OneHotT(Boolean) |
Creates a vector with the given value at the positions where
mask is true, and zero when they are false.
| |
OneHotT(Boolean, T) |
Creates a vector with the given value at the positions where
mask is true, and zero when they are false.
| |
OneHot(Int32, Double) |
Creates a one-hot vector, where all values are zero except for the indicated
index, which is set to one.
| |
OneHotT(Int32, Int32) |
Creates a one-hot vector, where all values are zero except for the indicated
index, which is set to one.
| |
OneHot(Int32, Int32) |
Creates a one-hot vector, where all values are zero except for the indicated
index, which is set to one.
| |
OneHotT(Int32, T) |
Creates a one-hot vector, where all values are zero except for the indicated
index, which is set to one.
|