brainstorm/handlers/base_handler.py
def binarize_v(self, v, out):
        """Convert a column vector into a matrix of one-hot row vectors.

        Usually used to convert class IDs into one-hot vectors. Therefore,
        `out[i, j] = 1`, if j equals v[i, 0]
        `out[i, j] = 0`, otherwise.

        Note that `out` must have enough columns such that all indices in
        :attr:`v` are valid.

        Args:
            v (array_type): Column vector (2D array with a single column).
            out (array_type): Matrix (2D array) into which the output is
                              placed. The number of rows must be the same as
                              :attr:`v` and number of columns must be greater
                              than the maximum value in :attr:`v`.
        Returns:
            None
        """
Convert a column vector into a matrix of one-hot row vectors.

        Usually used to convert class IDs into one-hot vectors. Therefore,
        `out[i, j] = 1`, if j equals v[i, 0]
        `out[i, j] = 0`, otherwise.

        Note that `out` must have enough columns such that all indices in
        :attr:`v` are valid.

        Args:
            v (array_type): Column vector (2D array with a single column).
            out (array_type): Matrix (2D array) into which the output is
                              placed. The number of rows must be the same as
                              :attr:`v` and number of columns must be greater
                              than the maximum value in :attr:`v`.
        Returns:
            None
        
Convert a column vector into a matrix of one-hot row vectors.
Usually used to convert class IDs into one-hot vectors.

Note that `out` must have enough columns such that all indices in
:attr:`v` are valid.
Convert a column vector into a matrix of one - hot row vectors . Usually used to convert class IDs into one - hot vectors . Note that ` out ` must have enough columns such that all indices in : attr : ` v ` are valid .
def binarize_v(self, v, out):
def binarize_v ( self , v , out ) :
Convert a column vector into a matrix of one-hot row vectors.
Convert a column vector into a matrix of one - hot row vectors .
"""Convert a column vector into a matrix of one-hot row vectors.

        Usually used to convert class IDs into one-hot vectors. Therefore,
        `out[i, j] = 1`, if j equals v[i, 0]
        `out[i, j] = 0`, otherwise.

        Note that `out` must have enough columns such that all indices in
        :attr:`v` are valid.

        Args:
            v (array_type): Column vector (2D array with a single column).
            out (array_type): Matrix (2D array) into which the output is
                              placed. The number of rows must be the same as
                              :attr:`v` and number of columns must be greater
                              than the maximum value in :attr:`v`.
        Returns:
            None
        """
None
self
v
Column vector (2D array with a single column).
Column vector ( 2D array with a single column ) .
out
Matrix (2D array) into which the output is
placed. The number of rows must be the same as
:attr:`v` and number of columns must be greater
than the maximum value in :attr:`v`.
Matrix ( 2D array ) into which the output is placed . The number of rows must be the same as : attr : ` v ` and number of columns must be greater than the maximum value in : attr : ` v ` .