1be089b38e0b90a19e7111c9cdffa5c8bf06a3bf,smac/epm/rfr_imputator.py,RFRImputator,impute,#RFRImputator#Any#Any#Any#Any#,133

Before Change


            uncensored_y = numpy.power(10, uncensored_y)
            self.cutoff = numpy.power(10, self.cutoff)
            self.threshold = numpy.power(10, self.threshold)
            imputed_y = numpy.power(10, imputed_y)

        if not numpy.isfinite(imputed_y).all():
            self.logger.critical("Imputed values are not finite, %s" %
                                 str(imputed_y))

After Change


                 for index in range(len(censored_y))]
            imputed_y = numpy.array(imputed_y)

            if sum(numpy.isfinite(imputed_y) == False) > 0:
                // Replace all nans with threshold
                self.logger.critical("Going to replace %d nan-value(s) with "
                                     "threshold" %
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: automl/SMAC3
Commit Name: 1be089b38e0b90a19e7111c9cdffa5c8bf06a3bf
Time: 2016-03-07
Author: lindauer@informatik.uni-freiburg.de
File Name: smac/epm/rfr_imputator.py
Class Name: RFRImputator
Method Name: impute


Project Name: scipy/scipy
Commit Name: 9c47a28c86d9bc09a55789de76af23b7319c0367
Time: 2015-02-08
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_norm.py
Class Name:
Method Name: norm


Project Name: epfl-lts2/pygsp
Commit Name: b03041d9139ad40c7d3644f2d26e3573f389e305
Time: 2017-08-31
Author: michael.defferrard@epfl.ch
File Name: pygsp/plotting.py
Class Name:
Method Name: plot_filter