Learn R Programming

FFTrees (version 1.7.5)

fftrees_cuerank: Calculate thresholds that optimize some statistic (goal) for cues in data

Description

fftrees_cuerank takes an FFTrees object x and optimizes its goal.threshold (from x$params) for all cues in data.

Usage

fftrees_cuerank(x = NULL, newdata = NULL, data = "train", rounding = NULL)

Value

A modified FFTrees object (with cue rank information for current data in x$cues$stats).

Arguments

x

An FFTrees object.

newdata

dataframe.

data

dataframe.

rounding

integer.

Details

fftrees_cuerank creates a data frame cuerank_df that is added to x$cues$stats.

fftrees_cuerank is called (twice) by the fftrees_grow_fan algorithm to grow fast-and-frugal trees (FFTs).