Code Monkey home page Code Monkey logo

Comments (3)

LiuQL2 avatar LiuQL2 commented on July 22, 2024

Thank you very much for pointing this out and fixing it. I always thought it was caused by the randomness of the user simulator. Thanks again!

from medicalchatbot.

ares5221 avatar ares5221 commented on July 22, 2024

I run test from saved model, but the SR/ABSR of each run is very different.
In src/dialogue_system/agent/agent.py, the _build_action_space method feasible_actions are Initialized from slot_set and disease_symptom which are loaded from pickle. So the action order in action_sapce may be different.
I modified the code in
line 262: for slot in sorted(self.slot_set.keys()):
line 269: for disease in sorted(self.disease_symptom.keys()):
it worked for me.

halo, i have some question when run test,
ValueError: The passed save_path is not a valid checkpoint: ./../model/dqn/checkpoint/checkpoint_d4_agt1_dqn1/model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt
did you have same question

from medicalchatbot.

AndreaMarino94 avatar AndreaMarino94 commented on July 22, 2024

Eseguo il test dal modello salvato, ma l'SR/ABSR di ogni corsa è molto diverso.
In src/dialogue_system/agent/agent.py, il metodo _build_action_space feasible_actions viene inizializzato da slot_set e disease_symptom che vengono caricati da pickle. Quindi l'ordine delle azioni in action_sapce potrebbe essere diverso.
Ho modificato il codice nella
riga 262: for slot in sorted(self.slot_set.keys()):
riga 269: for disease in sorted(self.disease_symptom.keys()):
ha funzionato per me.

alone, ho qualche domanda quando si esegue il test, ValueError: il save_path passato non è un checkpoint valido: ./../model/dqn/checkpoint/checkpoint_d4_agt1_dqn1/model_d4_agent1_dqn1_s0.619_r18.221_t4.266_wd0.0_e432.ckpt hai avuto la stessa domanda

you can take the saved_model path, from checkpoint.txt in "src\dialogue_system\model\dqn\checkpoint04"

from medicalchatbot.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.