File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ class ML::SparseMatrixRecommender
547547 if $ vector-result {
548548
549549 if $ nrecs < $ rec . rows-count {
550- $ rec = $ rec . top-k-elements-matrix($ nrecs )
550+ $ rec = $ rec . top-k-elements-matrix($ nrecs , :! clone )
551551 }
552552
553553 } else {
@@ -608,8 +608,6 @@ class ML::SparseMatrixRecommender
608608
609609 # # Compute recommendations
610610 my $ rec = $ ! M . dot($ vec );
611- # my $rec = $!M.to-adapted.dot($svec.to-adapted);
612- # $rec.core-matrix = $rec.core-matrix.to-csr;
613611
614612 # # Normalize
615613 if $ normalize {
@@ -620,7 +618,7 @@ class ML::SparseMatrixRecommender
620618 if $ vector-result {
621619
622620 if $ nrecs < $ rec . rows-count {
623- $ rec = $ rec . top-k-elements-matrix($ nrecs )
621+ $ rec = $ rec . top-k-elements-matrix($ nrecs , :! clone )
624622 }
625623
626624 } else {
You can’t perform that action at this time.
0 commit comments