def control_signal(self, rnn_out):
        signal_steering = (rnn_out[0] + rnn_out[1]) / 2
        signal_acceleration = rnn_out[2]

        # Restrict steering to the range [-1, 1]
        if signal_steering < -1:
            signal_steering = -1
        elif signal_steering > 1:
            signal_steering = 1

        # Restrict acceleration to the range [0, 1]
        if signal_acceleration < 0:
            signal_acceleration = 0
        elif signal_acceleration > 1:
            signal_acceleration = 1

        return signal_steering, signal_acceleration
Validate date.
dataset/ETHPy150Open cosmoharrigan/neuroevolution/neuroevolution/policy.py/CNNRNNPolicy.control_signal--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/DateProperty.validate