deepof.utils.smooth_boolean_array
- deepof.utils.smooth_boolean_array(a: array, scale: int = 1, sigma=2.0, batch_size: int = 50000) array
LEGACY FILTER FOR BEHAVIORAL ANALYSIS. REPLACED BY multi_step_paired_smoothing Return a boolean array in which isolated appearances of a feature are smoothed.
- Args:
a (numpy.ndarray): Boolean instances. scale (int): Kleinberg scale parameter. Higher values result in stricter smoothing. batch_size (int): Batch size for input processing
- Returns:
a (numpy.ndarray): Smoothed boolean instances.