GithubHelp home page GithubHelp logo

matsuurakentaro / optimal_dose_escalation_in_phase_i_oncology_trials Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 1.53 MB

Supplementary Materials for Kentaro Matsuura, Kentaro Sakamaki, Junya Honda, Takashi Sozu "Optimal Dose Escalation Methods using Deep Reinforcement Learning in Phase I Oncology Trials" Journal of Biopharmaceutical Statistics 2022

Python 100.00%

optimal_dose_escalation_in_phase_i_oncology_trials's Introduction

Optimal Dose Escalation Methods using Deep Reinforcement Learning in Phase I Oncology Trials

Supplementary Materials for Kentaro Matsuura, Kentaro Sakamaki, Junya Honda, Takashi Sozu "Optimal Dose Escalation Methods using Deep Reinforcement Learning in Phase I Oncology Trials" Journal of Biopharmaceutical Statistics 2022; (doi:xxxx)

How to Setup

We recommend using Linux or WSL on Windows, because the Ray package in Python is more stable on Linux. For example, in Ubuntu 20.04 (Python 3.8 was already installed), I was able to install the necessary packages with the following commands.

Install Ray

sudo apt update
sudo apt upgrade
sudo apt install python3-pip
sudo pip3 install torch
sudo pip3 install -U ray

Install R and RPy2

To install R, see https://cran.r-project.org/bin/linux/ubuntu/

sudo pip3 install rpy2

Install DoseFinding package in R

install.packages('DoseFinding')

How to Use

Change simulation settings

To change the simulation settings, it is necessary to understand RLE/envs/RLEEnv.py. This part is a bit difficult. Therefore, we have a plan to create an R package to use our method easily.

Obtain adaptive allocation rule

To obtain RLE by learning, please run learn_RLE.py like:

nohup python3 learn_RLE.py > std.log 2> err.log &

When we used c2-standard-4 (vCPUx4, RAM16GB) on Google Cloud Platform, the learning was completed within a day.

Simulate single trial

After the learning, we will obtain a checkpoint in ~/ray_results/PPO_RLE-v0_[datetime]-[xxx]/checkpoint-[yyy]/. To simulate single trial using the obtained rule, please move the checkpoint directory (checkpoint-[yyy]) to checkpoint/ in this repository, and edit the path in simulate-single-trial_RLE.py. Then, please run it:

python3 simulate-single-trial_RLE.py

optimal_dose_escalation_in_phase_i_oncology_trials's People

Contributors

matsuurakentaro avatar

Watchers

 avatar  avatar  avatar

Forkers

oskn-fish

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.