Skip to content

Instantly share code, notes, and snippets.

View ameya98's full-sized avatar

Ameya Daigavane ameya98

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ameya98
ameya98 / install_TensorBoard.py
Last active September 6, 2020 08:34
Google Colab: Install TensorBoard
# 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
@ameya98
ameya98 / install_PyG.py
Last active September 28, 2024 03:49
Google Colab: PyTorch Geometric Installation
# 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):
@ameya98
ameya98 / bayesian_regression.js
Last active January 13, 2019 11:59
Bayesian Linear Regression
/*
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);