<jupyter_start><jupyter_text>Minimum Descriptor LenghtUnique elements in a dataset<jupyter_code>import org.ruivieira.science.stats.MDL

val x = Seq(1, 1, 3, 3, 2, 4, 6, 6, 5)

val levels = MDL.levels(x)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.03879310344827586, 'mean_word_length': 6.516129032258065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '619777', 'license': 'Apache-2.0', 'n_tokens_mistral': 109, 'n_tokens_neox': 97, 'n_words': 22, 'path': 'notebooks/mdl.ipynb', 'repo_name': 'ruivieira/scala-science', 'size': '232'}