-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue with project()
when used with integrated model
#106
Comments
I also found the same error to occur when using quadratic terms in specified in: |
Hi, However, when making a future prediction you are only providing a set of predetermined variables (pred_future) which does not have the prediction made before. See
Same as above, you simply forgot in this case to also create derivates for the future variables? |
Hi Martin, Thanks for the quick response. For the first case, with the intergration through addition of covariates from a first model the add_predictors is missing the "poipo_X_simulated_mean" or "poipo_X_mean" objects. Although possible to extract from the trained model objects created, it would perhaps be more intuitive if this was automated for the user. In the second case, I have added your suggestion but it still does not work. The piping of add_predictors to the scenario objects do not work with the derivates in the example below with your solution. Thanks again!
|
Sure, but this might only work for your case, not for one where someone for example one fits 2 iterated models with different formula or predictors (like a sequenced climate and land-use model). In this case it would be better to pass the entire model over to support these predictions. See also issue #78 for the same point made. Pull requests welcome :)
You are right, this has worked in the past. I will take a look or maybe @mhesselbarth can?
|
I see, yes. So one would have to iteratively fit and predict. And then for scenarios follow the additions through with updated suitabilities from the first models. Thanks for time invested in explanations and updates. |
FYI I started to work on this on a development branch (https://github.com/iiasa/ibis.iSDM/tree/project). Please be aware that at this point, this is highly experimental! |
Made some fixes f79b88d in |
I can already smell the merge conflict 😄 |
Should be now included on the
|
I would like to use the project function with integrated SDMs, and found in my own code that I get the error:
Error: Model predictors are missing from the scenario predictor!
This error is also reproduced by adding a two types of data to the Biodiversity distribution model object. The model contains a new predictor when integrated that is not passed along to the scenario object, and then is not found in the
project()
call.Below is a modified version of your tutorial that reproduces the issue, but perhaps I am also inputing something wrong in the calls?
Many thanks for any assistance,
Conor
The text was updated successfully, but these errors were encountered: