Closed gsatta closed 3 months ago
Hello Gabriele,
Thank you for posting with a lot of informations :pray:
Could you send all the information / error / warning messages you get when running the BIOMOD_Modeling function please ? :eyes:
Also, the output of print(myBiomodData)
and summary(myBiomodData)
might help !
Maya
PS : cool to see that you are trying and using multiple PA datasets !
Hi Maya Thank you so much !
Here are the requested additions:
Information about error / warning messages
Errore in { :
task 68 failed - "task 3 failed - "'threshold' can not be negative""
In aggiunta: Ci sono 50 o più avvertimenti (utilizza warnings() per visualizzare i primi 50)
> warnings()
Messaggi di avvertimento:
1: In .bm_ModelingOptions.check.args(data.type = data.type, ... :
Only one GAM model can be activated. 'GAM.mgcv.gam' has been set (other available : 'GAM.gam.gam' or 'GAM.mgcv.bam')
2: executing %dopar% sequentially: no parallel backend registered
3: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
4: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
5: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
6: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
7: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
8: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
9: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
10: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
11: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
12: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
13: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
14: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
15: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
16: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
17: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
18: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
19: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
20: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
21: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
22: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
23: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
24: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
25: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
26: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
27: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
28: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
29: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
30: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
31: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
32: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
33: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
34: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
35: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
36: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
37: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
38: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
39: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
40: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
41: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
42: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
43: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
44: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
45: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
46: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
47: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
48: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
49: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
50: In cor(x = ref, y = shuffled.pred, use = "pairwise.complete.obs", ... :
la deviazione standard è zero
Information about myBiomodData
> print(myBiomodData)
-=-=-=-=-=-= BIOMOD.formated.data -=-=-=-=-=-=
dir.name =
D:/DOTTORATO/PROGETTI/PAULLILATINO/PAPER_2/SDM_R_PROJECT/SDM_biomod2_50m
sp.name = Phytophthora
31 presences, 0 true absences and 1126
undefined points in dataset
8 explanatory variables
green BIO03
Min. :0.07933 Min. :36.80
1st Qu.:0.09700 1st Qu.:37.89
Median :0.10352 Median :38.32
Mean :0.10638 Mean :38.47
3rd Qu.:0.11286 3rd Qu.:38.79
Max. :0.18495 Max. :41.85
BIO06 wo
Min. :3.838 Min. :-9999.00
1st Qu.:4.968 1st Qu.: 1.00
Median :5.184 Median : 1.00
Mean :5.110 Mean : -85.57
3rd Qu.:5.285 3rd Qu.: 1.00
Max. :5.752 Max. : 1.00
rivers fla
Min. : 0.7018 Min. : 99.6
1st Qu.: 116.3116 1st Qu.: 1062.1
Median : 244.6965 Median : 1932.6
Mean : 310.2860 Mean : 3399.7
3rd Qu.: 432.4567 3rd Qu.: 3821.2
Max. :1532.9263 Max. :53784.6
soc roads
Min. : 0.00 Min. : 1.127
1st Qu.:21.36 1st Qu.: 46.911
Median :22.79 Median :104.932
Mean :22.96 Mean :137.221
3rd Qu.:24.67 3rd Qu.:193.788
Max. :32.02 Max. :899.282
Evaluation data :
14 presences, 14 true absences and 0
undefined points in dataset
green BIO03
Min. :0.08691 Min. :37.05
1st Qu.:0.09492 1st Qu.:37.81
Median :0.10230 Median :38.32
Mean :0.10441 Mean :38.47
3rd Qu.:0.11226 3rd Qu.:38.73
Max. :0.13800 Max. :41.01
BIO06 wo
Min. :4.540 Min. :1
1st Qu.:5.096 1st Qu.:1
Median :5.216 Median :1
Mean :5.192 Mean :1
3rd Qu.:5.354 3rd Qu.:1
Max. :5.668 Max. :1
rivers fla
Min. : 28.98 Min. : 259.8
1st Qu.:101.76 1st Qu.: 750.4
Median :270.17 Median : 1467.9
Mean :309.61 Mean : 2066.2
3rd Qu.:506.55 3rd Qu.: 2503.7
Max. :745.11 Max. :10850.0
soc roads
Min. :17.99 Min. : 13.30
1st Qu.:20.93 1st Qu.: 44.14
Median :22.26 Median : 91.11
Mean :22.66 Mean :111.03
3rd Qu.:24.33 3rd Qu.:151.07
Max. :30.30 Max. :432.51
3 Pseudo Absences dataset available (
PA1, PA2, PA3 ) with
31 (PA1), 100 (PA2), 1000 (PA3)
pseudo absences
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> summary(myBiomodData)
dataset run PA Presences
1 initial NA <NA> 31
2 evaluation NA <NA> 14
3 calibration NA PA1 31
4 calibration NA PA2 31
5 calibration NA PA3 31
True_Absences Pseudo_Absences Undefined
1 0 0 1126
2 14 0 0
3 0 31 NA
4 0 100 NA
5 0 1000 NA
Thank you Gabriele for the supplementary informations :pray:
We think it might come from your variable wo
:
wo
Min. :-9999.00
1st Qu.: 1.00
Median : 1.00
Mean : -85.57
3rd Qu.: 1.00
Max. : 1.00
2 things that might be wrong with it :
1
-9999
(which explains the mean value)Is this variable coming from an ASCII file (.asc
extension) ?
Often this format replaces NA
value by -9999
which falsifies your variable.
This might explain your problem : as you have few points, most of the time, you use only points with 1
value, but sometimes for validation, you might have a point with value = -9999
which leads to extrapolation and probably strange predicted values, and hence a negative value for the threshold to transform predictions into 0 and 1.
So try either removing this variable, or making sure that you transform -9999
values into NA
:eyes:
Maya
Perfect, it's working now!
I changed the values -9999 to NA.
Thank you
Hello everyone, for a few days now, when I run the BIOMOD_Modeling() function, the following error appears:
### Errore in { : task 70 failed - "task 3 failed - "'threshold' can not be negative""
What does it mean? what exactly is the option that can cause this problem?
Thank You
Here is the code:
Environment Information