Skip to content

Commit

Permalink
updated nn init to xaivier instead of kaiming
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspear committed Oct 25, 2024
1 parent c0ffaa0 commit 0a42301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offline_rl_ope/PropensityModels/torch/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
def __init_weights(self, value):
for layer in self.layers:
if isinstance(layer, nn.Linear):
nn.init.kaiming_uniform_(layer.weight)
nn.init.xavier_uniform_(layer.weight)
layer.bias.data.fill_(value)

@abstractmethod
Expand Down

0 comments on commit 0a42301

Please sign in to comment.