pymc.math.max#

pymc.math.max(x, axis=None, keepdims=False)[source]#

Returns maximum elements obtained by iterating over given axis.

When axis is None (the default value), the max is performed over the flattened tensor.

Parameters:
keepdims: bool

If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original tensor.

Notes

We return an error as numpy when we reduce a dim with a shape of 0.