createFunction.heuristics: Create function for heuristics prediction with rowPairApply.

Description Usage Arguments Value

View source: R/row_pair_apply.R

Description

Creates a function that takes an index pair and returns a prediction for each of the predictProbInternal implementers.

Usage

1
2
## S3 method for class 'heuristics'
createFunction(object, test_data)

Arguments

object

A heuristics object.

test_data

The test data that row_pairs will be drawn from. We recommend

Value

A function that can easily be used by rowPairApply to generate predictions for all heuristics the object was created with. If it was created with M heuristics, it will generate M predictions.


heuristica documentation built on Sept. 8, 2021, 9:08 a.m.