optimize_lsu: Optmize LSUs

Description Usage Arguments Value Author(s) Examples

View source: R/optimize_lsu.R

Description

Optimize LSU for each cell using a neural net model.

Usage

1
2
Optimize_LSU(test_data, model, min_Lsu, max_Lsu, col_means,
  col_stddevs, range)

Arguments

test_data

Generated test data object, for mode details see generate_test_data

model

.h5 saved keras model

min_Lsu

lower boundary for constrained optmization

max_Lsu

upper boundary for constrained optmization

col_means

Center attributes from scaled training data of the model used in the parameter model. Example: train_data <- scale(train_data) col_means_train_harvest <- attr(train_data, "scaled:center")

col_stddevs

Scale attributes from scaled training data of the model used in the parameter model.

range

Cell interval to be optmized

Value

Vector of optimized LSUs per grid cell

Author(s)

Marcos Alves mppalves@gmail.com

Examples

1
2
3
Optimize_LSU(test_data, ML_model_harvest,min_Lsu = -2, max_Lsu = 2,
                       col_means_train_harvest,col_stddevs_train_harvest,
                       range = 28415:28416)

mppalves/GSTools documentation built on May 22, 2020, 7:21 p.m.