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

Before Change


            imputed_y = numpy.array(imputed_y)

            // Replace all nans with threshold
            self.logger.critical("Going to replace %d nan-value(s) with "
                                 "threshold" %
                                 sum(numpy.isfinite(imputed_y) == False))
            imputed_y[numpy.isfinite(imputed_y) == False] = self.threshold

            if it > 0:
                // Calc mean difference between imputed values this and last

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" %
                                     sum(numpy.isfinite(imputed_y) == False))
                imputed_y[numpy.isfinite(imputed_y) == False] = self.threshold

            if it > 0:
                // Calc mean difference between imputed values this and last
                // iteration, assume imputed values are always concatenated
                // after uncensored values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: bokeh/bokeh
Commit Name: 28bc7006fc674e20706711145205b1d246adb211
Time: 2015-11-18
Author: hp@pobox.com
File Name: bokeh/server/server.py
Class Name: Server
Method Name: __init__


Project Name: acl-org/acl-anthology
Commit Name: 44c2aca05d73fd46ac053b194ef30dfc4a7d60d4
Time: 2019-02-19
Author: bollmann@linguistics.rub.de
File Name: bin/anthology.py
Class Name: Anthology
Method Name: import_file