braintools.optim.RegressionResult

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’s coef_, so that X @ coef is the prediction). In the unit of Y divided by the unit of X.

  • intercept (jax.Array or brainunit.Quantity) – Intercept, a scalar for a 1-D target and shape (n_targets,) for a 2-D target; zero when fit_intercept=False. In the unit of Y.

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

coef

Alias for field number 0

intercept

Alias for field number 1