필터 지우기
필터 지우기

sbiopredictionci return empty result

조회 수: 1 (최근 30일)
Jesse Chao
Jesse Chao 2022년 10월 19일
댓글: Jeremy Huard 2022년 11월 22일
Hello team,
I was trying to comput the prediction confident interval for my parameter estimation results.
I first used sbioparameterci to check with my estimated parameters.
The estimattions are not perfect, but all of the status for my estimated parameters were either estimatable or constrained.
Thus, I further use sbiopredictionci to get the prediction confident interval.
By excuting the following code for defults setting, I was able to get prediction CI, but the results were not ideal.
ciPred = sbiopredictionci(fitWeightFunction);
Thus, I tried to use bootstrap method with following code to see if I could get better results.
ciPred = sbiopredictionci(fitWeightFunction, 'Alpha', 0.1, 'Type', 'bootstrap', 'NumSamples', 1000, 'UseParallel', true,'Display','final')
However, the ciPred I got is an empty output '0x0 PredictionConfidenceInterval'
Please find the OptimResults of my fitWeightFunction data in the attachment file.
Thank you very much.
Best,
Jesse

채택된 답변

Jeremy Huard
Jeremy Huard 2022년 10월 19일
편집: Jeremy Huard 2022년 10월 19일
Hi Jesse,
it looks like your model uses an external function calculate_P_A2B_factor. You will need to pass this function to the parallel pool you are using.
So, if you already have an open parallel pool, you can enter the following command before calling sbiopredictionci:
addAttachedFiles(gcp,"calculate_P_A2B_factor.m")
If your parallel pool is not open yet, you can open it and attach the file with this command:
c = parcluster('local');
parpool('local',c.NumWorkers,AttachedFiles="calculate_P_A2B_factor.m");
Best regards,
Jérémy
  댓글 수: 7
Jesse Chao
Jesse Chao 2022년 11월 21일
Hello Jérémy,
Indeed, I did double chack on the optimoptions('particleswarm'). It is a bug in my script.
However, after I corrected this mistake with the correct lsqnonlin, the problem remained.
I have attached the corrected version of the fitWeightFunction considering the optimoption error with the name of fitComb in the attachment file in this post.
Hope you could provide me with some insights. Thank you very much.
Best,
Jesse
Jeremy Huard
Jeremy Huard 2022년 11월 22일
Hi Jesse,
could you please send the calculate_P_A2B_factor.m file as well as the script you use to call sbiopredictionci?
Thanks,
Jérémy

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Import Data에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by