eqdisco.llm.TemplateProposer#
- class eqdisco.llm.TemplateProposer(templates, n=5, random_state=None)[source]#
Bases:
objectOffline proposer that answers with templates (no language model).
- Parameters:
- templatessequence
ofstr Candidate equations in the answer format, e.g.
"c0*x0^c1".- n
int, default=5 Number of templates per answer (drawn without replacement).
- random_state
int,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.
- templatessequence