Skip to content

Instantly share code, notes, and snippets.

View ghamarian's full-sized avatar

Amir Ghamarian ghamarian

View GitHub Profile
-Learn-Artificial-Intelligence-with-TensorFlow
origin https://github.com/PacktPublishing/-Learn-Artificial-Intelligence-with-TensorFlow.git (fetch)
-----------------
Advanced-Deep-Learning-with-Keras
origin https://github.com/PacktPublishing/Advanced-Deep-Learning-with-Keras.git (fetch)
-----------------
Deep-Learning-with-Keras
origin https://github.com/PacktPublishing/Deep-Learning-with-Keras.git (fetch)
-----------------
Distributed-Deep-Learning
import bezier
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
@ghamarian
ghamarian / wire_simulation.py
Created March 17, 2019 17:34
changed to yield
import bezier
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
@ghamarian
ghamarian / wire_simulation.py
Created March 17, 2019 15:22
length as parameter
import bezier
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
@ghamarian
ghamarian / wire_simulation.py
Created March 17, 2019 15:11
first complete version. (still no styling)
import bezier
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
@ghamarian
ghamarian / wire_simulator.py
Created March 16, 2019 21:55
draw both graph and curvy ones.
import bezier
import networkx as nx
from matplotlib import pyplot as plt
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
@ghamarian
ghamarian / wire_simulator.py
Created March 16, 2019 20:51
only one sided but with image generator
import bezier
import networkx as nx
from matplotlib import pyplot as plt
from itertools import product
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
from matplotlib.figure import Figure
import networkx as nx
from matplotlib import pyplot as plt
from itertools import product
import numpy as np, numpy.random
# print(np.round(np.random.dirichlet(np.ones(10), size=1) * 170))
def distribute(value, nodes, max_number):
-Learn-Artificial-Intelligence-with-TensorFlow
origin https://github.com/PacktPublishing/-Learn-Artificial-Intelligence-with-TensorFlow.git (fetch)
-----------------
Advanced-Deep-Learning-with-Keras
origin https://github.com/PacktPublishing/Advanced-Deep-Learning-with-Keras.git (fetch)
-----------------
Deep-Learning-with-Keras
origin https://github.com/PacktPublishing/Deep-Learning-with-Keras.git (fetch)
-----------------
Distributed-Deep-Learning
@ghamarian
ghamarian / distributed tensorflow
Created March 10, 2019 19:23
distributed tensorflow
https://clusterone.com/tutorials/distributed-tensorflow
https://github.com/hn826/distributed-tensorflow/blob/master/distributed-deep-mnist-with-queue.py -> with queue