ParamSNMoE-class {meteorits} | R Documentation |
A Reference Class which contains parameters of a SNMoE model.
Description
ParamSNMoE contains all the parameters of a SNMoE model.
Fields
X
Numeric vector of length n representing the covariates/inputs
.
Y
Numeric vector of length n representing the observed response/output
.
n
Numeric. Length of the response/output vector
Y
.K
The number of experts.
p
The order of the polynomial regression for the experts.
q
The order of the logistic regression for the gating network.
alpha
Parameters of the gating network.
is a matrix of dimension
, with
q
the order of the logistic regression for the gating network.q
is fixed to 1 by default.beta
Polynomial regressions coefficients for each expert.
is a matrix of dimension
, with
p
the order of the polynomial regression.p
is fixed to 3 by default.sigma2
The variances for the
K
mixture components (matrix of size).
lambda
The skewness parameters for each experts (matrix of size
).
delta
delta is equal to
.
df
The degree of freedom of the SNMoE model representing the complexity of the model.
Methods
initParam(segmental = FALSE)
Method to initialize parameters
alpha
,beta
andsigma2
.If
segmental = TRUE
thenalpha
,beta
andsigma2
are initialized by clustering the responseY
uniformly intoK
contiguous segments. Otherwise,alpha
,beta
andsigma2
are initialized by clustering randomly the responseY
intoK
segments.MStep(statSNMoE, verbose_IRLS)
Method which implements the M-step of the EM algorithm to learn the parameters of the SNMoE model based on statistics provided by the object
statSNMoE
of class StatSNMoE (which contains the E-step).