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

View source: R/row_pair_apply.R

createFunction.heuristicsR Documentation

Create function for heuristics prediction with rowPairApply.

Description

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

Usage

## 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.


jeanimal/heuristica documentation built on Feb. 3, 2024, 9:56 p.m.