Skip to main content

GAGA = GAN for GATE

pip install gaga-phsp

Scripts associated with the publication : Phys Med Biol. 2019 doi: https://doi.org/10.1088/1361-6560/ab3fc1 Generative adversarial networks (GAN) for compact beam source modelling in Monte Carlo simulations Sarrut D, Krah N, Letang JM. https://www.ncbi.nlm.nih.gov/pubmed/31470418

A method is proposed and evaluated to model large and inconvenient phase space files used in Monte Carlo simulations by a compact Generative Adversarial Network (GAN). The GAN is trained based on a phase space dataset to create a neural network, called Generator (G), allowing G to mimic the multidimensional data distribution of the phase space. At the end of the training process, G is stored with about 0.5 million weights, around 10MB, instead of few GB of the initial file. Particles are then generated with G to replace the phase space dataset.
 
 This concept is applied to beam models from linear accelerators (linacs) and from brachytherapy seed models. Simulations using particles from the reference phase space on one hand and those generated by the GAN on the other hand were compared. 3D distributions of deposited energy obtained from source distributions generated by the GAN were close to the reference ones, with less than 1% of voxel-by-voxel relative difference. Sharp parts such as the brachytherapy emission lines in the energy spectra were not perfectly modeled by the GAN. Detailed statistical properties and limitations of the GAN-generated particles still require further investigation, but the proposed exploratory approach is already promising and paves the way for a wide range of applications

Tests in opengate (https://github.com/OpenGATE/opengate): see test066.

Metadata

Release files for gaga-phsp 0.7.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 gaga-phsp 0.7.6
File Size Uploaded
gaga_phsp-0.7.6.tar.gz 67.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gaga-phsp 0.7.6
File Interpreter ABI Platform
gaga_phsp-0.7.6-py3-none-any.whl Python 3 none any Details

Total release size: 154.3 kB

Release files / gaga_phsp-0.7.6.tar.gz

Download URL gaga_phsp-0.7.6.tar.gz
Size 67.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0cb02e936045dc943b72ff7b6e76f5081a4276f8cd0c0ba60b98fea5c93d4ad6
BLAKE2b-256 checksum
How to use checksums
c3b7ae26d2218d4b76cfbb067c78e657a49a3837eb5ecdcaa974fb91ef8de381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / gaga_phsp-0.7.6-py3-none-any.whl

Download URL gaga_phsp-0.7.6-py3-none-any.whl
Size 87.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f49966cc3c57cd1043a56645f7c4e4b476eeaa271fb10e7faa68d314c9a8573
BLAKE2b-256 checksum
How to use checksums
613421f5c44eaa2d5700aa6ff82c11528d455ae65a4f4af3244f5795292197be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.7.6 This release

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.11

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5

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