theislab / scib

Benchmarking analysis of data integration tools
MIT License
294 stars 63 forks source link

mertric about ASW #392

Open BillyChen123 opened 10 months ago

BillyChen123 commented 10 months ago

I have some question about ASW. In the definition of silhouette_batch, you say that :

        sil = [abs(i) for i in sil]

        if scale:
            # scale s.t. highest number is optimal
            sil = [1 - i for i in sil]

I can not understand why need to take absolute value and why the result of 1-sil is the higher the better?