hhexiy / opponent

Implementation for ICML 16 paper "Deep reinforcement learning with opponent modeling"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module 'setup' not found

nina124 opened this issue · comments

Hi,
Thank you for sharing the code, I just run it, and get an error:
module 'setup' not found:No LuaRocks module found for setup

I am new to torch. So I cannot figure out whether I did not install some package/part in torch for this setup module or the code just missed this part? And, as to the function env_setup(), I cannot find its definition in the code.
Could you please give me some hint on solving this?

By the way, I found the argument setting in makefile is still about run_qb, If I want to run_soccer, which part of the arguments should I change?

Sorry to be a bother. Any reply would be really appreciated.

Sorry! Just added setpu.lua. You should be able to find evn_setup there.
run_qn and run_soccer both use agent_params, you can change it there or overwrite them when calling make.

Thank you for reply!
Just another problem: No LuaRocks module found for model.MultiHot
Also, in setup.lua, it requires model.MultiHot, model.OneHot, Model.MaskedLookupTable. None of these modules are in the model folder.
To run_soccer, besides changing agent="QBNeuralQLearner" to agent="SoccerNeuralQLearner", do i need to do other modifications? And what does the argument nework mean? Current it is blank character.

Oh, those are not used any more.. I've removed them in setup.lua.
network is used to load saved model, you can look at it here:

local msg, err = pcall(require, self.network)

You are so kind for answering so quickly and giving detailed explanation!
After removing these three lines, it gives soccer_framework.lua: No such file or directory.

Hi, really sorry about the missing files. It's added now.

On Wed, Aug 17, 2016 at 8:25 PM, nina124 notifications@github.com wrote:

You are so kind for answering so quickly and giving detailed explanation!
And, after removing these three lines, it gives soccer_framework.lua: No
such file or directory.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABJYps0QiPRitgi6IPfAi2J2awQz8IOzks5qg9DEgaJpZM4Jmha1
.

It works now. Thank you so much!
Last, what is the difference between QBNeuralQLearner.lua and QBONeuralQLearner.lua, likewise SoccerNeuralQLearner.lua and SoccerONeuralQLearner.lua ?

O means with opponent.

On Wed, Aug 17, 2016 at 11:19 PM, nina124 notifications@github.com wrote:

It works now. Thank you so much!
Last, what is the difference between QBNeuralQLearner.lua and
QBONeuralQLearner.lua, likewise SoccerNeuralQLearner.lua and
SoccerONeuralQLearner.lua ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABJYptrivMAHCDpgDWzW4O2P2pX3WKeIks5qg_mBgaJpZM4Jmha1
.

Thanks for all the reply. I will dive into the code.