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" %