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
from urllib.request import urlretrieve | |
from pathlib import Path | |
import time | |
import random | |
slides_dir = Path('/blablabla/CS590M/slides') | |
url = lambda n: f"https://blabla.com/slecture{n:02}h.pdf" | |
fname = lambda n: slides_dir / f"slecture{n:02}h.pdf" |
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
\ProvidesPackage{mystyle} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath, amssymb, bm} | |
\usepackage{mathtools} % for DeclarePairedDelimiter command | |
\usepackage{graphicx} | |
\usepackage{subcaption} %allows drawing subfigures | |
% Set page size and margins | |
% Replace `letterpaper' with`a4paper' for UK/EU standard size |
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
#questions to answer | |
# 1. Do the following sequences give the same hidden states: pad-rnn-hidden & pack-rnn-pad-hidden | |
# 2. does the birnn use the (hidden states computed in the forward states) to | |
# compute the (hidden states computed in the backward direction) | |
import torch | |
import torch.nn as nn | |
import torch.nn.utils.rnn as rnnutils |
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
## imports and other stuff | |
# Boilerplate for setting things up | |
query_args = {'dbname': dbname, 'host': host, 'port': port, 'user': dbusername} | |
conn = psycopg2.connect(**query_args) | |
cur = conn.cursor() | |
cur.execute('SET search_path to ' + schema_name) | |
# Setup the query- note it is ALMOST the same as the sql file's query | |
query = \ |
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
name: environment-name | |
channels: | |
- pytorch | |
- defaults | |
- anaconda | |
dependencies: | |
- numpy | |
- pandas | |
- pytorch | |
# - torchvision |
NewerOlder