start new:
tmux
start new with session name:
tmux new -s myname
import keras.backend as K | |
import multiprocessing | |
import tensorflow as tf | |
from gensim.models.word2vec import Word2Vec | |
from keras.callbacks import EarlyStopping | |
from keras.models import Sequential | |
from keras.layers.core import Dense, Dropout, Flatten | |
from keras.layers.convolutional import Conv1D |
## Shout out to jarutis here https://gist.github.com/jarutis/ff28bca8cfb9ce0c8b1a | |
## install Catalyst proprietary | |
## sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt update | |
sudo apt dist-upgrade | |
# on a clean install not needed but could be helpful | |
sudo apt-get remove --purge fglrx* |
# Author: Qiushi Pan (@qqhann) | |
# This is a code snippet with sample usage, to get replies to a specific tweet. | |
# ===== | |
import tweepy | |
import time | |
import os | |
from collections import defaultdict | |
from dotenv import load_dotenv, find_dotenv | |
env = load_dotenv(find_dotenv(), override=True) |
The best way to get a clean installation of PyTorch, is to install the pre-compiled binaries from the Anaconda distribution. Therefore, we need to setup Anaconda first.
""" | |
Takes in a given MAL export file and generates a list of movies | |
in .csv format supported by LetterBoxd | |
""" | |
import xmltodict | |
import json | |
import pandas as pd | |
allowed_types = ["Movie", "OVA"] |