What does the following process mean?
What does “Observe each prediction.” mean?
This code from Turing tutorials ( https://turing.ml/dev/tutorials/3-bayesnn/ )
for i = 1:length(ts)
ts[i] ~ Bernoulli(preds[i])
end
What does the following process mean?
What does “Observe each prediction.” mean?
This code from Turing tutorials ( https://turing.ml/dev/tutorials/3-bayesnn/ )
for i = 1:length(ts)
ts[i] ~ Bernoulli(preds[i])
end
In short, the rough idea of Bayesian neural networks is to treat the output as observations from distributions. By providing data of the expected output, we can adjust and update our distributions accordingly. For this binary classification example, we’re modeling the class label as a draw from a Bernoulli distribution with probability preds[i]
, hence “observing” each prediction.