'Return the class value as an instance of :obj:`Orange.data.Value`.
Throws an exception if there are multiple classes.'

def get_class(self):

    self._check_single_class()
    return Value(self._domain.class_var, self._y[0])
