eqdisco.llm.build_prompt#

eqdisco.llm.build_prompt(feature_names, X, y, best=(), description=None, variable_descriptions=None, n=5)[source]#

Prompt that asks for n new candidate equations.

The prompt lists the variables (with their meaning if given), a summary and a few rows of the data, the best equations so far with their errors, and the rules of the answer format: one equation per line, constants written as c0, c1, ..., only the listed variables and elementary functions.