This file contains 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
# 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 |
This file contains 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
""" 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 |
This file contains 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
# 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 |