eqdisco.llm.TemplateProposer#

class eqdisco.llm.TemplateProposer(templates, n=5, random_state=None)[source]#

Bases: object

Offline proposer that answers with templates (no language model).

Parameters:
templatessequence of str

Candidate equations in the answer format, e.g. "c0*x0^c1".

nint, default=5

Number of templates per answer (drawn without replacement).

random_stateint, optional
The prompt is ignored except for the variable names, which replace ``x0, x1, …``
in the templates. Useful for tests and as a baseline of domain knowledge.