Learn R Programming

iai (version 1.10.2)

score.default: Calculate the score for a set of predictions on the given data

Description

Julia Equivalent: IAI.score

Usage

# S3 method for default
score(obj, predictions, truths, ...)

Arguments

obj

The type of problem.

predictions

The predictions to evaluate.

truths

The true target values for these observations.

...

Other parameters, including the criterion. Refer to the Julia documentation for available parameters.

IAI Compatibility

Requires IAI version 2.1 or higher.

Examples

Run this code
if (FALSE) iai::score("regression", y_pred, y_true, criterion="mse")

Run the code above in your browser using DataLab