Update.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 23 Feb 2020 12:40:55 +0000 (13:40 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 23 Feb 2020 12:40:55 +0000 (13:40 +0100)
miniflow.py
miniflow_dist.pdf [new file with mode: 0644]
miniflow_flow.pdf [new file with mode: 0644]
miniflow_mapping.pdf [new file with mode: 0644]
miniflow_target_dist.pdf [new file with mode: 0644]

index e4f5945..b5c8cb4 100755 (executable)
@@ -202,26 +202,25 @@ fig.savefig(filename, bbox_inches='tight')
 
 ######################################################################
 
-z = torch.empty(200).normal_()
-z = z[(z > -3) * (z < 3)]
+z = torch.empty(200).normal_()
+z = z[(z > -3) * (z < 3)]
 
-x = model.invert(z)
+x = model.invert(z)
 
-fig = plt.figure()
-ax = fig.add_subplot(1, 1, 1)
-ax.set_xlim(-4.5, 4.5)
-ax.set_ylim(-0.1, 1.1)
-lines = list(([(x_in.item(), 0), (x_out.item(), 0.5)]) for (x_in, x_out) in zip(x, z))
-lc = mc.LineCollection(lines, color = 'tab:red', linewidth = 0.1)
-ax.add_collection(lc)
-# ax.axis('off')
-
-# ax.fill_between(input,  0.52, mu_N * 0.2 + 0.52, color = green_dist)
-# ax.fill_between(input, -0.30, mu   * 0.2 - 0.30, color = green_dist)
+# fig = plt.figure()
+# ax = fig.add_subplot(1, 1, 1)
+# ax.set_xlim(-4.5, 4.5)
+# ax.set_ylim(-0.1, 1.1)
+# lines = list(([(x_in.item(), 0), (x_out.item(), 0.5)]) for (x_in, x_out) in zip(x, z))
+# lc = mc.LineCollection(lines, color = 'tab:red', linewidth = 0.1)
+# ax.add_collection(lc)
+# # ax.axis('off')
 
-filename = 'miniflow_synth.pdf'
-print(f'Saving {filename}')
-fig.savefig(filename, bbox_inches='tight')
+# # ax.fill_between(input,  0.52, mu_N * 0.2 + 0.52, color = green_dist)
+# # ax.fill_between(input, -0.30, mu   * 0.2 - 0.30, color = green_dist)
 
-# plt.show()
+# filename = 'miniflow_synth.pdf'
+# print(f'Saving {filename}')
+# fig.savefig(filename, bbox_inches='tight')
 
+# # plt.show()
diff --git a/miniflow_dist.pdf b/miniflow_dist.pdf
new file mode 100644 (file)
index 0000000..928d8da
Binary files /dev/null and b/miniflow_dist.pdf differ
diff --git a/miniflow_flow.pdf b/miniflow_flow.pdf
new file mode 100644 (file)
index 0000000..1749636
Binary files /dev/null and b/miniflow_flow.pdf differ
diff --git a/miniflow_mapping.pdf b/miniflow_mapping.pdf
new file mode 100644 (file)
index 0000000..82b1384
Binary files /dev/null and b/miniflow_mapping.pdf differ
diff --git a/miniflow_target_dist.pdf b/miniflow_target_dist.pdf
new file mode 100644 (file)
index 0000000..0bc0367
Binary files /dev/null and b/miniflow_target_dist.pdf differ