Skip to main content

PyTrial

PyTrial: A Python Package for Artificial Intelligence in Drug Development

Doc Tutorial

Downloads License Python 3.7+ Sunlab

A series of clinical trial tasks that are supported by PyTrial.

⭐ Features

PyTrial is designed for both ML researchers and medical practioners, which is featured for

🚀 Installation

  • Before install PyTrial, we need to install pytorch first. Please refer to install PyTorch for a version that suits your device.

  • Then, it is easy to install PyTrial from github source:

pip install git+https://github.com/RyanWangZf/pytrial.git@main

The package is tested on python==3.7.

We DO NOT recommend downloading from PyPI temporarily because PyTrial is undergoing development swiftly.

☀️ Philosophy

In PyTrial, performing a task boils down to three steps: load data -> define model -> fit and predict.

To minimize the efforts learning to use PyTrial, we keep a consistent user interface for all tasks all models, i.e.,

model.fit(train_data, val_data)

model.predict(test_data)

model.save_model(save_dir)

model.load_model(load_dir)

hence all tasks are defined the input and output. All we need to do is to prepare for the input following the protocol.

📖 Documentation

We provide the following tutorials to help users get started with our PyTrial. After go through all these chapters, you will become the expert in AI for clinical trials and are ready to explore the frontier of this field.

The full documentation is at PyTrial-docs.

The principle of PyTrial

Tutorials for each task

Additional utilities

😃 Citing

If you use PyTrial in a scientific publication, we would appreciate citations to:

@misc{pytrial2023,
    title = {PyTrial: A Comprehensive Platform for Artificial Intelligence for Drug Development},
    author = {Wang, Zifeng and Theodorou, Brandon and Fu, Tianfan and Xiao, Cao and Sun, Jimeng},
    year = {2023},
    month = {06},
    organization = {SunLab, UIUC},
    url = {https://pytrial.readthedocs.io/en/latest/},
}

Metadata

Release files for PyTrial 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyTrial 0.0.6
File Size Uploaded
PyTrial-0.0.6.tar.gz 188.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyTrial 0.0.6
File Interpreter ABI Platform
PyTrial-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 458.9 kB

Release files / PyTrial-0.0.6.tar.gz

Download URL PyTrial-0.0.6.tar.gz
Size 188.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6806f6966b3f3ed88650a567695e4a161b37a00cea8b5c5ac2010a001d4cf9d5
BLAKE2b-256 checksum
How to use checksums
4b30040baa2713920cc976400a4256f4d16c3bfafc43a09187c8c02e120bac3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.15

Release files / PyTrial-0.0.6-py3-none-any.whl

Download URL PyTrial-0.0.6-py3-none-any.whl
Size 270.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd767731e1d4f15372a061022872f2b7a24fdf2048c5a057eb5186128746c7f9
BLAKE2b-256 checksum
How to use checksums
0b4c801284261955600516cd1e865e83024d1058230bdd6cb70ed455da995208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.15

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page