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

Can't run throught the getting started example #291

Open
qiyang77 opened this issue Sep 1, 2022 · 3 comments
Open

Can't run throught the getting started example #291

qiyang77 opened this issue Sep 1, 2022 · 3 comments

Comments

@qiyang77
Copy link

qiyang77 commented Sep 1, 2022

https://spotpy.readthedocs.io/en/latest/getting_started/
Seems like the type of the "results" variable is inconsistent between
results=sampler.getdata()
and
spotpy.analyser.plot_parameterInteraction(results)

@thouska
Copy link
Owner

thouska commented Sep 8, 2022

Hi @qiyang77,
thank you for your message. I just tested the getting_started.py script and did not receive any errors. Could you explain what you mean with "variable is inconsistent"? The results are typically numpy.ndarray within spotpy which can be read/used/plotted in the spotpy.analyser.

@qiyang77
Copy link
Author

Oh I see. It is because the "pip install spotpy" will not install the last version so the tutorial can't be run through. After I installed spotpy manually everything is fine. One issue is that my model is a pytorch-based neural network, and I used the SCE-UA to calibrate seven model parameters, however, the iteration process is very slow. Can we accelerate the neural network inference via batch mode?

@thouska
Copy link
Owner

thouska commented Sep 27, 2022

Certainly possible. However, there is currently no development on spotpy in that direction. However, feel free to support us with a pull request.
Although I am not sure what you mean with "very slow". Usually, spotpy consumes very little time to produce repetitions, the bottleneck is in the majority of the cases the applied model.

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