def safe_float(x):
    if '?' in x:
        return np.nan
    else:
        return float(x)
Creates a one-filled :class:`cupy.ndarray` object like the given array.
dataset/ETHPy150Open scipy/scipy/scipy/io/arff/arffread.py/safe_float--crossover with--dataset/ETHPy150Open pfnet/chainer/chainer/cuda.py/ones_like