Using rowPairApply, this can generate a column indicating the the correct direction of the criterion in comparing row 1 vs. row2 for all row pairs in test_data. 1 indicates row 1's criterion > row 2's criterion 0 indicates they are equal -1 indicates row 2's criterion is greater By default, the output column is called "CorrectGreater," but you can override the name with output_column_name.
correctGreater(criterion_col, output_column_name = "CorrectGreater")The integer index of the criterion in test_data.
An optional string
An object that implements createFunction. Users will generally not use this directly-- rowPairApply will.
This is meant to be used to measure the performance of heuristics
wrapped with heuristics.
heuristics is the wrapper to get the predicted greater
row in the row pair for each heuristic passed in to it.
rowPairApply which has an example of using this.