Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 BNN(nn.Module): | |
def __init__(self): | |
super().__init__() | |
# convolutional layer (sees 32x32x3 image tensor) | |
self.conv1 = BayesianConv2d(3, 8, (3,3), padding=1) | |
# convolutional layer (sees 16x16x8 tensor) | |
self.conv2 = BayesianConv2d(8, 16, (3,3), padding=1) | |
# convolutional layer (sees 8x8x16 tensor) | |
self.conv3 = BayesianConv2d(16, 16, (3,3), padding=1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
############## | |
# QUESTION 1: | |
# a) replicating figure 9.7 (right panel) from Gelman et. al. | |
# separating treatment and control data | |
foo = read.csv("https://tinyurl.com/wlgl63b") | |
ctrl_units = foo[which(foo$treatment==0),] | |
trt_units = foo[which(foo$treatment==1),] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder