Skip to content
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

Problems with startpoint method #870

Closed
shoepfl opened this issue May 19, 2022 · 2 comments
Closed

Problems with startpoint method #870

shoepfl opened this issue May 19, 2022 · 2 comments

Comments

@shoepfl
Copy link
Contributor

shoepfl commented May 19, 2022

I have a problem with optimize.minimize:

optimizer = optimize.ScipyDifferentialEvolutionOptimizer(options = {'strategy':'best1bin', 'maxiter':8000 ,'mutation':(0.5, 1), 'recombination':0.9, 'popsize':100, 'init':'latinhypercube', 'polish':True, 'workers' : 8 })
n_starts = 1
result = optimize.minimize(petab_problem, optimizer=optimizer, n_starts=n_starts)

Results in : AttributeError: 'Problem' object has no attribute 'x_guesses'

I thought it may be that i do not need startpoints as they are created in scypy but also startpoint_method = False in optimize.minimize rises an error: AttributeError: 'Problem' object has no attribute 'dim'

This problem probably occoured through updating my dependencies as this code worked before.
Can you tell me what changed and how to fix this?

Thanks! and Best,
Sebastian

@dilpath
Copy link
Member

dilpath commented May 19, 2022

I guess that petab_problem should be switched with a pypesto.Problem object in your optimize.minimize call.

@shoepfl
Copy link
Contributor Author

shoepfl commented May 19, 2022

Ah thank you very much for the fast answer @dilpath !

Of course that was my mistake - sometimes i get confused with the petab and pypesto problems.

@shoepfl shoepfl closed this as completed May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants