@@ -52,8 +52,8 @@ FitModels(ma.name=input.file,
52
52
' multicore=TRUE' , ' om=2' , ' maxent_path=K:\\ USERS\\ ISS\\ VisTrails\\ VisTrails2.1.2_SAHM_x64_1.2.0\\ Central_Maxent' , ' species_name=species' , ' cur_processing_mode=single models sequentially (n - 1 cores each)' , ' c=J:\\ Projects\\ CNHPforJorge\\ Maxent_WildParsnip_4\\ CovariateCorrelationOutputMDS_WildParsnip_initial.csv' , ' o=J:\\ Projects\\ CNHPforJorge\\ Maxent_WildParsnip_4'
53
53
54
54
55
- lambdas.file = " J:\\ Projects\\ CNHPforJorge \\ Maxent_WildParsnip_4 "
56
- input.file = " J:\\ Projects\\ CNHPforJorge \\ Maxent_WildParsnip_4 \\ CovariateCorrelationOutputMDS_WildParsnip_initial .csv"
55
+ lambdas.file = " J:\\ Projects\\ NASADevelop \\ AK \\ Elodea2 \\ Elodea_1 \\ Elodea_1 \\ Maxent_kdeContOpt_1 "
56
+ input.file = " J:\\ Projects\\ NASADevelop \\ AK \\ Elodea2 \\ Elodea_1 \\ Elodea_1 \\ Maxent_kdeContOpt_1 \\ CovariateCorrelationOutputMDS_kdeContOpt_initial .csv"
57
57
58
58
FitModels(ma.name = input.file ,
59
59
output.dir = output.dir ,
@@ -64,14 +64,26 @@ FitModels(ma.name=input.file,
64
64
# ================================================================#
65
65
input.file = " J:\\ Projects\\ MojaveInvasives\\ DerivedData\\ AnalysisWith2000to2010base\\ BRORUB20002010prism\\ brt_1\\ CovariateCorrelationOutputMDS_initial.csv"
66
66
input.file = " I:\\ VisTrails\\ WorkingFiles\\ workspace\\ _yetAnotherTest\\ brewersSparrow_presenceONLY\\ mars_1\\ CovariateCorrelationOutputMDS_initial.csv"
67
- input.file = " I:\\ VisTrails\\ WorkingFiles\\ workspace\\ _yetAnotherTest\\ brewersSparrow_presenceONLY\\ mars_1\\ CovariateCorrelationOutputMDS_initial.csv"
68
67
69
68
FitModels(ma.name = input.file ,
70
69
tif.dir = NULL ,output.dir = output.dir ,
71
70
response.col = rc ,make.p.tif = F ,make.binary.tif = F ,
72
71
mars.degree = 1 ,mars.penalty = 2 ,debug.mode = F ,seed = 123 ,
73
72
script.name = " mars" ,opt.methods = 2 ,MESS = F ,ScriptPath = ScriptPath )
74
-
73
+
74
+ input.file = " C:\\ temp\\ SAHM_workspace\\ WarnTesting\\ SAHMTestingOutput\\ brewersSparrow_justMaurerObs\\ mars_asage_1\\ CovariateCorrelationOutputMDS_asage_initial.csv"
75
+ output.dir = " C:\\ temp\\ SAHM_workspace\\ MarsParameter"
76
+ mars.penalty = seq(from = 5 ,to = 15 )
77
+ for (i in 1 : length(mars.penalty )){
78
+ output.diri <- paste(output.dir ,mars.penalty [i ],sep = " _" )
79
+ dir.create(output.diri )
80
+ FitModels(ma.name = input.file ,
81
+ tif.dir = NULL ,output.dir = output.diri ,
82
+ response.col = rc ,make.p.tif = F ,make.binary.tif = F ,
83
+ mars.degree = 1 ,mars.penalty = mars.penalty [i ],debug.mode = F ,seed = 123 ,
84
+ script.name = " mars" ,opt.methods = 2 ,MESS = F ,ScriptPath = ScriptPath )
85
+ }
86
+
75
87
# ================================================================#
76
88
# Evaluate New Data
77
89
# ================================================================#
@@ -111,13 +123,29 @@ input.file = "C:\\temp\\SAHM_workspace\\ForResponseCurveTool\\rf_1\\CovariateCor
111
123
input.file = " I:\\ VisTrails\\ WorkingFiles\\ workspace\\ _tutorial_2.0_testing\\ brewersSparrow_justMaurerObs\\ rf_asage_1\\ CovariateCorrelationOutputMDS_asage_initial.csv
112
124
input.file=" I : \\VisTrails \\WorkingFiles \\workspace \\_clutteredWarnings \\brewersSparrow \\rf_1 \\CovariateCorrelationOutputMDS_initial.csv "
113
125
input.file=" J : \\Projects \\NAS \\SAHM_output \\Pomacea \\rf_optimizedGastroBacks_1 \\CovariateCorrelationOutputMDS_optimizedGastroBacks_initial.csv "
126
+ input.file=" I : \\VisTrails \\WorkingFiles \\workspace \\Tutorial_2.0_output \\brewersSparrow_justMaurerObs \\rf_asage_1 \\CovariateCorrelationOutputMDS_asage_initial.csv "
114
127
FitModels(ma.name=input.file,
115
128
tif.dir=NULL,
116
129
output.dir=output.dir,nodesize=NULL,maxnodes=NULL,sampsize=NULL,mtry=NULL,samp.replace=FALSE,keep.forest=NULL,xtest=NULL,ytest=NULL,
117
130
response.col=rc,make.p.tif=F,make.binary.tif=F, localImp=FALSE,nPerm=1,proximity=NULL,n.trees=1000,keep.forest=NULL,
118
131
keep.inbag=FALSE,
119
132
debug.mode=T,opt.methods=2,script.name=" rf " ,ScriptPath=ScriptPath,multCore=FALSE)
120
133
134
+
135
+ #RF loop to select parameters
136
+ input.file = " C : \\temp \\SAHM_workspace \\WarnTesting \\SAHMTestingOutput \\brewersSparrow_justMaurerObs \\mars_asage_1 \\CovariateCorrelationOutputMDS_asage_initial.csv "
137
+ output.dir=" C : \\temp \\SAHM_workspace \\MarsParameter "
138
+ n.trees=c(30,50,70,100,500)
139
+ for(i in 1:length(n.trees)){
140
+ output.diri<-paste(output.dir,i,sep=" _" )
141
+ dir.create(output.diri)
142
+ FitModels(ma.name=input.file,
143
+ tif.dir=NULL,
144
+ output.dir=output.dir,nodesize=NULL,maxnodes=NULL,sampsize=NULL,mtry=NULL,samp.replace=FALSE,keep.forest=NULL,xtest=NULL,ytest=NULL,
145
+ response.col=rc,make.p.tif=F,make.binary.tif=F, localImp=FALSE,nPerm=1,proximity=NULL,n.trees=30,keep.forest=NULL,
146
+ keep.inbag=FALSE,
147
+ debug.mode=T,opt.methods=2,script.name=" rf " ,ScriptPath=ScriptPath,multCore=FALSE)
148
+
121
149
C:\R -3.2.0\b in\i 386\R term.exe --vanilla -f C:\G oogleDrive\P ython\D evWorkspace\u serpackages\s ahm\p ySAHM\R esources\R _Modules\F IT_RF_pluggable.r --args mbt=TRUE mpt=TRUE c=" I : \VisTrails \\WorkingFiles \workspace \_clutteredWarnings \brewersSparrow \rf_1 \CovariateCorrelationOutputMDS_initial.csv " o=" C : \temp \SAHM_workspace \WarnTesting " rc=responseBinary mes=TRUE
122
150
123
151
rc=" responseBinary "
@@ -127,17 +155,27 @@ rc="responseBinary"
127
155
input.file=" J : \Projects \NormalsComparison \SAHM4 \AHB \MergedDataset_1.csv "
128
156
input.file=" I : \\VisTrails \\WorkingFiles \\workspace \\_ntr \\brt_BrewersSparrowCV_1 \\CovariateCorrelationOutputMDS_BrewersSparrowCV_initial.csv "
129
157
#input.file=" I : \\VisTrails \\WorkingFiles \\workspace \\_FinalTest \\CovariateCorrelationOutputMDS_initial.csv "
130
- input.file=" J : \\Projects \\MojaveInvasives \\DerivedData \\AnalysisWith2000to2010base \\BRORUB20002010prism \\brt_1 \\CovariateCorrelationOutputMDS_initial.csv "
158
+ input.file=" J : \\Projects \\buffelgrass \\SNP \\HabitatSuitability \\SAHM \\CeCi \\BRT_OPT \\brt_finalmaps_4 \\CovariateCorrelationOutputMDS_finalmaps_initial.csv "
159
+ input.file=" J : \\Projects \\NASADevelop \\AK \\Elodea2 \\Elodea_1 \\Revisions \\brt_First_1 \\CovariateCorrelationOutputMDS_First_initial.csv "
160
+ FitModels(ma.name=input.file,
161
+ tif.dir=NULL,output.dir=output.dir,
162
+ response.col=rc,make.p.tif=F,make.binary.tif=F,n.folds=3,simp.method=" cross - validation " ,tc=NULL,alpha=1,
163
+ family = " bernoulli " ,n.trees =NULL,tolerance.method = " auto " ,
164
+ tolerance = 0.001,seed=1234,opt.methods=2,learning.rate=NULL,
165
+ simp.method=" cross - validation " ,debug.mode=T,responseCurveForm=" pdf " ,script.name=" brt " ,
166
+ bag.fraction = 0.5,prev.stratify = TRUE, opt.methods=2,MESS=F,ScriptPath=ScriptPath,multCore=FALSE,predSelect=FALSE)
167
+
168
+
131
169
maxTrees=c(25,50,75,100,150,NULL)
132
170
output.dir=" C : \\temp \\BRT "
133
171
for(i in 1:length(maxTrees)){
134
172
d<-file.path(output.dir,paste(" brt " ,i,sep=" _" ))
135
173
dir.create(d)
136
174
FitModels(ma.name=input.file,
137
- tif.dir=NULL,output.dir=d ,
138
- response.col=rc,make.p.tif=F,make.binary.tif=F,n.folds=3,simp.method=" cross - validation " ,tc=NULL ,alpha=1,
139
- family = " bernoulli " ,n.trees =maxTrees[i] ,tolerance.method = " auto " ,
140
- tolerance = 0.001,seed=1234,opt.methods=2,
175
+ tif.dir=NULL,output.dir=output.dir ,
176
+ response.col=rc,make.p.tif=F,make.binary.tif=F,n.folds=3,simp.method=" cross - validation " ,tc=1 ,alpha=1,
177
+ family = " bernoulli " ,n.trees =NULL ,tolerance.method = " auto " ,
178
+ tolerance = 0.001,seed=1234,opt.methods=2,learning.rate=0.0005,
141
179
simp.method=" cross - validation " ,debug.mode=T,responseCurveForm=" pdf " ,script.name=" brt " ,
142
180
bag.fraction = 0.5,prev.stratify = TRUE, opt.methods=2,MESS=F,ScriptPath=ScriptPath,multCore=FALSE,predSelect=FALSE)
143
181
}
0 commit comments