braintools.optim.RegressionResult#
- class braintools.optim.RegressionResult(coef, intercept)[source]#
Fitted coefficients of a linear regression
Y ~ X @ coef + intercept.- Variables:
coef (jax.Array or brainunit.Quantity) – Coefficients, shape
(n_features,)for a 1-D target and(n_features, n_targets)for a 2-D target (the transpose of scikit-learn’scoef_, so thatX @ coefis the prediction). In the unit ofYdivided by the unit ofX.intercept (jax.Array or brainunit.Quantity) – Intercept, a scalar for a 1-D target and shape
(n_targets,)for a 2-D target; zero whenfit_intercept=False. In the unit ofY.
- __init__()#
Methods
__init__()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
coefAlias for field number 0
interceptAlias for field number 1