MNLogit.make_fixed_coefs#

MNLogit.make_fixed_coefs(X_fixed, n_obs, n_alts)[source]#

Create alternative-varying coefficients for fixed (non-varying) covariates.

Parameters:
X_fixednp.ndarray or None

Fixed covariates matrix of shape (n_obs, n_fixed_covariates)

n_obsint

Number of observations

n_altsint

Number of alternatives

Returns:
FTensorVariable

Contribution to utility from fixed covariates, shape (n_obs, n_alts)