Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pearl/policy_learners/contextual_bandits/linear_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def learn_batch(self, batch: TransitionBatch) -> dict[str, Any]:
if batch.weight is not None
else torch.ones_like(expected_values)
)
x = torch.cat([batch.state, batch.action], dim=1)
x = torch.cat([batch.state, torch.squeeze(batch.action, dim=1)], dim=1)
self.model.learn_batch(
x=x,
y=batch.reward,
Expand Down
Loading