// Convert the uoff array to a SparseVector
MutableSparseVector svuoff = Vectors.fromArray(snapshot.userIndex(), uoff);
// Convert the ioff array to a SparseVector
MutableSparseVector svioff = Vectors.fromArray(snapshot.itemIndex(), ioff);
return new LeastSquaresItemScorer(svuoff.freeze(), svioff.freeze(), mean);
}
}
}