<commit_before># Fiddle

<!--#include file="google/index_header.md"-->

Fiddle is a Python-first configuration library particularly well suited to ML
applications. Fiddle enables deep configurability of parameters in a program,
while allowing configuration to be expressed in readable and maintainable Python
code.

<!--#include file="google/index_links.md"-->

## Getting started

This doc provides a short overview of Fiddle, including some motivations and
design goals. For a more in-depth and hands on introduction, we recommend
getting started with the [tutorial Colabs](colabs.md).

## Design goals

Fiddle attempts to satisfy the following design goals:

*   **Python first**: Configurations are expressed naturally in Python code, and
    represented as Python objects. A Python first approach allows configs to
    leverage Python's extensive existing tooling to simplify testing and
    maintenance.

*   **Readability & understandability**: Configurations can be written almost as
    if configurability wasn't a requirement, making the structure of a
    configuration easy to read. Fiddle additionally provides visualization and
    printing tools to make configurations easy to understand.

*   **Minimal boilerplate**: Configurations don't require extensive forwarding
    of parameters, or definitions and references spread across multiple files.
    Changing one hyperparameter anywhere in the program is just a single line of
    code.

*   **Isolation & modularity**: Fiddle allows your library code to remain
    unaware of what configuration system is being used, and doesn't require
    decoration or cooperation on the part of library code. Library code should<commit_msg>Update text in the main doc page.<commit_after># Fiddle

<!--#include file="google/index_header.md"-->

Fiddle is a Python-first configuration library particularly well suited to ML
applications. Fiddle enables deep configurability of parameters in a program,
while allowing configuration to be expressed in readable and maintainable Python
code.

<!--#include file="google/index_links.md"-->

## Getting started

This doc provides a short overview of Fiddle, including some motivations and
design goals. For a more in-depth and hands on introduction, we recommend
getting started with the [tutorial Colabs](colabs.md).

## Design goals

Fiddle attempts to satisfy the following design goals:

*   **Python first**: Configurations are expressed naturally in Python code, and
    represented as Python objects. A Python first approach allows configs to
    leverage Python's extensive existing tooling to simplify testing and
    maintenance.

*   **Readability & understandability**: Fiddle's APIs (powered by Python's
    flexibility) make the structure of a system's configuration easy to read.
    Additionally, Fiddle's printing and visualization tools provide multiple
    lenses to view a configuration to help understand both a given model run
    and how a codebase fits together.

*   **Minimal boilerplate**: Fiddle is designed to reduce boilerplate, to make
    both writing and reading configurations fast. Changing one hyperparameter
    anywhere in the program is just a single line of code. Configurations don't
    require extensive forwarding of parameters across multiple files.

*   **Isolation & modularity**: Fiddle allows your library code to remain
    unaware of what configuration system is being used, and doesn't require
    decoration or cooperation on the part of library code. Library code should
{'fraction_non_alphanumeric': 0.053109911956830444, 'fraction_numerical': 0.0, 'mean_word_length': 4.468944099378882, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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}}
{'dir': 'git-commits-cleaned', 'id': '1621303', 'n_tokens_mistral': 820, 'n_tokens_neox': 787, 'n_words': 444}