public static class ALS.InBlock<ID>
extends Object
implements scala.Product, scala.Serializable
{srcId: 0, dstBlockId: 2, dstLocalIndex: 3, rating: 5.0},
and assume that the dst factors are stored as dstFactors: Map[Int, Array[Array[Float}], which is a blockId to dst factors map, the corresponding dst factor of the record is dstFactor(2)(3).
We use a CSC-like (compressed sparse column) format to store the in-link information. So we can compute src factors one after another using only one normal equation instance.
ALS.LocalIndexEncoder
,
Serialized FormConstructor and Description |
---|
ALS.InBlock(Object srcIds,
int[] dstPtrs,
int[] dstEncodedIndices,
float[] ratings,
scala.reflect.ClassTag<ID> evidence$2) |
Modifier and Type | Method and Description |
---|---|
int[] |
dstEncodedIndices() |
int[] |
dstPtrs() |
float[] |
ratings() |
int |
size()
Size of the block.
|
Object |
srcIds() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ALS.InBlock(Object srcIds, int[] dstPtrs, int[] dstEncodedIndices, float[] ratings, scala.reflect.ClassTag<ID> evidence$2)