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_fixed
np.ndarrayorNone Fixed covariates matrix of shape (n_obs, n_fixed_covariates)
- n_obs
int Number of observations
- n_alts
int Number of alternatives
- X_fixed
- Returns:
- F
TensorVariable Contribution to utility from fixed covariates, shape (n_obs, n_alts)
- F