| ParamNMoE-class {meteorits} | R Documentation |
A Reference Class which contains parameters of a NMoE model.
Description
ParamNMoE contains all the parameters of a NMoE model.
Fields
XNumeric vector of length n representing the covariates/inputs
x_{1},\dots,x_{n}.YNumeric vector of length n representing the observed response/output
y_{1},\dots,y_{n}.nNumeric. Length of the response/output vector
Y.KThe number of experts.
pThe order of the polynomial regression for the experts.
qThe order of the logistic regression for the gating network.
alphaParameters of the gating network.
\boldsymbol{\alpha} = (\boldsymbol{\alpha}_{1},\dots,\boldsymbol{\alpha}_{K-1})is a matrix of dimension(q + 1, K - 1), withqthe order of the logistic regression for the gating network.qis fixed to 1 by default.betaPolynomial regressions coefficients for each expert.
\boldsymbol{\beta} = (\boldsymbol{\beta}_{1},\dots,\boldsymbol{\beta}_{K})is a matrix of dimension(p + 1, K), withpthe order of the polynomial regression.pis fixed to 3 by default.sigma2The variances for the
Kmixture components (matrix of size(1, K)).dfThe degree of freedom of the NMoE model representing the complexity of the model.
Methods
initParam(segmental = FALSE)Method to initialize parameters
alpha,betaandsigma2.If
segmental = TRUEthenalpha,betaandsigma2are initialized by clustering the responseYuniformly intoKcontiguous segments. Otherwise,alpha,betaandsigma2are initialized by clustering randomly the responseYintoKsegments.