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
| params = {'backend': 'ps', | |
| 'axes.labelsize': 24, # fontsize for x and y labels (was 10) | |
| 'axes.titlesize': 24, | |
| 'text.fontsize': 24, # was 10 | |
| 'legend.fontsize': 24, # was 10 | |
| 'xtick.labelsize': 24, | |
| 'ytick.labelsize': 24, | |
| 'text.usetex': True, | |
| 'figure.figsize': [fig_width,fig_height], | |
| 'font.family': 'serif', |
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
| \begin{figure} | |
| \centering | |
| \fbox{ | |
| \begin{minipage}{1in} | |
| \hfill\vspace{1in} | |
| \end{minipage} | |
| } | |
| \caption{Caption} | |
| \end{figure} |
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
| bsub -n 1 -R "span[hosts=1]" -R "rusage[mem=19000,tmp=10000]" -R "select[model==XEON_E5_2670]" -We 240:00 -J "./mlp_mnist_1_01.sh" |
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
| \DeclareGraphicsExtensions{.png,.pdf} | |
| \graphicspath{{figures/}} | |
| \usepackage{algorithm} | |
| \usepackage{algorithmic} | |
| \usepackage{multirow} | |
| \usepackage{todonotes} | |
| \usepackage{changes} | |
| \definechangesauthor[color=blue]{fr} |
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 matplotlib.pyplot as plt | |
| def draw_neural_net(ax, left, right, bottom, top, layer_sizes): | |
| ''' | |
| Draw a neural network cartoon using matplotilb. | |
| :usage: | |
| >>> fig = plt.figure(figsize=(12, 12)) | |
| >>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2]) | |
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
| #Link https://hackernoon.com/a-pip-hack-to-upgrade-all-your-python-packages-492658c49681 | |
| sudo pip2 freeze — local | grep -v ‘^\-e’ | cut -d = -f 1 | xargs -n1 sudo pip2 install -U |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import random | |
| import math | |
| import torch | |
| import torch.nn as nn | |
| import torchvision.datasets as dsets | |
| import torchvision.transforms as transforms | |
| import pickle |