def describe_domain(domain):
 def clip_attrs(items, s):
  return clipped_list([a.name for a in items], 1000, total_min=10, total=' (total: {{}} {})'.format(s))
 return OrderedDict([('Features', clip_attrs(domain.attributes, 'features')), ('Meta attributes', (bool(domain.metas) and clip_attrs(domain.metas, 'meta attributes'))), ('Target', (bool(domain.class_vars) and clip_attrs(domain.class_vars, 'targets variables')))])

def describe_domain ( domain ) : def clip_attrs ( items , s ) : return clipped_list ( [ a . name for a in items ] , 1000 , total_min = 10 , total = ' (total: {{}} {})' . format ( s ) ) return OrderedDict ( [ ( 'Features' , clip_attrs ( domain . attributes , 'features' ) ) , ( 'Meta attributes' , ( bool ( domain . metas ) and clip_attrs ( domain . metas , 'meta attributes' ) ) ) , ( 'Target' , ( bool ( domain . class_vars ) and clip_attrs ( domain . class_vars , 'targets variables' ) ) ) ] )
return an :obj:ordereddict describing a domain description contains keys "features" .