if not numpy.issubdtype(yt.dtype, numpy.number):
raise ValueError("time must be numeric, but found {}".format(yt.dtype))
return event, yt
def check_arrays_survival(X, y, force_all_finite=True):
After Change
return_val.append(yt)
continue
yt = check_array(yt, ensure_2d=False)
if not numpy.issubdtype(yt.dtype, numpy.number):
raise ValueError("time must be numeric, but found {} for argument {}".format(yt.dtype, i + 2))
return_val.append(yt)