Skip to contents

A step of the chronos_native implementation. No other function in the package calls it. See the file header for the source the module follows. the source it follows.

Usage

chronos_detokenize(tokens, bins, scale)

Arguments

tokens

Passed to chronos_dequantize.

bins

Passed to chronos_dequantize.

scale

Coerced to numeric by the body, with as.numeric.

Value

A numeric value.

Examples

bins <- chronos_uniform_bins(lo = -3, hi = 3, n_bins = 12L)
tok <- chronos_tokenize(c(10, 12, 9), bins)
chronos_detokenize(tok$tokens, bins, scale = tok$scale)
#> [1]  8.454545 14.090909  8.454545