(self, condition_info, batch)
return vec
Generate the condition vector.
Generate the condition vector.
Generate the condition vector .
def generate_cond_from_condition_column_info(self, condition_info, batch):
        """Generate the condition vector."""
        vec = np.zeros((batch, self._n_categories), dtype='float32')
        id_ = self._discrete_column_matrix_st[condition_info['discrete_column_id']]
        id_ += condition_info['value_id']
        vec[:, id_] = 1
        return vec
def generate_cond_from_condition_column_info ( self , condition_info , batch ) : vec = np . zeros ( ( batch , self . _n_categories ) , dtype = 'float32' ) id_ = self . _discrete_column_matrix_st [ condition_info [ 'discrete_column_id' ] ] id_ += condition_info [ 'value_id' ] vec [ : , id_ ] = 1 return vec