Override this method to define a model.
Override this method to define a model.
Data of continuousCols is treated as continuous values for the deep model.
Input dimension of the data in embedCols.
Input dimension of the data in embedCols. The dimensions of the data in embedCols should be within the range of embedInDims.
The dimensions of embeddings.
Units of hidden layers for the deep model.
Units of hidden layers for the deep model. Array of positive integers. Default is Array(40, 20, 10).
Dimensions of indicatorCols.
Dimensions of indicatorCols. The dimensions of the data in indicatorCols should be within the range of indicatorDims.
The defined model, either from buildModel() or loaded from file.
The defined model, either from buildModel() or loaded from file.
String.
String. "wide", "deep", "wide_n_deep" are supported. Default is "wide_n_deep".
The number of classes.
The number of classes. Positive integer.
Predict for classes.
Predict for classes. By default, label predictions start from 0.
Prediction data, RDD of Sample.
Number of samples per batch. Default is 32.
Boolean. Whether result labels start from 0. Default is true. If false, result labels start from 1.
Predict for user-item pairs.
Predict for user-item pairs.
RDD of user item pair feature.
RDD of user item pair prediction.
Recommend a number of users for each item given a rdd of user item pair features.
Recommend a number of users for each item given a rdd of user item pair features.
RDD of user item pair feature.
Number of users to be recommended to each item. Positive integer.
RDD of user item pair prediction.
Recommend a number of items for each user given a rdd of user item pair features.
Recommend a number of items for each user given a rdd of user item pair features.
RDD of user item pair feature.
Number of items to be recommended to each user. Positive integer.
RDD of user item pair prediction.
Save the model to the specified path.
Save the model to the specified path.
The path to save the model. Local file system, HDFS and Amazon S3 are supported. HDFS path should be like "hdfs://[host]:[port]/xxx". Amazon S3 path should be like "s3a://bucket/xxx".
The path to save weights. Default is null.
Whether to overwrite the file if it already exists. Default is false.
Print out the summary of the model.
Print out the summary of the model.
Dimensions of wideBaseCols.
Dimensions of wideBaseCols. The dimensions of the data in wideBaseCols should be within the range of wideBaseDims.
Dimensions of crossed columns.
Dimensions of crossed columns. The dimensions of the data in wideCrossCols should be within the range of wideCrossDims.
(Since version 0.3.0) please use recommended saveModule(path, overWrite)
The Wide and Deep model used for recommendation.
Numeric type of parameter(e.g. weight, bias). Only support float/double now.