hunk.code_window:         self.mean = mean
           self.low = low
           self.high = high
           # Squash to range if specified.
           # TODO(ekl) might make sense to use a beta distribution instead:
           # http://proceedings.mlr.press/v70/chou17a/chou17a.pdf
           if low is not None:
               self.mean = low + tf.sigmoid(self.mean) * (high - low)
  
hunk.labels: keep keep keep keep replace replace replace keep keep keep
hunk.after_edit:         # Squash to range if specified. We use a sigmoid here this to avoid the
           # mean drifting too far past the bounds and causing nan outputs.
           # https://github.com/ray-project/ray/issues/1862
  
hunk.file_path: python/ray/rllib/models/action_dist.py
hunk.type: replace
file: #!/usr/bin/env bash
  
  # Cause the script to exit if a single command fails.
  set -e
  
  ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
  
  echo "PYTHON is $PYTHON"
  
  if [[ "$PYTHON" == "2.7" ]]; then
  
    pushd "$ROOT_DIR/../python"
      python setup.py install --user
    popd
  
  elif [[ "$PYTHON" == "3.5" ]]; then
    export PATH="$HOME/miniconda/bin:$PATH"
  
    pushd "$ROOT_DIR/../python"
      python setup.py install --user
    popd
  
  elif [[ "$LINT" == "1" ]]; then
    export PATH="$HOME/miniconda/bin:$PATH"
  
    pushd "$ROOT_DIR/../python"
      python setup.py install --user
    popd
  
  else
    echo "Unrecognized Python version."
    exit 1
  fi
  