1. A computer apparatus comprising: a transceiver communication module comprising first computer program instructions to transmit or receive a compressed data over a communication link; and a compression configuration module coupled with the transceiver communication module, the compression configuration module comprising second computer program instructions to: identify one or more compression/decompression parameters, a length of time and energy of compression/decompression associated with compression of a data to form the compressed data or decompression of the compressed data to form the data, and a transmission/reception energy associated with transmission or reception of the compressed data over the communication link; predict with a trained machine learning algorithm a predicted energy consumption based on an energy consumption trade-off among the identified one or more compression/decompression parameters, the length of time and energy of compression/decompression, and the transmission/reception energy, for each of a plurality of compression configurations; identify, based on the predicted energy consumption, a compression configuration from the plurality of compression configurations; obtain an energy and time outcome of the compression configuration; and wherein a difference between the predicted energy consumption and the obtained energy and time outcome of the identified compression configuration is used to retrain the trained machine learning algorithm.