Spaces:
Sleeping
Sleeping
added paper mention
Browse files
README.md
CHANGED
|
@@ -1,36 +1,37 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: OTRec
|
| 3 |
-
app_file: app.py
|
| 4 |
-
sdk: gradio
|
| 5 |
-
sdk_version: 6.0.1
|
| 6 |
-
---
|
| 7 |
-
# Disease–Target Recommender (Open Targets)
|
| 8 |
-
|
| 9 |
-
This Space exposes a two-tower recommender model trained on Open Targets–derived
|
| 10 |
-
disease–target data. Given a **disease ID** (matching the `diseaseId` column from
|
| 11 |
-
the preprocessed data), it returns a ranked list of predicted **target IDs**.
|
| 12 |
-
|
| 13 |
-
The backend is a TensorFlow / Keras model with:
|
| 14 |
-
- A **query tower** for diseases (disease text + disease ID embedding)
|
| 15 |
-
- A **key tower** for targets (target text only)
|
| 16 |
-
- Cosine similarity between disease and target embeddings
|
| 17 |
-
|
| 18 |
-
All candidate target embeddings are currently precomputed at startup for fast inference. (can drop)
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
├──
|
| 30 |
-
├──
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
└──
|
| 36 |
-
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: OTRec
|
| 3 |
+
app_file: app.py
|
| 4 |
+
sdk: gradio
|
| 5 |
+
sdk_version: 6.0.1
|
| 6 |
+
---
|
| 7 |
+
# Disease–Target Recommender (Open Targets)
|
| 8 |
+
|
| 9 |
+
This Space exposes a two-tower recommender model trained on Open Targets–derived
|
| 10 |
+
disease–target data. Given a **disease ID** (matching the `diseaseId` column from
|
| 11 |
+
the preprocessed data), it returns a ranked list of predicted **target IDs**.
|
| 12 |
+
|
| 13 |
+
The backend is a TensorFlow / Keras model with:
|
| 14 |
+
- A **query tower** for diseases (disease text + disease ID embedding)
|
| 15 |
+
- A **key tower** for targets (target text only)
|
| 16 |
+
- Cosine similarity between disease and target embeddings
|
| 17 |
+
|
| 18 |
+
All candidate target embeddings are currently precomputed at startup for fast inference. (can drop)
|
| 19 |
+
|
| 20 |
+
This model is used for the paper "OTRec: prospective prediction of druggable target–disease associations via deep learning"
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## Files and structure
|
| 24 |
+
|
| 25 |
+
Expected repo layout:
|
| 26 |
+
|
| 27 |
+
```text
|
| 28 |
+
.
|
| 29 |
+
├── app.py
|
| 30 |
+
├── requirements.txt
|
| 31 |
+
├── model.weights.h5
|
| 32 |
+
└── data/
|
| 33 |
+
└── proc/
|
| 34 |
+
├── disease_df.parquet
|
| 35 |
+
└── target_df.parquet
|
| 36 |
+
└── df_learn.parquet
|
| 37 |
+
|