Performs implicit ALS model-based prediction in the first step of the distributed processing mode.
More...
- Parameters
-
fptype | Data type to use in intermediate computations for implicit ALS model-based prediction, double or float |
method | Implicit 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)
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
-
other | An algorithm to be used as the source to initialize the input objects and parameters of the algorithm |
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
Invokes computations and returns partial result
def finalizeCompute |
( |
|
self | ) |
|
Finalizes computations and returns (final) result
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
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
-
partialResult | Structure for storing partial results of the implicit ALS ratings prediction algorithm |
initFlag | Flag 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
-
partialResult | Structure for storing partial results of the implicit ALS ratings prediction algorithm |
initFlag | Flag that specifies whether partial results are initialized |
def setResult |
( |
|
self, |
|
|
|
result |
|
) |
| |
Registers user-allocated memory for storing the prediction results
- Parameters
-
result | Structure for storing the prediction results |
The documentation for this class was generated from the following file: