generate_latex_equation
generate_latex_equation(model, feature_names, outcome_name='y')Extracts a LaTeX formatted equation from a fitted Polynomial Pipeline.
Coefficients are expressed in the original input units (see polynomial_raw_coefficients), so the equation reproduces model.predict up to the 4 significant figures shown.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| model | Any | A fitted mean model. Only Polynomial models (model_type_ == 'Polynomial') produce an equation. |
required |
| feature_names | list | Names of the input variables, in column order. | required |
| outcome_name | str | Name of the response for the left-hand side. Defaults to "y". |
'y' |
Returns
| Name | Type | Description |
|---|---|---|
| str | str | The LaTeX equation, or an explanatory message for Kriging models. |