Merge branch 'machine_learning' of git.suuppl.dev:seppl/optical-regeneration into machine_learning
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:670487527d53db564874c6bdbe057fcca48e19963275af92690a9f22e22764b2
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b2cf718ae05cebb5bdcbe4bb9e7924fc0856c7f236ec79b3a4e0cc0f3e84bc72
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:edc005000a97d3eba4f573d35736c57350f17ff69017acf0c873413d2b824abe
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91e4b00d042393e967d783605da22ddea0846a4ff7328354033eb47fa96e6055
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9495d7059e92069b4182e1096b4690e5bc2122a4c7ac3cde84d3fd2e71537405
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db22dc55b809c359a432294308b3cd70c861ff7f67b1002cd296f2e05e58da53
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d78908aeda67365c2efee3efcbf71d05a91c2391b54893a4f6b060a7d2327714
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b75f51f0d35df1953c29874c2e3c111ccacdff624ce76aa13f24f37fa8f37997
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f7e942995d3ddf4009a93d3f4178457a2219822e8790e0cc73abd4cae0429333
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2befcef5adb9f8206292b443278d603f02575b8ffcd2e93f3d6d0db8eb009798
|
||||
size 616
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c96f91e93524cb49e8cad67da973989cd66bfb56d04c370c770c6ed2610b35f3
|
||||
size 618
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2ef989d392f318b37fecabeb7e5fa24db14c8867227862153736eeae908ef30f
|
||||
size 618
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:44ffed0e7387f70fc8d524d9d3d9587017860752b6199cc78545bcb6692e68af
|
||||
size 618
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:27191a866d99a3ab81959bc93f496e9d656b59e13ec77f2ff393079b468765ae
|
||||
size 618
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d3c61cf0f502298db563d97bd3aadd3694e5834434377ff28f553de0e78873ee
|
||||
size 618
|
||||
3
data/npys/10503c5808359136376a663b39fe9451.npy
Normal file
3
data/npys/10503c5808359136376a663b39fe9451.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bfe3303d51a74602dfeb8c185f1cd49f39811fbda5e72399f8e112bc7fc7d5bc
|
||||
size 134217856
|
||||
3
data/npys/1506dbe6b4855599647d54c9b83e4913.npy
Normal file
3
data/npys/1506dbe6b4855599647d54c9b83e4913.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:074c07bf5673060e5fe26162a01959030595671e10d607f80df7ff0e035c8f7b
|
||||
size 134217856
|
||||
3
data/npys/20959ec61eeecedc5baa28ca7a25c6a2.npy
Normal file
3
data/npys/20959ec61eeecedc5baa28ca7a25c6a2.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:05ca3cddb57c739ba57c6a5a871607715cb926d87d6ececbcb385c6f11ad5690
|
||||
size 134217856
|
||||
3
data/npys/290c74cedb7a35eef6221e6120ed6019.npy
Normal file
3
data/npys/290c74cedb7a35eef6221e6120ed6019.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:798a9cb026a88a336d612e28033354f00c412e74bea98672ae4d4dd276af97be
|
||||
size 134217856
|
||||
3
data/npys/2916537fb1df77ce203ce4eed3f7f8fd.npy
Normal file
3
data/npys/2916537fb1df77ce203ce4eed3f7f8fd.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:50477064b1f8f9d0629a0cc294cf4195ea4bffb0f853df1c9e1177723d0ac9a6
|
||||
size 134217856
|
||||
3
data/npys/39d009618e14a82fdcce8299fe8025c7.npy
Normal file
3
data/npys/39d009618e14a82fdcce8299fe8025c7.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bd3a9265ac0200b04a2f5f095edefbbf7df18436cf1066813c2eb93b234f5f3
|
||||
size 134217856
|
||||
3
data/npys/445b029eb26fba84333d7ed701ad637d.npy
Normal file
3
data/npys/445b029eb26fba84333d7ed701ad637d.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:420fffd570da7bce1912a75d0d3d1cafb6faa0029701b204d9054914fa5d499a
|
||||
size 134217856
|
||||
3
data/npys/68c8067f1d602a2afce20b08eeafa2f0.npy
Normal file
3
data/npys/68c8067f1d602a2afce20b08eeafa2f0.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1953d4308a837de3e976f9568cd571925e1c377746013220e263bbc1454b3be6
|
||||
size 134217856
|
||||
3
data/npys/7cb0340abb0154d0efafa5a8c7b70944.npy
Normal file
3
data/npys/7cb0340abb0154d0efafa5a8c7b70944.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d6c84d6be6411e0447e51d0090bce1465bcf609ae63a711ad88823f646809efc
|
||||
size 134217856
|
||||
3
data/npys/9850899a5a98e27a33d5dc6650816fea.npy
Normal file
3
data/npys/9850899a5a98e27a33d5dc6650816fea.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39975a057e7c41a50d99164212b9279d69ad872295b3195d74e34cb6695e6938
|
||||
size 134217856
|
||||
3
data/npys/b93fe9dee334240943c3a95f9e8bfa87.npy
Normal file
3
data/npys/b93fe9dee334240943c3a95f9e8bfa87.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:81aa3425ea73ef060976d4021908dd453a69ba8036de53cff93f52dcec05ba32
|
||||
size 134217856
|
||||
3
data/npys/ba169fa8dcd6439724407c1ad4f9f440.npy
Normal file
3
data/npys/ba169fa8dcd6439724407c1ad4f9f440.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7a4e1cf76fb2c54ad755745f70757cbebce0b093d33ba2ad437636497da4f68b
|
||||
size 134217856
|
||||
3
data/npys/df3f6e545a475e0e826db85505b1dfe1.npy
Normal file
3
data/npys/df3f6e545a475e0e826db85505b1dfe1.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b6311b36169637883c3b6723adac7626f68053d7bbeaee09336bf43b7754c662
|
||||
size 134217856
|
||||
3
data/npys/df441985bbf743f38bfe87b7abb0c474.npy
Normal file
3
data/npys/df441985bbf743f38bfe87b7abb0c474.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:00383256ee1eea343837cf72c2e7b923c540f8871d7b929230e23475f87d993c
|
||||
size 134217856
|
||||
3
data/npys/f084c8957ce4ed430fed2bd47d482df5.npy
Normal file
3
data/npys/f084c8957ce4ed430fed2bd47d482df5.npy
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:89c3c809fbc2e605869ce9347a10734330aaf3cb56f9bbd66e97295b9edeb642
|
||||
size 134217856
|
||||
@@ -89,6 +89,25 @@ def get_config(config_file=None):
|
||||
return conf
|
||||
|
||||
|
||||
class PDM_IM_IPM:
|
||||
def __init__(
|
||||
self,
|
||||
glova,
|
||||
mod_order=8,
|
||||
seed=None,
|
||||
):
|
||||
assert np.cbrt(mod_order) == int(np.cbrt(mod_order)) and mod_order > 1, "mod_order must be a cube of an integer greater than 1"
|
||||
self.glova = glova
|
||||
self.mod_order = mod_order
|
||||
self.symbols_per_dim = int(np.cbrt(mod_order))
|
||||
self.seed = seed
|
||||
|
||||
def generate_symbols(self, n):
|
||||
rs = np.random.RandomState(self.seed)
|
||||
symbols = rs.randint(0, self.mod_order, n)
|
||||
return symbols
|
||||
|
||||
|
||||
class pam_generator:
|
||||
def __init__(
|
||||
self,
|
||||
@@ -616,16 +635,21 @@ if __name__ == "__main__":
|
||||
add_pypho.show_log()
|
||||
config = get_config()
|
||||
|
||||
ranges = (10000,)
|
||||
# ranges = (1000,10000)
|
||||
# scales = tuple(range(1, 10))
|
||||
scales = (1,)
|
||||
lengths = [range_ * scale for range_ in ranges for scale in scales]
|
||||
# scales = (1,)
|
||||
# lengths = [range_ * scale for range_ in ranges for scale in scales]
|
||||
# lengths.append(10*max(ranges))
|
||||
lengths = [*lengths, *lengths]
|
||||
# lengths = [*lengths, *lengths]
|
||||
lengths = (
|
||||
# 8000, 9000,
|
||||
10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000,
|
||||
95000, 100000, 105000, 110000, 115000, 120000
|
||||
)
|
||||
lengths = sorted(lengths)
|
||||
|
||||
# length_loop(config, lengths, incremental=False, bireflength=None, save=True)
|
||||
length_loop(config, lengths, incremental=False, bireflength=1000, save=True)
|
||||
# birefringence is constant over coupling length -> several 100m -> bireflength=1000 (m)
|
||||
|
||||
single_run_with_plot(config, save=True)
|
||||
# single_run_with_plot(config, save=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user