Learn R Programming

deeptrafo (version 1.0-0)

weighted_logLik: Tune and evaluate weighted transformation ensembles

Description

Tune and evaluate weighted transformation ensembles

Usage

weighted_logLik(
  object,
  weights = NULL,
  newdata = NULL,
  convert_fun = function(x, ...) mean(x, ...),
  batch_size = NULL,
  ...
)

Value

Returns list of ensemble members, average, and ensemble log-likelihood converted by convert_fun

Arguments

object

Object of class "dtEnsemble"

weights

Numeric; weight-vector of length n_ensemble, if NULL the weights are tuned on newdata

newdata

List or data.frame; new data to evaluate or tune the weights on

convert_fun

Function; applied to the log-likelihood values of all observations.

batch_size

Integer; optional, useful if data is too large.

...

Further arguments supplied to print.deeptrafo