Cpp function: Predict probability of mixture distribution

predProb(X, Z, y, W, V)

Arguments

X

a data matrix of input in experts network.

Z

a data matrix of input in gating network.

y

a vector of response.

W

parameters in experts network.

V

parameters in gating network.

Value

A matrix of predicted probability with predProb = pi * (1/(1 + exp(-X*W))), pi = exp(Z * V_i)/sum(Z * V)