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

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
return an :obj:ordereddict with the number of features .