fit_jian_ann: Fit models from Jian et al. paper

Description Usage Arguments Value Author(s)

View source: R/jian_models.R

Description

fit_jian_ann fits an artificial neural network, and fit_jian_rf fits a random forest model (with or without top_type included).

Usage

1
2
3
fit_jian_ann(data, use_rock = FALSE, verbose = FALSE)

fit_jian_rf(data, use_rock = FALSE, top_type = FALSE)

Arguments

data

Input data for fit.

use_rock

Logical. If TRUE, include the Percent_Rock_Fragment as a predictor.

verbose

Logical. If TRUE, print the number of attempts.

top_type

Logical. If TRUE, include the Top_Type as a predictor in the Random Forest model.

Value

For fit_jian_ann, the output of neuralnet::neuralnet(), but with the special class attribute urbankfs_ann (so we can define our own predict S3 method). For fit_jian_rf, the output of randomForest::randomForest().

Author(s)

Alexey Shiklomanov


jinshijian/UrbanKfs documentation built on Jan. 9, 2021, 9:54 a.m.