trainModel: Function to train model

Description Usage Arguments

Description

Function to train model

Usage

1
trainModel(data, paramsInit = c(1, 1, 1, 1), lambda = 0, ...)

Arguments

data

An integer matrix where each row consists of the recency/frequency statistics for a single user, in the order (x, n, m)

paramsInit

A length-4 numeric vector of initial parameters for the log likelihood function. (alpha, beta, gamma, delta)

lambda

Regularization parameter to pass to cost and cost_d

...

Additional arguments to pass to stats::optim


johnchower/gloobtyd documentation built on May 19, 2019, 3:03 p.m.