{"id":"oscr:b:7F35PW31G147C-J","url":"https://oscr.yannbellec-b.workers.dev/b/oscr:b:7F35PW31G147C-J","status":"current","doi":"10.1038/s41588-025-02120-6","since":"2026-11-14","page":"doi_10.1038_s41588-025-02120-6","repo":"github.com/lotfollahi-lab/nichecompass","commit":"5bf7d2a09e70bd490c59e978e37f4df30f812994","path":"src/nichecompass/modules/losses.py","swhid":"swh:1:cnt:e1df31d92f0b8c9c95dce90769fc83ebe490fa42","lines":[15,120],"symbol":"compute_cat_covariates_contrastive_loss","paragraphs":[[62,"Methods › NicheCompass model › Loss function"]],"method":"lexical-v1","origin":"machine","paper":"https://doi.org/10.1038/s41588-025-02120-6","swhid_qualified":"swh:1:cnt:e1df31d92f0b8c9c95dce90769fc83ebe490fa42;origin=https://github.com/lotfollahi-lab/nichecompass;anchor=swh:1:rev:5bf7d2a09e70bd490c59e978e37f4df30f812994;path=/src/nichecompass/modules/losses.py;lines=15-120","reader":"https://oscr.yannbellec-b.workers.dev/paper/doi_10.1038_s41588-025-02120-6/?path=src%2Fnichecompass%2Fmodules%2Flosses.py#L15-L120","citation":"Code block oscr:b:7F35PW31G147C-J (https://oscr.yannbellec-b.workers.dev/b/oscr:b:7F35PW31G147C-J)\nsrc/nichecompass/modules/losses.py, lines 15 to 120, in github.com/lotfollahi-lab/nichecompass (https://github.com/lotfollahi-lab/nichecompass), commit 5bf7d2a09e70bd490c59e978e37f4df30f812994.\nPaper: https://doi.org/10.1038/s41588-025-02120-6\nSWHID: swh:1:cnt:e1df31d92f0b8c9c95dce90769fc83ebe490fa42;origin=https://github.com/lotfollahi-lab/nichecompass;anchor=swh:1:rev:5bf7d2a09e70bd490c59e978e37f4df30f812994;path=/src/nichecompass/modules/losses.py;lines=15-120"}