Home | History | Annotate | Download | only in ops

Lines Matching defs:percentile

36     "percentile",
215 # TODO(langmore) To make equivalent to numpy.percentile:
218 def percentile(x,
225 """Compute the `q`-th percentile of `x`.
227 Given a vector `x`, the `q`-th percentile of `x` is the value `q / 100` of the
231 `interpolation` parameter will determine the percentile if the normalized
239 # Get 30th percentile with default ('nearest') interpolation.
241 percentile(x, q=30.)
244 # Get 30th percentile with 'lower' interpolation
246 percentile(x, q=30., interpolation='lower')
249 # Get 100th percentile (maximum). By default, this is computed over every dim
252 percentile(x, q=100.)
259 percentile(x, q=100., axis=[0])
263 Compare to `numpy.percentile`.
268 q: Scalar `Tensor` in `[0, 100]`. The percentile.
271 percentile. If `None` (the default), treat every dimension as a sample
283 name: A Python string name to give this `Op`. Default is "percentile"
292 name = name or "percentile"