tune_lambda_helper: Helper Function for 'Tune_Lambda()'

View source: R/functions_tuning.R

tune_lambda_helperR Documentation

Helper Function for 'Tune_Lambda()'

Description

helper function for tune_lambda()

Usage

tune_lambda_helper(
  i,
  docs,
  docName,
  index_name,
  n_cluster,
  labelsName,
  initSize,
  initIndex,
  lambda,
  maxQuery,
  whichOutTest,
  maxActive,
  seed,
  verbose = TRUE
)

Arguments

i

Iteration number.

docs

Dataframe for courpus.

docName

String; name of variable for document text.

index_name

String; name of variable for corpus index.

n_cluster

Int; number of clusters.

labelsName

String; name of variable for document labels.

initSize

Int; number of docs to initialize model with.

initIndex

vec; Value to initialize model with.

lambda

float; lambda value for weighting.

maxQuery

int; max number of documents ot query per iteration.

whichOutTest

vec; Index values to use for out-of-sample validation.

seed

int; Seed value for randomization.

verbose

logical; Denotes whether model progress is printed.

Value

Statistics summary for active_EM() iteration.


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.