seldonian.utils.stats_utils.custom_cumprod¶
- custom_cumprod(x)¶
Custom implementation of np.cumprod that works with autograd Source: https://github.com/HIPS/autograd/issues/257
- Parameters:
x (numpy ndarray) – The input array
- Returns:
The cumulative product of the array
- Return type:
numpy ndarray(float)