File size: 1,199 Bytes
c67a136
 
 
 
0e580ab
 
 
 
c67a136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0e580ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: OTRec
app_file: app.py
sdk: gradio
sdk_version: 6.1.0
license: mit
emoji: 🦀
short_description: 'OTRec: prediction of druggable target–disease associations'
---
# Disease–Target Recommender (Open Targets)

This Space exposes a two-tower recommender model trained on Open Targets–derived
disease–target data. Given a **disease ID** (matching the `diseaseId` column from
the preprocessed data), it returns a ranked list of predicted **target IDs**.

The backend is a TensorFlow / Keras model with:
- A **query tower** for diseases (disease text + disease ID embedding)
- A **key tower** for targets (target text only)
- Cosine similarity between disease and target embeddings

All candidate target embeddings are currently precomputed at startup for fast inference. (can drop)

This model is used for the paper "OTRec: prospective prediction of druggable target–disease associations via deep learning"
---

## Files and structure

Expected repo layout:

```text
.
├── app.py
├── requirements.txt
├── model.weights.h5
└── data/
    └── proc/
        ├── disease_df.parquet
        └── target_df.parquet
        └── df_learn.parquet