check_mtry: Check Argument mtry

View source: R/checks.R

check_mtryR Documentation

Check Argument mtry

Description

Check Argument mtry

Usage

check_mtry(mtry, nv)

Arguments

mtry

Number of covariates to possibly split at in each node. Default is the (rounded down) square root of the number of covariates. Alternatively, one can pass a single-argument function returning an integer, where the argument is the number of covariates.

nv

Number of covariates.

Value

Appropriate value of mtry.


ocf documentation built on April 4, 2025, 4:44 a.m.