crf_options {crfsuite}R Documentation

Conditional Random Fields parameters

Description

Conditional Random Fields parameters

Usage

crf_options(
  method = c("lbfgs", "l2sgd", "averaged-perceptron", "passive-aggressive", "arow")
)

Arguments

method

character string with the type of training method. Either one of:

  • lbfgs: L-BFGS with L1/L2 regularization

  • l2sgd: SGD with L2-regularization

  • averaged-perceptron: Averaged Perceptron

  • passive-aggressive: Passive Aggressive

  • arow: Adaptive Regularization of Weights (AROW)

Value

a list with elements

Examples

# L-BFGS with L1/L2 regularization
opts <- crf_options("lbfgs")
str(opts)

# SGD with L2-regularization
crf_options("l2sgd")

# Averaged Perceptron
crf_options("averaged-perceptron")

# Passive Aggressive
crf_options("passive-aggressive")

# Adaptive Regularization of Weights (AROW)
crf_options("arow")

[Package crfsuite version 0.4.2 Index]