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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: reinforceio/tensorforce
Commit Name: 62cea7fcfcc9e20b784e08bddce5dc69b9578ef4
Time: 2019-01-05
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/baselines/cnn_baseline.py
Class Name: CNNBaseline
Method Name: __init__


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