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
{ | |
"A": "Agilent Technologies, Inc.", | |
"AA": "Alcoa Corporation", | |
"AABB": "Asia Broadband, Inc.", | |
"AAC": "Ares Acquisition Corporation", | |
"AACAF": "AAC Technologies Holdings Inc.", | |
"AACAY": "AAC Technologies Holdings Inc.", | |
"AACG": "ATA Creativity Global", | |
"AACQ": "Origin Materials Inc", | |
"AAGFF": "Aftermath Silver Ltd.", |
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
{ | |
"1STCUS.BO": "The First Custodian Fund (I) Ltd.", | |
"20MICRONS.BO": "20 Microns Limited", | |
"20MICRONS.NS": "20 Microns Limited", | |
"21STCENMGM.BO": "Twentyfirst Century Management Services Limited", | |
"3IINFOTECH.BO": "3i Infotech Limited", | |
"3IINFOTECH.NS": "3i Infotech Limited", | |
"3MINDIA.BO": "3M India Limited", | |
"3MINDIA.NS": "3M India Limited", | |
"4THGEN.BO": "Fourth Generation Information Systems Limited", |
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
Input : Sage DiGraph object G | |
# Obtain Lower bound on the diameter and vertex m with low eccentricity | |
# Using 2Dsweep method | |
LB, s, m, d = 2Dsweep(G) | |
# Compute forward distances from m to all vertices in G | |
distances_1 = forward_BFS(G, m) or forward_Dijkstra(G, m) | |
# Compute backward distances from m to all vertices in G |
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
Input : Sage Graph object G | |
Initializing: ecc_lower_bound = [0 for i in range(vertices)], | |
ecc_upper_bound = [Infinity for i in range(vertices)], active = list(G) | |
# Algorithm | |
while active: | |
# Select vertex with minimum eccentricity in active, say u. | |
# Compute shortest distances from u to other vertices using BFS or Dijkstra | |
# Remove u from active vertices | |
distances = BFS(G, u) or Dijkstra(G, u) |
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
Input : Sage Graph object G | |
Initializing LB = 0, UB = INFINITY, ecc_lower_bound = [0 for i in range(vertices)], | |
ecc_upper_bound = [Infinity for i in range(vertices)], active = list(G) | |
# Algorithm | |
while LB < UB and active: | |
# Select vertex with maximum eccentricity upper bound in active, say u. | |
# Compute shortest distances from u to other vertices using BFS or Dijkstra | |
# Remove u from active vertices | |
distances = BFS(G, u) or Dijkstra(G, u) |
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
Input : Sage Graph object G | |
Initializing LB = 0, UB = INFINITY, ecc_lower_bound = [0 for i in range(vertices)] | |
# Algorithm | |
while LB < UB: | |
# Select vertex with minimum eccentricity lower bound, say u | |
# Compute shortest distances from u to other vertices using BFS or Dijkstra | |
distances = BFS(G, u) or Dijkstra(G, u) | |
UB = min(UB, eccentricity(u)) |
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
json_file = open('model_final.json', 'r') | |
loaded_model_json = json_file.read() | |
json_file.close() | |
loaded_model = model_from_json(loaded_model_json) | |
# load weights into new model | |
loaded_model.load_weights("model_final.h5") |
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
model_json = model.to_json() | |
with open("model_final.json", "w") as json_file: | |
json_file.write(model_json) | |
# serialize weights to HDF5 | |
model.save_weights("model_final.h5") |
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
model.fit(np.array(l), cat, epochs=10, batch_size=200,shuffle=True,verbose=1) |
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
model = Sequential() | |
model.add(Conv2D(30, (5, 5), input_shape=(1 , 28, 28), activation='relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Conv2D(15, (3, 3), activation='relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Dropout(0.2)) | |
model.add(Flatten()) | |
model.add(Dense(128, activation='relu')) | |
model.add(Dense(50, activation='relu')) | |
model.add(Dense(13, activation='softmax')) |
NewerOlder