<s> '''<STR_LIT>''' <EOL> from nn_utilities import update_model_weights <EOL> from policy import CNNRNNPolicy <EOL> from torcs_controller import pyclient <EOL> import numpy as np <EOL> weights_index = - <NUM_LIT:3> <EOL> pretrained_weights_cnn = np . loadtxt ( '<STR_LIT>' ) <EOL> saved_weights_rnn_multiple = np . loadtxt ( '<STR_LIT>' ) <EOL> saved_weights_rnn_best = np . loadtxt ( '<STR_LIT>' ) <EOL> POLICY = CNNRNNPolicy ( cnn_weights = pretrained_weights_cnn ) <EOL> weights = saved_weights_rnn_multiple [ weights_index ] <EOL> update_model_weights ( POLICY . rnn , weights ) <EOL> TORCS = pyclient . TORCS ( episode_length = <NUM_LIT> , <EOL> policy = POLICY , <EOL> sessionid = <NUM_LIT:1> ) <EOL> fitness1 = TORCS . run ( track_id = <NUM_LIT:1> ) <EOL> fitness2 = TORCS . run ( track_id = <NUM_LIT:2> ) <EOL> fitness = min ( fitness1 , fitness2 ) <EOL> print ( '<STR_LIT>' . format ( <EOL> fitness1 , fitness2 , fitness ) ) <EOL> import IPython ; IPython . embed ( ) </s>
