takuseno / d3rlpy

An offline deep reinforcement learning library

Home Page:https://takuseno.github.io/d3rlpy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] What's the meaning of action_size?

Lucien-Evans-123 opened this issue · comments

Now, I am writing the mask function. I find some question to ask you.
cql = d3rlpy.algos.DiscreteCQLConfig(batch_size=20, encoder_factory=CustomEncoderFactory(feature_size=32)).create(device='cuda:0') register_encoder_factory(CustomEncoderFactory) cql = d3rlpy.load_learnable('d3rlpy_logs/cql_mr.d3')
In my dataset, the action size is 17. However after load the .d3 file, the action_size is 46 in config!(I debug code and find it)
I am looking forward to your reply. Thank you!

@Lucien-Evans-123 Thanks for the issue. action_size of discrete action-space is going to be automatically computed here:

action_size = max_action + 1 # index should start from 0

This means that the max action id in your dataset is 45, I guess.