evaluate_linear: Evaluate matrices of true targets and predictions from layer...

View source: R/evaluation.R

evaluate_linearR Documentation

Evaluate matrices of true targets and predictions from layer with linear activation.

Description

Compute MAE and MSE, given predictions and true targets. Outputs columnwise average.

Usage

evaluate_linear(y_true, y_pred, label_names = NULL)

Arguments

y_true

Matrix of true labels.

y_pred

Matrix of predictions.

label_names

Names of corresponding labels. Length must be equal to number of columns of y.

Value

A list of evaluation results.

Examples


y_true <- matrix(rnorm(n = 12), ncol = 3)
y_pred <- matrix(rnorm(n = 12), ncol = 3)
evaluate_linear(y_true, y_pred)


GenomeNet/deepG documentation built on Dec. 24, 2024, 12:11 p.m.