Project

General

Profile

« Previous | Next » 

Revision 8b4e4eb9

Added by Benoit Parmentier over 8 years ago

testing alternative metrics for accuracy layers: mae and n

View differences:

climate/research/oregon/interpolation/master_script_stage_7.R
14 14

  
15 15
#AUTHOR: Benoit Parmentier                                                                        
16 16
#CREATED ON: 01/01/2016  
17
#MODIFIED ON: 05/31/2016  
17
#MODIFIED ON: 06/07/2016  
18 18
#PROJECT: NCEAS INPLANT: Environment and Organisms                                                                           
19 19

  
20 20
#First source these files:
......
107 107
num_cores <- 6 #PARAM 8, arg 8         
108 108
max_mem = 1e+07 #param 9, arg 9
109 109
mosaicing_method <- "use_edge_weights" #PARAM10, arg 10
110
metric_name <- "rmse" #RMSE, MAE etc. #PARAM 11, arg 11
110
metric_name <- "rmse" # "mae", "r" for MAE, R etc.; can also be ns or nv? #PARAM 11, arg 11
111
#metric_name <- "n"
111 112
#day_start <- "19990701" #PARAM 12 arg 12
112 113
#day_end <- "19990703" #PARAM 13 arg 13
113 114
day_start <- "19990108" #PARAM 12 arg 12
......
117 118
algorithm <- "python" #PARAM 16 #if R use mosaic function for R, if python use modified gdalmerge script from Alberto Guzmann
118 119
#layers_option <- c("var_pred") #arg 17 ,param 17, options are:#res_training, res_testing,ac_training, ac_testing, var_pred
119 120
layers_option <- c("ac_testing") #arg 17 ,param 17, options are:#res_training, res_testing,ac_training, ac_testing, var_pred
121
#layers_option <- c("res_testing") #arg 17 ,param 17, options are:#res_training, res_testing,ac_training, ac_testing, var_pred
122
layers_option <- c("res_training") #arg 17 ,param 17, options are:#res_training, res_testing,ac_training, ac_testing, var_pred
120 123

  
121 124
tmp_files <- TRUE #arg 18, param 18, keep temp files if TRUE
122 125
data_type <- "Int16" #, param 19, use int32 for output layers mosaiced
......
287 290
#debug_fun_test(list_param_raster_prediction)
288 291
i <- 1 #this select the first year of list_year_predicted
289 292
#function_mosaicing_functions <- "global_run_scalingup_mosaicing_function_05312016.R" #PARAM12
290
#function_mosaicing <-"global_run_scalingup_mosaicing_05312016.R"
293
#function_mosaicing <-"global_run_scalingup_mosaicing_06072016.R"
291 294
#source(file.path(script_path,function_mosaicing)) #source all functions used in this script 
292 295
#source(file.path(script_path,function_mosaicing_functions)) #source all functions used in this script 
293 296

  

Also available in: Unified diff