def _oneInteraction(self): """ Do an interaction between the Task and the Agent. """ if self.doOptimization: raise Exception( 'When using a black-box learning algorithm, only full episodes can be done.' ) else: return Experiment._oneInteraction(self)