File: transform_me.Rd

package info (click to toggle)
r-cran-calibratr 0.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 484 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_values.R
\name{transform_me}
\alias{transform_me}
\title{transform_me}
\usage{
transform_me(x_unscaled, mean)
}
\arguments{
\item{x_unscaled}{vector of predictions}

\item{mean}{mean of \code{x}}
}
\value{
transformed values of \code{x_unscaled}
}
\description{
maps all instances in \code{x_unscaled} to the [0;1] range using the equation:
\cr  y=exp(x)/(1+exp(x))
}
\details{
values greater then exp(700)/ or smaller then exp(-700) are returned as "Inf". To avoid NaN values, these "Inf." values are turned into min(y) or max(y).
}