yoniLc / ECCT

Error Correction Code Transformer
MIT License
29 stars 19 forks source link

How to use this code on the BCH code? #1

Closed raeyyyyy closed 12 months ago

raeyyyyy commented 1 year ago

Hi, How do I use this code to train a network model to realize BCH encode and decode? How should I modify the code? Thanks

yoniLc commented 1 year ago

Hi, after you provide the parity check matrix in the Codes_DB folder (or use one of the codes already there), just train with the right flags, e.g., using one of the codes currently there run with the following flags --code_type=BCH--code_n=63 --code_k=36.