(domain)
return items
Return an :obj:`OrderedDict` with the number of features, metas and classes

    Description contains "Features" and "Meta attributes" with the number of
    featuers, and "Targets" that contains either a name, if there is a single
    target, or the number of targets if there are multiple.

    :param domain: data
    :type domain: Orange.data.Domain
    :rtype: OrderedDict
Return an :obj:`OrderedDict` with the number of features, metas and classes
Return an : obj : OrderedDict with the number of features metas and classes
def describe_domain_brief(domain):
    """
    Return an :obj:`OrderedDict` with the number of features, metas and classes

    Description contains "Features" and "Meta attributes" with the number of
    featuers, and "Targets" that contains either a name, if there is a single
    target, or the number of targets if there are multiple.

    :param domain: data
    :type domain: Orange.data.Domain
    :rtype: OrderedDict
    """
    items = OrderedDict()
    if domain is None:
        return items
    items["Features"] = len(domain.attributes) or "None"
    items["Meta attributes"] = len(domain.metas) or "None"
    if domain.has_discrete_class:
        items["Target"] = "Class '{}'".format(domain.class_var.name)
    elif domain.has_continuous_class:
        items["Target"] = "Numeric variable '{}'". \
            format(domain.class_var.name)
    elif domain.class_vars:
        items["Targets"] = len(domain.class_vars)
    else:
        items["Targets"] = False
    return items
def describe_domain_brief ( domain ) : items = OrderedDict ( ) if domain is None : return items items [ "Features" ] = len ( domain . attributes ) or "None" items [ "Meta attributes" ] = len ( domain . metas ) or "None" if domain . has_discrete_class : items [ "Target" ] = "Class '{}'" . format ( domain . class_var . name ) elif domain . has_continuous_class : items [ "Target" ] = "Numeric variable '{}'" . format ( domain . class_var . name ) elif domain . class_vars : items [ "Targets" ] = len ( domain . class_vars ) else : items [ "Targets" ] = False return items