Skip to content
Extraits de code Groupes Projets
Valider c91368b9 rédigé par Anzo's avatar Anzo
Parcourir les fichiers

fixed

parent 4adafc75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -26,7 +26,7 @@ def MPIBatchRandomNormalized(generator,elmPerNode): ...@@ -26,7 +26,7 @@ def MPIBatchRandomNormalized(generator,elmPerNode):
data = np.array() data = np.array()
for l in gathered: for l in gathered:
data += np.array(l) data += np.array(l)
print("Saving to "+name+".npz ...") print("Saving to "+name+".npy ...")
with open(name+".npy", "wb") as f: with open(name+".npy", "wb") as f:
np.save(f, data) np.save(f, data)
...@@ -36,5 +36,5 @@ if __name__ == "__main__": ...@@ -36,5 +36,5 @@ if __name__ == "__main__":
, LavauxJenssens(), Haynes(), MitchelMoore() , LavauxJenssens(), Haynes(), MitchelMoore()
, MersenneTwister(), BlumBlumShub()] , MersenneTwister(), BlumBlumShub()]
for e in generators for e in generators:
MPIBatchRandomNormalized(e,N) MPIBatchRandomNormalized(e,N)
Aucun aperçu pour ce type de fichier
Fichier ajouté
...@@ -58,7 +58,8 @@ def compare(N, RESOLUTION, seed, data): ...@@ -58,7 +58,8 @@ def compare(N, RESOLUTION, seed, data):
title_name="N = "+str(N)+"\n seed = "+str(seed) title_name="N = "+str(N)+"\n seed = "+str(seed)
if N == 0: if N == 0:
title_name = "seed = "+str(seed) title_name = "seed = "+str(seed)
graph=sns.kdeplot(data,legend=True,bw_adjust=BW,common_norm=False) for e in data:
graph=sns.kdeplot(data[e],legend=True,bw_adjust=BW,common_norm=False)
graph.set(title=title_name) graph.set(title=title_name)
plt.xlabel(xlabel) plt.xlabel(xlabel)
plt.ylabel(ylabel) plt.ylabel(ylabel)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter