Python* API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Public Member Functions | List of all members
PartialModel Class Reference

Partial model trained by the implicit ALS training algorithm in the distributed processing mode. More...

Public Member Functions

def serializationTag
 
def getSerializationTag
 
def create
 
def getFactors
 
def getIndices
 
def __init__
 
- Public Member Functions inherited from Model
def __init__
 
def getSerializationTag
 
- Public Member Functions inherited from SerializationIface
def serialize
 
def deserialize
 
def getSerializationTag
 
- Public Member Functions inherited from Base
def __init__
 

Detailed Description

References

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Variant 1

Constructs a partial implicit ALS model from the indices and factors stored in the numeric tables

Parameters
factorsPointer to the numeric table with factors stored in row-major order
indicesPointer to the numeric table with the indices of factors
Deprecated:
This item will be removed in a future release. Use Model.create instead.

Variant 2

Empty constructor for deserialization

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

Variant 3

Constructs a partial implicit ALS model of a specified size

Parameters
parameterImplicit ALS parameters
sizeModel size
dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model.create instead.

Variant 4

Constructs a partial implicit ALS model from the indices of factors

Parameters
parameterImplicit ALS parameters
offsetIndex of the first factor in the partial model
indicesPointer to the numeric table with the indices of factors
dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model.create instead.
Allowed Types
  • float64
  • float32

Member Function Documentation

def create (   factors,
  indices,
  stat = None 
)

Constructs a partial implicit ALS model from the indices and factors stored in the numeric tables

Parameters
factorsPointer to the numeric table with factors stored in row-major order
indicesPointer to the numeric table with the indices of factors
statStatus of the model construction
Returns
Partial implicit ALS model with the specified indices and factors
def getFactors (   self)

Returns pointer to the numeric table with factors stored in row-major order

Returns
Pointer to the numeric table with factors stored in row-major order
def getIndices (   self)

Returns the pointer to the numeric table with the indices of factors

Returns
Pointer to the numeric table with the indices of factors
def getSerializationTag (   self)

getSerializationTag(PartialModel self) -> int

def serializationTag ( )

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

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