Skip to content

Commit

Permalink
select optimal params as those which maximise metric value, not just …
Browse files Browse the repository at this point in the history
…largest parameters
  • Loading branch information
Max Woollard committed Sep 17, 2024
1 parent 7c97929 commit 694d193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/exploreWSIRParams.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ exploreWSIRParams = function(exprs,

chosen_metric_df <- res_df[(res_df$metric == metric),]

best_alpha = chosen_metric_df$alpha[which.max(chosen_metric_df$alpha)]
best_slices = chosen_metric_df$slices[which.max(chosen_metric_df$slices)]
best_alpha = chosen_metric_df$alpha[which.max(chosen_metric_df$value)]
best_slices = chosen_metric_df$slices[which.max(chosen_metric_df$value)]

res_df$alpha <- res_df$alpha %>% as.factor()
res_df$slices <- res_df$slices %>% as.factor()
Expand Down

0 comments on commit 694d193

Please sign in to comment.