pfa_pool: pfa_pool

Description Usage Arguments Value Examples

Description

Creates a list of lists representing a PFA pool.

Usage

1
2
pfa_pool(type, init, source = "embedded", shared = FALSE,
  rollback = FALSE)

Arguments

type

pool type, which is an Avro schema as list of lists (created by avro_* functions)

init

pool initial value, which is a list of lists, usually converted from a model

source

if "embedded", the init is the data structure, if "json", the init is a URL string pointing to an external JSON file

shared

if TRUE, the pool is shared across scoring engine instances

rollback

if TRUE, the pool's value would be rolled back if an uncaught exception is encountered

Value

a list of lists that can be inserted into pfa_config.

Examples

1
pfa_pool(avro_double, json_map(one = 1.1, two = 2.2, three = 3.3))

aurelius documentation built on May 2, 2019, 3:43 a.m.