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
# Run in a Google Colab cell, to install TensorBoard correctly. | |
# Remove all TensorBoard packages. | |
!pip list --format=freeze | grep tensorboard | xargs pip uninstall -y | |
# Install TensorBoard again. | |
!pip install -q tensorboard | |
# Load the TensorBoard extension! | |
%load_ext tensorboard |
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
# Add this in a Google Colab cell to install the correct version of Pytorch Geometric. | |
import torch | |
def format_pytorch_version(version): | |
return version.split('+')[0] | |
TORCH_version = torch.__version__ | |
TORCH = format_pytorch_version(TORCH_version) | |
def format_cuda_version(version): |
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
/* | |
Bayesian Linear Regression in WebPPL | |
Author: Ameya Daigavane | |
Runnable in WebPPL's online editor at webppl.org | |
*/ | |
/* Training Data */ | |
let x_train = _.range(0, 10, 0.1); | |
let y_train = _.range(20, 0, -0.2); |