Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""Simple example on how to log scalars and images to tensorboard without tensor ops. | |
License: BSD License 2.0 | |
""" | |
__author__ = "Michael Gygli" | |
import tensorflow as tf | |
from StringIO import StringIO | |
import matplotlib.pyplot as plt | |
import numpy as np |
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
# Silvius microphone client based on Tanel's client.py | |
__author__ = 'dwk' | |
import argparse | |
from ws4py.client.threadedclient import WebSocketClient | |
import threading | |
import sys | |
import urllib | |
import json |
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
def main(): | |
# Read TFRecords files for training | |
def read_and_decode(filename_queue): | |
reader = tf.TFRecordReader() | |
_, serialized_example = reader.read(filename_queue) | |
return serialized_example | |
# Read TFRecords files for training | |
filename_queue = tf.train.string_input_producer( |
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
# distutils: language=c++ | |
import collections | |
import operator | |
from cpython.bytes cimport PyBytes_AS_STRING, PyBytes_GET_SIZE | |
import cython | |
import numpy as np | |
import pandas as pd | |
from libc.stdint cimport uint8_t, uint32_t |
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 datetime | |
import pytz | |
from tensorflow.contrib.session_bundle import exporter | |
from tensorflow.python.client import timeline | |
import glob | |
import json | |
import time | |
import math | |
import numpy as np | |
import os |
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
set noswapfile | |
inoremap ( () | |
inoremap [ [] | |
inoremap " "" | |
inoremap ' '' | |
set t_Co=256 | |
nnoremap ; : | |
:command W w | |
:command P set paste |
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/env python | |
# Benchmark transferring data. | |
# | |
# Take a independent workers communicating with b parameter shards | |
# Each worker tries to add to variables stored on parameter server as fast as | |
# possible. | |
# | |
# macbook | |
# ps=1: 1.6 GB/s | |
# ps=2: 2.6 GB/s |
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
sudo su | |
# Java | |
yum -y install java-1.8.0-openjdk-devel | |
# Build Esentials (minimal) | |
yum -y install gcc gcc-c++ kernel-devel make automake autoconf swig git unzip libtool binutils | |
# Extra Packages for Enterprise Linux (EPEL) (for pip, zeromq3) | |
yum -y install epel-release |
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 sys,os | |
import datetime | |
from pyalgotrade import bar | |
from pyalgotrade import strategy | |
from pyalgotrade import plotter | |
from pyalgotrade.technical import vwap,ma,cumret,cross | |
from pyalgotrade.barfeed import csvfeed | |
from pyalgotrade.bitstamp import broker | |
from pyalgotrade import broker as basebroker | |
from pyalgotrade.stratanalyzer import sharpe,drawdown,returns,trades |