Encode/decode codec for weight matrices (genes).
Part of the Kapildhinwa2010-dev Toolkit.
encode()/decode()quantized codec (1-16 bits)GeneRecordserializes to plain dictscodec_stats()reports ratio and max error
pip install -r requirements.txtfrom dna_research import encode, decode, codec_stats
record = encode(W, bits=8)
print(codec_stats(W, bits=8)['ratio'])pytest tests/ -vMIT — see LICENSE.