Skip to content

Commit

Permalink
Small edit to improve spearman distance. Makes a huge difference..., …
Browse files Browse the repository at this point in the history
…I'm not really sure why
  • Loading branch information
ianran committed Jul 20, 2024
1 parent a1f5757 commit 3f39bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion experiments/run_multiple_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ number_runs=50
fake_func=linear
#model=gp

for selc in ACQ_EPIC ACQ_SPEAR ACQ_RHO #BAYES_INFO_GAIN SGV_UCB MUTUAL_INFO UCB
for selc in ACQ_LL ACQ_EPIC ACQ_SPEAR ACQ_RHO #BAYES_INFO_GAIN SGV_UCB MUTUAL_INFO UCB
#for selc in UCB SGV_UCB MUTUAL_INFO MUTUAL_UCB
do
for fake_func in min #linear #squared_min_max max min logistic squared sin_exp
Expand Down
3 changes: 2 additions & 1 deletion src/lop/active_learning/AcquisitionSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def alignment(self, all_rep, Q_rep):
ranked = np.argsort(all_rep, axis=1)

spearman = np.corrcoef(ranked)
#spear_dis = np.sqrt(1 - spearman) / np.sqrt(2)
spear_dis = np.sqrt(1 - spearman) / np.sqrt(2)
return -spear_dis
return spearman

elif self.alignment_f == 'one':
Expand Down

0 comments on commit 3f39bd7

Please sign in to comment.