John Guiver replied on 10-05-2009 4:01 AM
Hi Freddy
Assuming you split the data into NumChunks chunks, the code would look something like this:
using
DirichletArray=DistributionRefArray<Dirichlet,
Vector>;
DirichletArray phiPrior =
new DirichletArray(new
Dirichlet(beta));
Range TopicsNum
= new Range(K);
SharedVariableArray<Vector> sharedPhi =
SharedVariable<Vector>.Random(TopicsNum, phiPrior);
Model = new Model(NumChunks);
VariableArray<Vector> phi = sharedPhi .GetCopyFor(Model)
Then use phi as before in your model. You will have to explicitly do several passes, looping over the chunks as shown in the documented scalar example.
John