Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Returns the median and the median absolute deviation of the data.

Parameters:

- ``data``: The data to find the medians of.
- ``median``: If the median is already known you can pass it in to save
  time.

        def median_deviation(data, median=None):
    '''
    Returns the median and the median absolute deviation of the data.

    Parameters:

    - ``data``: The data to find the medians of.
    - ``median``: If the median is already known you can pass it in to save
      time.
    '''
    if median is None:
        median = find_median(data)
    return  median, find_median([abs(x - median) for x in data])
        


src/r/e/ReducingWastedEvaluationsCGP-HEAD/main.py   ReducingWastedEvaluationsCGP(Download)
    # Analyze the values for each key
    for key, value in combined.items():
        combined[key] = util.median_deviation(value)
    try:
        combined['success'] = len(successful) / float(len(results)), 0