feat: get 67% correctness
This commit is contained in:
parent
0c1737647b
commit
a27e7b4adb
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -31,7 +31,7 @@ def main():
|
||||||
if len(msg) != 40:
|
if len(msg) != 40:
|
||||||
raise ValueError("Message must be exactly 40 characters.")
|
raise ValueError("Message must be exactly 40 characters.")
|
||||||
num_blocks = len(msg)
|
num_blocks = len(msg)
|
||||||
C = make_codebook(r=5, num_blocks=num_blocks, margin=0.95)
|
C = make_codebook(r=6, num_blocks=num_blocks)
|
||||||
x = encode_message(msg, C)
|
x = encode_message(msg, C)
|
||||||
print(f"→ Total samples = {x.size}, total energy = {np.sum(x*x):.1f}")
|
print(f"→ Total samples = {x.size}, total energy = {np.sum(x*x):.1f}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue