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
# import standard PyTorch modules | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
from torch.utils.tensorboard import SummaryWriter # TensorBoard support | |
# import torchvision module to handle image manipulation | |
import torchvision | |
import torchvision.transforms as transforms |
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
# Put this snippet into your Kaggle kernel, make sure the file is under kaggle/working/ | |
import os | |
os.chdir(r'kaggle/working/') | |
from IPython.display import FileLink | |
FileLink(r'export.pkl') |
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
# -*- coding: utf-8 -*- | |
import json | |
import itertools | |
import urllib | |
import requests | |
import os | |
import re | |
import sys | |
print("hah") |
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
urls = Array.from(document.querySelectorAll('.rg_di .rg_meta')).map(el=>JSON.parse(el.textContent).ou); | |
window.open('data:text/csv;charset=utf-8,' + escape(urls.join('\n'))); |
NewerOlder