Closed brunonishimoto closed 4 years ago
I realized that the default goal_model_path
in class GoalGenerator
changed to data/multiwoz/goal/new_goal_model_no_police_hospital.pkl
which does not exist in directory data/multiwoz/goal
.
One possible solution is to run the script convlab2/task/multiwoz/goal_generator.py
to create this model path.
When training policies that use the
UserPolicyAgendaMultiWoz
such asPG
,PPO
andGDPL
, it throws an Exception. This Exception is related to the fileconvlab2/task/multiwoz/goal_generator.py
line 181, where theself.corpus_path
seems to beNone
instead of a path. Indeed, in theUserPolicyAgendaMultiWoz
class, we initialize theGoalGenerator
with defaults values (corpus_path = None
, included), and we do not set this anywhere.To Reproduce Steps to reproduce an example of the behavior (PPO policy):
convlab2/policy/ppo
python train.py
Expected behavior It should train the policy with the respective algorithm (PPO in this case)
Additional context It also happens when evaluating an policy using
convlab2/policy/evaluate.py
script.