Provides interface to access partial results obtained with the implicit ALS initialization algorithm in the first and second steps of the distributed processing mode.
More...
def __init__ |
( |
|
self, |
|
|
|
nElements = 0 |
|
) |
| |
Constructs partial result of the implicit ALS initialization algorithm with the specified number of elements
- Parameters
-
nElements | Number of elements |
def check |
( |
|
self, |
|
|
|
input, |
|
|
|
parameter, |
|
|
|
method |
|
) |
| |
Checks a partial result of the implicit ALS initialization algorithm
- Parameters
-
input | Input object for the algorithm |
parameter | Parameter of the algorithm |
method | Computation method of the algorithm |
def getCollection |
( |
|
self, |
|
|
|
args |
|
) |
| |
- Variant 1
Gets a partial result of the implicit ALS initialization algorithm
- Parameters
-
id | Identifier of the partial result |
- Returns
- Partial result that corresponds to the given identifier
- Variant 2
Gets a numeric table object from a partial result of the implicit ALS initialization algorithm
- Parameters
-
id | Identifier of the partial result |
key | Key to use to retrieve a numeric table |
- Returns
- Numeric table from the partial result that corresponds to the given identifier
def getSerializationTag |
( |
|
self | ) |
|
getSerializationTag(PartialResultBase self) -> int
def setCollection |
( |
|
self, |
|
|
|
id, |
|
|
|
ptr |
|
) |
| |
Sets the partial result of the implicit ALS initialization algorithm
- Parameters
-
id | Identifier of the partial result |
ptr | The partial result object |
The documentation for this class was generated from the following file:
- implicit_als/training/init.py