Skip to content

Instantly share code, notes, and snippets.

View wanglaoban1993's full-sized avatar
😳

tianqi wang wanglaoban1993

😳
  • Fraunhofer HHI
  • Germany
  • 18:46 (UTC -12:00)
View GitHub Profile
@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active November 29, 2025 08:28
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Our ML things
import pytorch_lightning as pl
import torch
from torch.utils.data import DataLoader, Dataset
from captum.attr import IntegratedGradients
from pytorch_lightning import seed_everything
from pytorch_lightning import Trainer
# Visualization
import pandas as pd
#Import needed packages
import torch
import torch.nn as nn
from torchvision.datasets import CIFAR10
from torchvision.transforms import transforms
from torch.utils.data import DataLoader
from torch.optim import Adam
from torch.autograd import Variable
import numpy as np