-
Notifications
You must be signed in to change notification settings - Fork 25
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
kuenm_cal_swd does not produce omission rate statistics #17
Comments
Can you tell me if the data (complete set, training, and testing sets, as well as background folder) for running the analysis were prepared using the function |
No, I prepared the SWD files myself (I used my own background points and test dataset which is, to my knowledge, currently impossible with |
OK, that is the problem. You are right, until now you cannot use your own set of background points. The problem with preparing your occurrences yourself is that one required analysis is missing. When you prepare the data with The other thing you can do is modify the coordinates of your occurrences yourself, so they coincide with the closest background point. I haven't done that before but it should not be that hard if you create an algorithm to measure geographic distances from each point to all your background and then select the closest background point (long and lat) for each of your records and replace them. Sorry I cannot help more now. Best, |
Isn't simple addition of ocurrences points to background the best solution? I think I remember there was an always-ticked option in Java Maxent that sounded like that. |
Simple things are not always better. Adding samples to the background will be problematic because you will have duplicate information in terms of environmental conditions but not in terms of geographic coordinates. I think that introduces bias to the background, you can try, but I am not totally sure how maxent will deal with that. |
The following three lines of code did the job for me. Adding samples' locations to the background influenced the selection of optimal model parameters, so I am finally disenchanted with this option. Assuming
I finally obtained final models with (hopefully) a reasonable parametrization. Thank you for this package! |
Glad you found a workaround. I am leaving this issue open so I remember to work on this part later on. |
Hi Marlon, it's me once again. I found sort of a justification for adding the samples points to background. Considering the Appendix 1b in Guillera-Arroita et al., 2014, I think Maxent is intended to work OK that way. (I did not look into the formulas, hope these guys know what they say.) Another concern is that, when it comes to the continent scale (with the same 10000 background points) and/or when the grid cells are small, the slight distortion of the presence locations may have a notable effect on the model. I tried both 'distorting' and 'adding' the presence locations and finally got better models for Eurasia with the latter approach (at least, they are closer to the known species ranges). |
Happy to hear that your results got better. You are right about the number of background points and I am glad you played with that and experienced the effects on models. I have to make significant improvements in kuenm regarding SWD format, probably this month. I will add a comment on all relevant issues to let you guys known when that happens. |
Hi Marlon,
The calibration_results.csv file looks like this:
Do you have any idea what could be happening? |
I tried running the model after using prepare_swd(), and everything works. So there must be something missing from my "hand made" swd files. I will dig into the prepware_swd file to understand what it is doing. |
Hi @jmburgos, |
Thanks Marlon, I am looking forward for the updated kuenm. I think it is important to allow users to provide their own background points, for example to account for sampling bias in the occurence data. |
Hello jmburgos, Did you find any solution for AICc problem?? |
No Arif, I have not found a solution. I get the same results as you. If I add occurrences to background points I get AICc but no omission rates and the other parameters. Hopefully Marlon will have some way around this. |
Thanks Julian, |
Hi, just a minor note, also on the kuenm_cal_swd function. I found this thread when I was trying to find out why in one case the function returned "incorrect" npar and aicc values for me and resultingly selected unsuitable models. I now understand that this was due to the fact that I had run the function a second time with exactly the same settings after modifying the input data (one of my predictor variables had faulty values which I corrected for the second run). My mistake was that I used "kept=TRUE" and did not delete the models from the first run before starting the second run as I knew they would be overwritten. However, I didn't consider that the function runs the maxent batch and the R based evaluation in parallel, the latter being quicker. Since all of my model names remained the same, the evaluation process was not waiting for the new models to be created, but simply evaluated a mix of the old ones and the new ones that were already created, leading to my confusing results. This may not happen to many users, and of course, the function already gives a warning when the directories already exist, but I wonder if it would be possible to make a modification along the lines of either
Anyway, I thought I'd document it in case someone ever runs into the same issue. @SDMENM I am not sure this will solve it for you and realise it is a while ago since you asked, however, I remember also having trouble with this before, and for me the args parameter works when I store it as a character value first, i.e. |
Hola buen día, disculpen me podría ayudar tengo este problema con el paquete kuenm me indica lo siguiente: como lo soluciono |
Jocelyn, eso es simplemente un warning avisando que kuenm está usando una función obsoleta, mutate_(). Eso es algo que Marlon debería eventualmente corregir pero no debería afectar tu uso del paquete. |
Hola muchas gracias, por tu respuesta
Lo que sucede es que no me genera la creación de modelo final, no me sale
otro error.
Mi pregunta es como le hago para corregir eso y poder seguir con mi
trabajo.
El mié, 21 de jun de 2023 01:12, Julian M. Burgos ***@***.***>
escribió:
… Jocelyn, eso es simplemente un warning avisando que kuenm está usando una
función obsoleta, mutate_(). Eso es algo que Marlon debería eventualmente
corregir pero no debería afectar tu uso del paquete.
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAXEVSNODJXGLV2WT4RMWH3XMKNG5ANCNFSM436XLCBA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
No sabría decite, pero el problema no es el warning sino alguna otra cosa.
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Botnsjávarsviðs / Demersal Division
Fornubúðir 5, IS-220 Hafnarfjörður, Iceland
http://www.hafogvatn.is/
Sími/Telephone : +354-5752037
Netfang/Email: ***@***.***
________________________________________
From: jocelynvelazquezmaira ***@***.***>
Sent: Wednesday, June 21, 2023 4:10 PM
To: marlonecobos/kuenm
Cc: Julian Burgos - HAFRO; Mention
Subject: Re: [marlonecobos/kuenm] kuenm_cal_swd does not produce omission rate statistics (#17)
Hola muchas gracias, por tu respuesta
Lo que sucede es que no me genera la creación de modelo final, no me sale
otro error.
Mi pregunta es como le hago para corregir eso y poder seguir con mi
trabajo.
El mié, 21 de jun de 2023 01:12, Julian M. Burgos ***@***.***>
escribió:
Jocelyn, eso es simplemente un warning avisando que kuenm está usando una
función obsoleta, mutate_(). Eso es algo que Marlon debería eventualmente
corregir pero no debería afectar tu uso del paquete.
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAXEVSNODJXGLV2WT4RMWH3XMKNG5ANCNFSM436XLCBA>
.
You are receiving this because you commented.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub<#17 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACBRSKATVNYTITYYUXZHH6DXMMMGRANCNFSM436XLCBA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hola, buena noche Disculpa quería ver si me podian ayudar Al utilizar kuenm_ceval me aparece el siguiente mensaje: 'parallel' is a deprecated argument, aún cuando no incluí parallel dentro de los argumentos y no me deja avanzar de ahí |
Hi, I am once again struggling to make friends with kuenm_cal_swd. This time I could not retrieve any omission rate statistics with it.
My SWD files look like this:
Occurrence dataset (all of them look like this):
Bias files (two of them in the folder):
My command is the following:
kuenm_cal_swd('Vaccinium_myrtillus_joint_swd.csv', 'Vaccinium_myrtillus_train_swd.csv', 'Vaccinium_myrtillus_test_swd.csv', './background', 'kuenm_cal_swd.sh', 'vm_mod', c(seq(0.1, 1, 0.1), seq(2, 6, 1), 8, 10), c('lqpth', 'lq'), 2000, maxent.path = '.', out.dir.eval = 'vm_mod/eval')
And this is the output:
calibration_results.csv looks like this:
Am I doing something wrong? Why does the output lack some statistics? (By the way, is it really possible that two dissimilar background samples result in identical AIC values?) These results differ so much from what I have got for similar data with kuenm_cal...
The text was updated successfully, but these errors were encountered: