def percent_close_to_median(x, window_frac=0.1):
    window = (x.max() - x.min()) * window_frac
    return np.mean(np.abs(x - np.median(x)) < window)
Set the boot device for the task's node.
dataset/ETHPy150Open cesium-ml/cesium/cesium/science_features/common_functions.py/percent_close_to_median--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ssh.py/SSHManagement.set_boot_device