mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Bug fix in the contextual bandit's linear_regression.py model. (#8815)
This commit is contained in:
parent
be26a7b1b0
commit
ad695a818b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class OnlineLinearRegression(nn.Module):
|
|||
def partial_fit(self, x, y):
|
||||
# TODO: Handle batch of data rather than individual points
|
||||
self._check_inputs(x, y)
|
||||
x = x.squeeze()
|
||||
x = x.squeeze(0)
|
||||
y = y.item()
|
||||
self.time += 1
|
||||
self.delta_f += y * x
|
||||
|
|
Loading…
Add table
Reference in a new issue