
def _build_agent_eval_func(self):
if self.agent_type == DiscreteAgentInterventionStructure or self.agent_type == DiscreteAgentIntervention:
agent = self.agent_type(self.n_vars, interv_value=self.intervention_value, state_repeats=self.episode_length)
else:
raise NotImplementedError('Agent type ' + str(self.agent_type) + 'is not implemented.')
eval_func = None
return agent, eval_func
In environment.py file,i find the error
The DiscreteAgentIntervention is error
Unresolved reference 'DiscreteAgentIntervention'