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 hidden or 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
| # 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 |
This file contains hidden or 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
| #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 |