(self, config, quit_on_end=False)
Initialize GPSMain
        Args:
            config: Hyperparameters for experiment
            quit_on_end: When true, quit automatically on completion
Initialize GPSMain
        Args:
            config: Hyperparameters for experiment
            quit_on_end: When true, quit automatically on completion
Initialize GPSMain Args : config : Hyperparameters for experiment quit_on_end : When true quit automatically on completion
def __init__(self, config, quit_on_end=False):
        """
        Initialize GPSMain
        Args:
            config: Hyperparameters for experiment
            quit_on_end: When true, quit automatically on completion
        """
        self._quit_on_end = quit_on_end
        self._hyperparams = config
        self._conditions = config['common']['conditions']
        if 'train_conditions' in config['common']:
            self._train_idx = config['common']['train_conditions']
            self._test_idx = config['common']['test_conditions']
        else:
            self._train_idx = range(self._conditions)
            config['common']['train_conditions'] = config['common']['conditions']
            self._hyperparams=config
            self._test_idx = self._train_idx

        self._data_files_dir = config['common']['data_files_dir']

        self.agent = config['agent']['type'](config['agent'])
        self.data_logger = DataLogger()
        self.gui = GPSTrainingGUI(config['common']) if config['gui_on'] else None

        config['algorithm']['agent'] = self.agent
        self.algorithm = config['algorithm']['type'](config['algorithm'])
def __init__ ( self , config , quit_on_end = False ) : self . _quit_on_end = quit_on_end self . _hyperparams = config self . _conditions = config [ 'common' ] [ 'conditions' ] if 'train_conditions' in config [ 'common' ] : self . _train_idx = config [ 'common' ] [ 'train_conditions' ] self . _test_idx = config [ 'common' ] [ 'test_conditions' ] else : self . _train_idx = range ( self . _conditions ) config [ 'common' ] [ 'train_conditions' ] = config [ 'common' ] [ 'conditions' ] self . _hyperparams = config self . _test_idx = self . _train_idx self . _data_files_dir = config [ 'common' ] [ 'data_files_dir' ] self . agent = config [ 'agent' ] [ 'type' ] ( config [ 'agent' ] ) self . data_logger = DataLogger ( ) self . gui = GPSTrainingGUI ( config [ 'common' ] ) if config [ 'gui_on' ] else None config [ 'algorithm' ] [ 'agent' ] = self . agent self . algorithm = config [ 'algorithm' ] [ 'type' ] ( config [ 'algorithm' ] )