maxtext.experimental.agent.ckpt_conversion_agent.evaluation module

maxtext.experimental.agent.ckpt_conversion_agent.evaluation module#

An evaluation gemini call to assess the generated-code vs. human-written code

maxtext.experimental.agent.ckpt_conversion_agent.evaluation.compressed_size(data, method='gzip')[source]#

Compress data using the specified method and return the length of the compressed bytes. method: ‘gzip’ | ‘bz2’ | ‘lzma’

Parameters:
  • data (bytes)

  • method (str)

Return type:

int

maxtext.experimental.agent.ckpt_conversion_agent.evaluation.estimate_kolmogorov(filepath)[source]#

Read the file at filepath and return a dict of compression-based complexity estimates.

Parameters:

filepath (str)

Return type:

dict

maxtext.experimental.agent.ckpt_conversion_agent.evaluation.main()[source]#