Skip to content

Make helper throw an error if masking array length is not equal to actions size #350

@SaharEs

Description

@SaharEs

I had made this mistake in a model, masking array was longer than actions. The experiments trained fine but when running with policy I get this error about observations:
Array length not equal to model input size

I think it cuts the masking array to fit the size of actions.

Would be great if we throw an error in AL so users would know there is something wrong when running in random actions.

Also, if masking array was a jagged array instead one long array, we could do the check for each decision separately.
So for example here we can check that the first element of masking array is of size 4 and the second one is of size 3.
image

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions