enas icon indicating copy to clipboard operation
enas copied to clipboard

Question about controller detail

Open zhangcx93 opened this issue 6 years ago • 3 comments

I noticed that in your controller, the prev_c and prev_h never changed, are zeros all the time. For the LSTM, only the chosen action's embedding is feed into the next step as inputs. Is it intended or a bug? If it is intended, is it necessary to use a 2 layer lstm rather than a simple dense layer with tanh activation? Because output of the cell is only related to the chosen embedding, not related to the whole process of the decisions.

zhangcx93 avatar Apr 20 '18 06:04 zhangcx93

It's a bug. Thank you very much for spotting it. We are super grateful! We went from using a tf.while_loop into using a for loop in the controller, so we missed this change. It has been fixed.

hyhieu avatar Apr 20 '18 09:04 hyhieu

The new commit seems to sample only two activation functions because of the num_funcs=2. I think it should be set to 4.

Wronskia avatar Apr 20 '18 12:04 Wronskia

You can set num_funcs to 4 when you construct the controller class.

hyhieu avatar Apr 20 '18 12:04 hyhieu