Created
March 30, 2020 18:58
-
-
Save piEsposito/49e185789e270aa4fd483e2b4da89a1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@variational_estimator | |
class BayesianRegressor(nn.Module): | |
def __init__(self, input_dim, output_dim): | |
super().__init__() | |
#self.linear = nn.Linear(input_dim, output_dim) | |
self.blinear1 = BayesianLinear(input_dim, 512) | |
self.blinear2 = BayesianLinear(512, output_dim) | |
def forward(self, x): | |
x_ = self.blinear1(x) | |
return self.blinear2(x_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment