I’m trying to apply UQ Lab Bayesian inference to my problem.
Summary of UQ setting for my problem is like below:
- Input : velocity (1 X 56)
- Parameter: 3
- Measurement data : pressure drop (1 X 56)
- Model output : caculated pressure drop(# of chain X 56)
- MCMC model setting - solver : MCMC, sampler: AIES, steps: 500, nchain : 100
There was a warning related to likelihood function :
Unable to perform assignment because the size of the left side is 100-by-56 and the size of the right side is 1-by-56.
Error in uq_inversion_likelihood (line 64)
** modelRunsCurr(:,ModelIDCurr == jj) = forwardModel(jj).evaluation(:,OutputIDCurrModel);**
Error in uq_initialize_uq_inversion>@(x)uq_inversion_likelihood(x,Internal,‘LogLikelihood’) (line 497)
** Internal.LogLikelihood = @(x) uq_inversion_likelihood(x,Internal,‘LogLikelihood’);**
Error in uq_AIES (line 67)
** [logLKLHD_Curr, forwardModel_Curr] = LogLikelihood(reshape(Seed,nDim,nChains).’);**
Error in uq_inversion (line 91)
** Results.LogLikeliEval] = uq_AIES(…**
Error in uq_initialize_uq_inversion (line 752)
uq_runAnalysis(CurrentAnalysis);
Error in UQ_1209 (line 126)
myBayesianAnalysisUnknownDisc = uq_createAnalysis(BayesOpts);
I tried this with one parameter ( the other setting was all same). No warnings popped up and had good estimates.
But, after I the number of parameters, this warning came out and couldn’t fix it. Is there any points I need to correct?