Skip to content

Instantly share code, notes, and snippets.

View warneracw21's full-sized avatar
🤠

Andrew Warner warneracw21

🤠
View GitHub Profile
# Imports
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import tensorflow as tf
import pandas as pd
import numpy as np
from sklearn.datasets import make_blobs
@warneracw21
warneracw21 / gan_regression_train.py
Created August 24, 2018 18:31
Alternating Training Schedule for an RNN regression and convolutional LSGAN model
""" Methods for Training on a distributed Network """
"""
The session is set up to be run in a distributed local environment.
The workers should be assigned to GPUs because they do most of the
heavy lifting in the compuation. Assign a different domain:port double
for each GPU available on the local host.
The parameter servers should simply be assigned to CPUs. See the
# Imports
import matplotlib.pyplot as plt
from matplotlib.path import Path
import matplotlib.patches as patches
import numpy as np
import math
import time
# Define Constants
pi = math.pi