Skip to content

error :Unresolved reference 'DiscreteAgentIntervention' #2

@Caomingming666

Description

@Caomingming666

image
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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions