Skip to content

Metric learning-based predictive model for small datasets

License

Notifications You must be signed in to change notification settings

aorliche/LatentSimilarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LatentSimilarity

Metric learning-based predictive model for small, high dimensional datasets

LatSim overview

A. Orlichenko et al., "Latent Similarity Identifies Important Functional Connections for Phenotype Prediction," in IEEE Transactions on Biomedical Engineering, doi: 10.1109/TBME.2022.3232964.

Capabilities

  • Very fast runtime
  • High accuracy on limited data
  • Multimodal
  • Sklearn interface

Requirements

  • python
  • pytorch with cuda
  • numpy
  • sklearn
  • requests (to get sample data)

Usage

Take a look at the example in the notebooks directory for sample usage.

from sklearn.model_selection import train_test_split
from latsim import LatSimClf

...

xtr, xt, ytr, yt = train_test_split(x, y, stratify=y, train_size=0.75)

clf = LatSimClf().fit(xtr,ytr,ld=1)
yhat = clf.predict(xt)

An interactive demo was available here. We are working to put up another version.

Contact

Anton Orlichenko | [email protected]
aorliche.github.io MBB Laboratory

About

Metric learning-based predictive model for small datasets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published