Description Usage Arguments Value Examples
View source: R/FTRLProx_as_Matrix.R
Transform a data frame to sparse design matrix for FTRL-Proximal Algorithm. Please always use this function to generate sparse matrix for training and prediction.
1  | FTRLProx_as_Matrix(data, label = NULL)
 | 
data | 
 a   | 
label | 
 a vector containing labels.  | 
constructed dataset, an object of class "ftrl.Dataset"
1 2 3 4 5  | library(data.table)
library(FeatureHashing)
data(ipinyou)
m.train <- FTRLProx_as_Matrix(ipinyou.train[, c("BiddingPrice", "PayingPrice"), with = FALSE],
                              label = as.numeric(ipinyou.train$IsClick))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.