Click or drag to resize
Accord.NET (logo)

Matrix. OneHot Method

Overload List
  NameDescription
Public methodStatic memberOneHot<T>(Int32[])
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Public methodStatic memberOneHot(Int32[])
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Public methodStatic memberOneHot(Int32[],Double[,])
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Public methodStatic memberOneHot<T>(Int32[], Int32)
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Public methodStatic memberOneHot(Int32[], Int32)
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Public methodStatic memberOneHot<T>(Int32[],T[,])
Creates a matrix of one-hot vectors, where all values at each row are zero except for the indicated indices, which is set to one.
Top
See Also