Code Monkey home page Code Monkey logo

pporank's Introduction

PPORank

Deep reinforcement learning for personalized drug recommendation

Dependecies

Python>=3.7.10; torch(1.18.1); yaml(0.1.7); numpy(>=1.18.1); pandas(1.0.0); scipy(1.4.1); seaborn(0.8.1); tensorboard (1.15.5); matplotlib(3.1.1); joblib(0.14.1); json5(0.8.5);jupyter(1.0.0); tqdm (4.42.0) For drugs processing: deepchem (2.5.0); h5py(2.10.0); hdf5(1.10.4)

PPORank usage

The implementation of PPORank is in "main.py": (cpu version) : The following is an exmaple for GDSC dataset when training with 16 actors, projection dimension of 100 without normalize y more details can be found in arguments.py

python main.py   --num_processes 16  --nlayers_deep 2 --Data GDSC_ALL --analysis FULL  --algo ppo --f 100  --normalize_y 

model logs dir : ./logs

model saved dir: ./Saved

model prediction saved dir: ./results

The clean data could be found in

Data Sharing

Scripts for runing the experiments

Download and preprocess the GDSC dataset:

python ./preprocess/load_dataset.py load_GDSC.txt

Split the data for training and testing, create folds for cross-validation and Pretrain the MF layers' weight

python prepare.py config.yaml

Runing the experiments on ppo (with config file "./configs/configS_base.yaml"):

python results.py > results_ppo.txt

PPO experiment with TCGA cohort

 python load_TCGA.py
 
 python results_TCGA.py ./TCGA/TCGA_BRCA.npz 

pporank's People

Contributors

mylzwq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

hanyghazal79

pporank's Issues

no baselines in your repo

Hi,
In folder "PPORank/preprocess/" preprocess_fts_cl_drug.py, it says "from Baseline.CaDRRes import predict_CaDRRes". But I found no baselines in your repo.
Could you please help me.
Thanks

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.