Code Monkey home page Code Monkey logo

bioblp's People

Contributors

dfdazac avatar dimitrisalivas avatar pmitra01 avatar thompijnenburg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bioblp's Issues

Prepare BioKG data

Prepare BioKG data with benchmark triple identification. Ensure we mark triples that are part of benchmark datasets so we can remove them for model building. Output of task is sharing of the data.

Replicating the results of "Understanding the Performance of Knowledge Graph Embeddings in Drug Discovery"

In this work, there is a lot of experimentation around KGE models for drug discovery.

Link to paper: paper

They are using the same BioKG as we do, which means that we should be able to replicate their results as long as we follow the same setup.

The script for the specific experiment is below.

#!/bin/bash
#SBATCH --job-name=bioblp-complex
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=6
#SBATCH --ntasks-per-node=1
#SBATCH --time=50:00:00
#SBATCH --mem=10G
#SBATCH --partition=gpu_shared
#SBATCH --gres=gpu:1

PROJ_FOLDER=BioBLP
OUT_FOLDER=models

# Copy data to scratch
cp -r $HOME/Projects/$PROJ_FOLDER $TMPDIR
cd $TMPDIR/$PROJ_FOLDER

source .venv/bin/activate

python -m bioblp.train \
--train_triples=data/ootb_biokg_triples/train_triples.csv \
--valid_triples=data/ootb_biokg_triples/val_triples.csv \
--test_triples=data/ootb_biokg_triples/test_triples.csv \
--dimension=464 \
--learning_rate=0.09 \
--num_epochs=600 \
--batch_size=128 \
--num_negatives=91 \
--log_wandb=True \
--loss_fn='NSSALoss' \
--notes="Replicating hyper-param experiment from Charlie paper"

# Keep files generated during job
RESULTS_FOLDER=$HOME/Projects/$PROJ_FOLDER-$OUT_FOLDER
mkdir -p $RESULTS_FOLDER
cp -r $TMPDIR/$PROJ_FOLDER/$OUT_FOLDER/* $RESULTS_FOLDER

I am currently running this experiment using the ootb-biokg-triples (out-of-the-box).

The purpose of this experiment is to pinpoint whether the removal of benchmark triples had such a huge effect in our performance, or whether there is an unidentified mistake on our side.

Literature review to select classic predictive approaches to benchmark tasks

Similar to the paper here https://academic.oup.com/bioinformatics/article/36/2/603/5542390?login=true#192289302 , we want to be able to refer to scores of conventional approaches to the benchmark tasks. We need to index:

  • What are the conventional models that do well, and specific works that SOTA the subtask (SVM / KronRLS)?
  • What are the training and evaluation regimes?
  • Does their data correspond to our version so we can point to their scores directly?
  • What is the estimated complexity of implementing the method in our codebase?

As mentioned in above paper we have methods:

  • DDR (Olayan et al., 2018)
  • NRLMF (Hao et al., 2017)
  • NRLMF (Liu et al., 2015)
  • KRONRLS-MKL (Nascimento et al. 2016)
  • COSINE (Lim et al., 2016)
  • BLM-NII (Mei et al., 2013).

Entity to ID maps are not consistent

During training, the dictionaries mapping entities and relation to their IDs, are created independently for the training, validation, and test sets:

BioBLP/bioblp/train.py

Lines 57 to 62 in 25cab7a

training = TriplesFactory.from_path(
args.train_triples,
create_inverse_triples=args.add_inverses
)
validation = TriplesFactory.from_path(args.valid_triples)
testing = TriplesFactory.from_path(args.test_triples)

This means that incorrect embeddings are being used during validation and testing. Performance will thus be random although due to some ordering done when creating the dictionaries, in practice it's not completely random.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.