ncf_data_transform: NCF Utility Function: Transform transaction data to a data...

Description Usage Arguments Value

Description

NCF Utility Function: Transform transaction data to a data with 0-1 labels

Usage

1
ncf_data_transform(data, top = 1000)

Arguments

data

Transaction dataset. Format must be order_id (could be dummy), user_id, and product_id

top

Number of top products and customers to include. Can be NULL (e.g. will include everything)

Value

returns a dataset with user_id, product_id, label (0,1 indicating if past purchase exists)


tianwei-zhang/easyAI documentation built on May 14, 2019, 12:48 p.m.