(self, index)
return np.vstack((self.values[ind], C[ind]))
Return contingencies for a given class value.
Return contingencies for a given class value.
Return contingencies for a given class value .
def __getitem__(self, index):
        """ Return contingencies for a given class value. """
        if isinstance(index, (str, float)):
            index = self.row_variable.to_val(index)
        C = self.counts[index]
        ind = C > 0
        return np.vstack((self.values[ind], C[ind]))
def __getitem__ ( self , index ) : if isinstance ( index , ( str , float ) ) : index = self . row_variable . to_val ( index ) C = self . counts [ index ] ind = C > 0 return np . vstack ( ( self . values [ ind ] , C [ ind ] ) )