1349a412f5b3912b0e90afb17ccb90745c50a430,Orange/canvas/report/__init__.py,,describe_data_brief,#Any#,240
Before Change
def describe_data_brief(data):
domain = data.domain
items = OrderedDict([
("Data instances", len(data)),
("Features", len(domain.attributes) or "None"),
("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
After Change
:type data: Orange.data.Table
:rtype: OrderedDict
items = OrderedDict()
items["Data instances"] = len(data)
items.update(describe_domain_brief(data.domain))
return items
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biolab/orange3
Commit Name: 1349a412f5b3912b0e90afb17ccb90745c50a430
Time: 2015-12-04
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief
Project Name: etal/cnvkit
Commit Name: 08ac416593f765c6c91fef3dfe7538acdb588041
Time: 2016-02-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_heatmap
Project Name: biolab/orange3
Commit Name: 34d4608fcd3df6f5c02e6a56afda51fd9d00be0b
Time: 2015-10-30
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief