transform_me: transform_me

Description Usage Arguments Details Value

View source: R/format_values.R

Description

maps all instances in x_unscaled to the [0;1] range using the equation:
y=exp(x)/(1+exp(x))

Usage

1
transform_me(x_unscaled, mean)

Arguments

x_unscaled

vector of predictions

mean

mean of 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).

Value

transformed values of x_unscaled


CalibratR documentation built on Aug. 19, 2019, 5:04 p.m.