Skip to content

Instantly share code, notes, and snippets.

@jeromeku
jeromeku / setup.sh
Last active August 29, 2015 14:06 — forked from kespindler/setup.sh
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install git make python-dev python-setuptools libblas-dev gfortran g++ python-pip python-numpy python-scipy liblapack-dev
sudo pip install ipython nose
sudo apt-get install screen
sudo pip install --upgrade git+git://github.com/Theano/Theano.git
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo apt-get update
import theano
from pylearn2.models import mlp
from pylearn2.training_algorithms import sgd
from pylearn2.termination_criteria import EpochCounter
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix
import numpy as np
from random import randint
class XOR(DenseDesignMatrix):
@jeromeku
jeromeku / ann.py
Last active August 29, 2015 14:06 — forked from arngarden/ann.py
import theano
from pylearn2.models import mlp
from pylearn2.train_extensions import best_params
from pylearn2.training_algorithms import sgd, learning_rule
from pylearn2.utils import serial
from pylearn2.termination_criteria import MonitorBased
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix
from sklearn.preprocessing import StandardScaler
import numpy as np
from random import randint

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
  1. General Background and Overview
@jeromeku
jeromeku / kmeans.ipynb
Created October 12, 2018 16:33 — forked from jakevdp/kmeans.ipynb
Performance Python: 7 Strategies for Optimizing Your Numerical Code (PyCon 2018)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeromeku
jeromeku / black-crypto-swans.ipynb
Created January 28, 2021 06:55 — forked from gjlr2000/black-crypto-swans.ipynb
Black Crypto-Swans.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeromeku
jeromeku / smile-crypto-options.ipynb
Created January 28, 2021 06:55 — forked from gjlr2000/smile-crypto-options.ipynb
Smile Crypto Options.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeromeku
jeromeku / MeanReversionTutorial_3.ipynb
Created January 28, 2021 06:56 — forked from gjlr2000/MeanReversionTutorial_3.ipynb
Finding Mean Reversion: 2nd part
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.