Learn R Programming

heuristica (version 1.0.3)

createFunction.heuristics: 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 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.