tests/testthat/resources/basic.R

x <- .1
noise <- .2

bool <- TRUE

loss <- (sin(5 * x) * (1 - tanh(x   ^    2)) + rnorm(1) * noise)

# An innocuous comment
#





cat("loss:", loss, "\n")
cat("bool:", as.integer(bool), "\n")
cat("noise:", noise, "\n")

Try the guildai package in your browser

Any scripts or data that you put into this service are public.

guildai documentation built on March 7, 2023, 5:32 p.m.