Fits linear regression models with optional regularization. Supports OLS for interpretability, Lasso for feature selection, and ElasticNet for balanced regularization. Returns coefficients, R-squared, and optional predictions. [Tier: ENTERPRISE, Credits: 10]
Documentation Index
Fetch the complete documentation index at: https://docs.fincept.in/llms.txt
Use this file to discover all available pages before exploring further.
API key for authentication. Get your key at https://api.fincept.in/auth/register
Feature matrix
[[1.2, 0.5], [2.1, 1.3], [0.8, 0.9]]
Continuous target values (e.g., LGD, house prices)
[150000, 235000, 185000]
Regression method
ols, lasso, elastic_net "lasso"
Regularization strength (for Lasso/ElasticNet)
0.1
L1/L2 mix for ElasticNet (0=Ridge, 1=Lasso)
0.5
Optional feature matrix for prediction
[[1.5, 0.7]]