918b07abd405ced498513e874b6fa9e44153aa2b,chaospy/descriptives/quantity_of_interest.py,,QoI_Dist,#,11

Before Change


    //sample from the inumpyut dist
    samples = dist.sample(sample, **kws)

    qoi_dists = []
    for i in range(0, len(poly)):
        //sample the polynomial solution
        if dim == 1:
            dataset = poly[i](samples)
        else:
            dataset = poly[i](*samples)

        lo = dataset.min()
        up = dataset.max()

        //creates qoi_dist
        qoi_dist = SampleDist(dataset, lo, up)
        qoi_dists.append(qoi_dist)

    // reshape the qoi_dists to match the shape of the input poly
    if shape:
        def reshape(lst, shape):
            if len(shape) == 1:
                return lst

After Change


    dim = len(dist)

    //sample from the input dist
    samples = numpy.atleast_2d(dist.sample(sample, **kws))
    qoi_dist = chaospy.GaussianKDE(poly(*samples))
    return qoi_dist
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: jonathf/chaospy
Commit Name: 918b07abd405ced498513e874b6fa9e44153aa2b
Time: 2020-10-26
Author: jonathf@users.noreply.github.com
File Name: chaospy/descriptives/quantity_of_interest.py
Class Name:
Method Name: QoI_Dist


Project Name: scikit-learn-contrib/DESlib
Commit Name: f0c15f219b0761b14329ddd416cda82fa4bae841
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/mcb.py
Class Name: MCB
Method Name: estimate_competence


Project Name: scikit-learn-contrib/DESlib
Commit Name: f7a04171e58eb43dfe5b18d06c76481cdf1c5da9
Time: 2018-03-29
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/lca.py
Class Name: LCA
Method Name: estimate_competence