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

Public Member Functions | Static Public Attributes | List of all members
Distributed Class Reference

Performs implicit ALS model-based prediction in the first step of the distributed processing mode. More...

Public Member Functions

def __init__
 
def getResult
 
def getPartialResult
 
def setResult
 
def setPartialResult
 
def getMethod
 
def clone
 
def compute
 
def finalizeCompute
 
- Public Member Functions inherited from DistributedPrediction
def __init__
 

Static Public Attributes

 input = ...
 
 parameter = ...
 

Detailed Description

Parameters
fptypeData type to use in intermediate computations for implicit ALS model-based prediction, double or float
methodImplicit ALS prediction method, Method
Enumerations
  • Method Computation methods
References
  • DistributedInput<step1Local> class
Aliases
  • Distributed_Step1LocalFloat64AllUsersAllItems is an alias of Distributed(step=daal.step1Local, fptype=float64, method=daal.algorithms.implicit_als.prediction.ratings.allUsersAllItems)
  • Distributed_Step1LocalFloat32AllUsersAllItems is an alias of Distributed(step=daal.step1Local, fptype=float32, method=daal.algorithms.implicit_als.prediction.ratings.allUsersAllItems)

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Variant 1

Default constructor


Variant 2

Constructs an implicit ALS ratings prediction algorithm by copying input objects and parameters of another implicit ALS ratings prediction algorithm

Parameters
otherAn algorithm to be used as the source to initialize the input objects and parameters of the algorithm

Member Function Documentation

def clone (   self)

Returns a pointer to the newly allocated ALS ratings prediction algorithm with a copy of input objects and parameters of this ALS ratings prediction algorithm

Returns
Pointer to the newly allocated algorithm
def compute (   self)

Invokes computations and returns partial result

def finalizeCompute (   self)

Finalizes computations and returns (final) result

def getMethod (   self)

Returns the method of the algorithm

Returns
Method of the algorithm
def getPartialResult (   self)

Returns the structure that contains computed partial results of the implicit ALS ratings prediction algorithm

Returns
Structure that contains computed partial results of the implicit ALS ratings prediction algorithm
def getResult (   self)

Returns the structure that contains the results of the implicit ALS ratings prediction algorithm

Returns
Structure that contains the results of the implicit ALS ratings prediction algorithm
def setPartialResult (   self,
  partialResult,
  initFlag = False 
)

Variant 1

Registers user-allocated memory for storing partial results of the implicit ALS ratings prediction algorithm

Parameters
partialResultStructure for storing partial results of the implicit ALS ratings prediction algorithm
initFlagFlag that specifies whether partial results are initialized

Variant 2

Registers user-allocated memory for storing partial results of the implicit ALS ratings prediction algorithm

Parameters
partialResultStructure for storing partial results of the implicit ALS ratings prediction algorithm
initFlagFlag that specifies whether partial results are initialized
def setResult (   self,
  result 
)

Registers user-allocated memory for storing the prediction results

Parameters
resultStructure for storing the prediction results

Member Data Documentation

input = ...
static

Input data structure

parameter = ...
static

Parameters of the algorithm


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

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