Skip to content

Commit

Permalink
update percentile to ensure at least one feature is returned (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianeod authored Dec 16, 2020
1 parent 8a3c227 commit 2540ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fresh/select.q
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ fresh.sigfeat:{[t;y]
/ feature selection
fresh.benjhoch:{[v;d]where d<=v*s%k*sums 1%s:1+til k:count d:asc d}
fresh.ksigfeat:{[k;d]key k sublist asc d}
fresh.percentile:{[p;d]where d<fresh.feat.quantile[value d]p}
fresh.percentile:{[p;d]where d<=fresh.feat.quantile[value d]p}

fresh.significantfeatures:{[t;y;f]f fresh.sigfeat[t;y]}

0 comments on commit 2540ade

Please sign in to comment.