Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid creating SparseVectors for LOCO #377

Merged
merged 19 commits into from
Aug 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
redundant toArray
  • Loading branch information
gerashegalov committed Aug 8, 2019
commit c3f743de7ae42c5be1ec367b14be193f4b5293cf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ class RecordInsightsLOCO[T <: Model[T]]
// Besides non 0 values, we want to check the text/date features as well
val zeroValIndices = (textFeatureIndices ++ dateFeatureIndices)
.filterNot(featureIndexSet.contains)
.toArray

// Count zeros by feature name
val zeroCountByFeature = zeroValIndices
Expand Down