As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| import numpy as np | |
| from scipy import linalg | |
| from sklearn.utils import array2d, as_float_array | |
| from sklearn.base import TransformerMixin, BaseEstimator | |
| class ZCA(BaseEstimator, TransformerMixin): | |
| def __init__(self, regularization=10**-5, copy=False): | |
| self.regularization = regularization |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current window| import tensorflow as tf | |
| import numpy as np | |
| class TextCNN(object): | |
| """ | |
| A CNN for text classification. | |
| Uses an embedding layer, followed by a convolutional, max-pooling and softmax layer. | |
| """ | |
| def __init__( |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| from sklearn.base import BaseEstimator | |
| from sklearn.exceptions import NotFittedError | |
| import numpy as np | |
| class IRFF(BaseEstimator): | |
| ''' | |
| Random fourier features using the improved embedding | |
| https://www.cs.cmu.edu/~schneide/DougalRandomFeatures_UAI2015.pdf | |
| ''' |
| # Install tmux 3.0a on Centos | |
| # install deps | |
| sudo yum install -y gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
| tar -xf libevent-2.1.11-stable.tar.gz | |
| cd libevent-2.1.11-stable | |
| ./configure --prefix=/usr/local |