R/gptk_optimiDefaultConstraint.R

.optimiDefaultConstraint <-
function (constraint) {
  if ( constraint == "positive" ) {
    return (list(func=".expTransform", hasArgs=FALSE))
  } else if ( constraint == "zeroone" ) {
    return (list(func=".sigmoidTransform", hasArgs=FALSE))
  } else if ( constraint == "bounded" ) {
    return (list(func=".boundedTransform", hasArgs=TRUE))
  }
}

Try the robin package in your browser

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

robin documentation built on May 17, 2022, 1:07 a.m.