C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

Static Public Member Functions | List of all members
Model Class Reference

Model trained by the implicit ALS algorithm in the batch processing mode. More...

Static Public Member Functions

template<typename modelFPType >
static DAAL_EXPORT services::SharedPtr< Modelcreate (size_t nUsers, size_t nItems, const Parameter &parameter, services::Status *stat=NULL)
 

Class Declaration

References

Constructor & Destructor Documentation

◆ Model() [1/2]

DAAL_EXPORT Model ( size_t  nUsers,
size_t  nItems,
const Parameter parameter,
modelFPType  dummy 
)

Constructs the implicit ALS model

Parameters
[in]nUsersNumber of users in the input data set
[in]nItemsNumber of items in the input data set
[in]parameterImplicit ALS parameters
[in]dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model::create instead.

◆ Model() [2/2]

Model ( )

Empty constructor for deserialization

Deprecated:
This item will be removed in a future release. Use Model::create instead.

Member Function Documentation

◆ create()

static DAAL_EXPORT services::SharedPtr<Model> create ( size_t  nUsers,
size_t  nItems,
const Parameter parameter,
services::Status stat = NULL 
)
static

Constructs the implicit ALS model

Parameters
[in]nUsersNumber of users in the input data set
[in]nItemsNumber of items in the input data set
[in]parameterImplicit ALS parameters
[out]statStatus of the model construction

◆ getItemsFactors()

data_management::NumericTablePtr getItemsFactors ( ) const
inline

Returns a pointer to the numeric table of items factors constructed during the training of the implicit ALS model

Returns
Numeric table of items factors

◆ getUsersFactors()

data_management::NumericTablePtr getUsersFactors ( ) const
inline

Returns a pointer to the numeric table of users factors constructed during the training of the implicit ALS model

Returns
Numeric table of users factors

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.