Click or drag to resize
Accord.NET (logo)

VectorOneHot Method

Overload List
  NameDescription
Public methodStatic memberOneHotT(Boolean)
Creates a vector with the given value at the positions where mask is true, and zero when they are false.
Public methodStatic memberOneHotT(Boolean, T)
Creates a vector with the given value at the positions where mask is true, and zero when they are false.
Public methodStatic memberOneHot(Int32, Double)
Creates a one-hot vector, where all values are zero except for the indicated index, which is set to one.
Public methodStatic memberOneHotT(Int32, Int32)
Creates a one-hot vector, where all values are zero except for the indicated index, which is set to one.
Public methodStatic memberOneHot(Int32, Int32)
Creates a one-hot vector, where all values are zero except for the indicated index, which is set to one.
Public methodStatic memberOneHotT(Int32, T)
Creates a one-hot vector, where all values are zero except for the indicated index, which is set to one.
Top
See Also