segreg.model.OLSRegressionEstimator.get_func_for_params¶
- OLSRegressionEstimator.get_func_for_params(params)[source]¶
 Returns the regression model function defined by the given parameters.
- Parameters
 params (array-like) – First element should be the
intercept, second element theslope. Any further elements inparamsare ignored.
More generally, if the model is of the form:
\[y = f(x; \theta) + \varepsilon\]where \(f(x)\) is a function of x depending on the parameter vector \(\theta\), then this returns the function
\[f(x; \theta)\]where \(\theta\) is passed to this function as
params.See also
- Returns
 func_for_params
- Return type
 function object