[409433]: / man / evaluate_linear.Rd

Download this file

30 lines (27 with data), 922 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evaluation.R
\name{evaluate_linear}
\alias{evaluate_linear}
\title{Evaluate matrices of true targets and predictions from layer with linear activation.}
\usage{
evaluate_linear(y_true, y_pred, label_names = NULL)
}
\arguments{
\item{y_true}{Matrix of true labels.}
\item{y_pred}{Matrix of predictions.}
\item{label_names}{Names of corresponding labels. Length must be equal to number of columns of \code{y}.}
}
\value{
A list of evaluation results.
}
\description{
Compute MAE and MSE, given predictions and
true targets. Outputs columnwise average.
}
\examples{
\dontshow{if (reticulate::py_module_available("tensorflow")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
y_true <- matrix(rnorm(n = 12), ncol = 3)
y_pred <- matrix(rnorm(n = 12), ncol = 3)
evaluate_linear(y_true, y_pred)
\dontshow{\}) # examplesIf}
}