-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report_type keyword for Profile Likelihood #10
Comments
report_type
keyword for Profile Likelihood
report_type
keyword for Profile Likelihood
Hey! It’s been some time since I’ve worked on this project but if you post some code examples and describe what you’re trying to do I may be able to help. |
Basically, I am following the tutorial to obtain the profile likelihoods here. The scans over the parameters work nicely, but the reports do not contain the values of the parameter that was scanned over, but only the values for the remaining optimized parameters. So I wondered if there's a way to get the "right" reports. Example: My variables are from pycotools3 import tasks, viz, model
mod = model.loada(antimony_str, 'test.cps')
with tasks.ParameterEstimation.Context(
mod, experiment_filename,
context='pl', parameters='a'
) as context:
context.set('method', 'hooke_jeeves')
context.set('pe_number', 5) # number of steps in each profile likelihood
context.set('run_mode', 'parallel')
context.set('separator', ',')
context.set('number_of_iterations', 200)
#context.set('report', 'profile_likelihood')
context.set('prefix', '_')
config = context.get_config()
pe = tasks.ParameterEstimation(config)
p = viz.Parse(pe)
print(p.data['_k_neo']) Example output for
|
Ah I see, if I recall correctly, the issue with storing the actual values of the scanned parameter is that they are calculated within COPASI directly, and the communication system between pycotools and COPASI (i.e. the copasiML) doesn't allow access to these values. Therefore (as you'll see in viz.PlotProfileLikelihood) when plotting these data I ended up recalculating them:
If you wanted to do stuff with the data, it might be an idea to either copy and paste the source code for viz.PlotProfileLikelihood and use this as a starting point or deriving a new class from it. I.e.
Personally, I'd opt for the former. Hope this helps. Ciaran |
Hello!
I performed the calculations for obtaining the profile likelihood as in the docs. Parsing the output gives the report for
multi_parameter_estimation
. I looked into the code, found thereport_type
keyword, but i couldn't figure out where to use it during the Parameter Estimation configuration.The text was updated successfully, but these errors were encountered: