aikupoker / deeper-stacker

DeeperStacker: DeepHoldem Evil Brother
38 stars 3 forks source link

preflop-aux raw_converter #17

Closed airdine closed 4 years ago

airdine commented 4 years ago

Hello,

I am facing a new issue, I don't know if I am doing the right way. After generating preflop-aux ps with main_aux_data_generation, I was trying to convert them before to train preflop-aux model.

I got this issue running raw_converter.lua :

/root/torch/install/bin/lua: bad argument #2 to '?' (end index out of bound at /root/torch/pkg/torch/generic/Tensor.c:992)
stack traceback:
    [C]: in ?
    [C]: in function '__index'
    Training/raw_converter.lua:125: in function 'convert'
    Training/raw_converter.lua:150: in main chunk
    [C]: in function 'dofile'
    /root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
    [C]: in ?

it appears to be raw_input_batch variable's argument #2 :

    for player = 1, constants.players_count do
      local player_index = raw_indexes[player]
      local bucket_index = bucket_indexes[player]
      bucket_conversion:card_range_to_bucket_range(raw_input_batch[{{},player_index}],input_batch[{{}, bucket_index}])
    end

Is it something I forget to do or am doing wrong ?