Is it possible to set a subset of entries of a VariableArray to observed values, and keep the rest random?
I tried a few ways (Subarrays and switching between an entirely observed and entirely random VariableArray), but none worked. I cannot use a standard C# array instead.
Thanks. I tried that as well, and compilation failed. The problem might be that I'm indexing the CPT of X ("array") with X:
X[D][N] = Variable.Discrete(cptX [D] [X[G[D]][N]] );
The error is: Could not find a match for X[index2][N] in GateBlock.