Skip to content

MLDAS Documentation Grid hyperparameter search
Type to start searching
ml4science/mldas
  • Documentation
  • Try it on Google Colab
ml4science/mldas
  • Software Structure
  • Python executables
  • Configuration files
  • Deep Learning trainers
  • Production methods
  • Explore modules
  • Platform Flexibility
  • Google Colaboratory
  • HPC compatibility
  • MLDAS Wrapper
  • Machine Learning training
  • Exploratory Data Analysis
  • Raw data to training images
  • Feature extraction
  • Cross-correlation
  • Phase-weighted stack
  • Machine Learning Applications
  • Autoencoder
  • Variational Auto-Encoder
  • t-SNE clustering
  • UMAP clustering
  • Image classification
  • Image segmentation
  • Published Works
  • Surface wave identification
  • Grid hyperparameter search
    • Grid hyperparameter search
      • Getting Started
      • Fig. 1: Parallel plot
      • Fig. 2: GPU scaling
      • Fig. 3: Probability per model
    • Show Source
  • Grid hyperparameter search
    • Getting Started
    • Fig. 1: Parallel plot
    • Fig. 2: GPU scaling
    • Fig. 3: Probability per model
  • Show Source

Grid hyperparameter search ¶

Open In Colab ArXiv

↑ Click on “Open in Colab” to execute this notebook live on Google Colaboratory.

Getting Started ¶

First, we need to mount the Google Drive so we can access the Distributed Acoustic Sensing data stored in it. After execution, the following script will provide a link. Open the link and follow the instructions to get the one-time password. If you have several Google accounts logged on your computer, make sure you use the one the DAS data were shared with.

Some of the data used in this work are proprietary data and may be shared under specific circumstances. Please contact the corresponding author, Vincent Dumont if you would like to request access to the data or have any questions regarding this project.

Upon authorization to share the data, a link to a shared Google Drive folder will be send to you. After clicking on the link, the shared folder (called DAS_data ) will be listed under the Shared with me section of your Google Drive, you can then do a right click on that folder and click Add shortcut to Drive , this will add the folder to your My Drive repository.

Finally, executing the following cell will mount your Google Drive to this instance of Google Colab and give you access to the data:

[1]:
from google.colab import drive
drive.mount('/content/drive')
Mounted at /content/drive
[2]:
data_path = '/content/drive/MyDrive/DAS_data/'
[3]:
%%capture
!git clone https://gitlab.com/ml4science/mldas
!pip install -r mldas/requirements.txt
!ln -s /content/mldas/mldas $(python -c "import pip; print(pip.__path__[0].rstrip('/pip'))")/
[6]:
%%capture
!tar -zxvf /content/drive/MyDrive/DAS_data/all_jobs.tar.gz

Fig. 1: Parallel plot ¶

[7]:
from IPython.display import Image
!./mldas/bin/das_parallel.py -r all_jobs/ -ec -p 0.1
Image('parallel_coordinates.png')
7314 jobs in total.
Processing column 1 out of 9
Processing column 2 out of 9
Processing column 3 out of 9
Processing column 4 out of 9
Processing column 5 out of 9
Processing column 6 out of 9
Processing column 7 out of 9
Processing column 8 out of 9
Processing column 9 out of 9
[7]:
../_images/papers_grid_hyperparameter_search_7_1.png

Fig. 2: GPU scaling ¶

[8]:
from IPython.display import Image
!./mldas/bin/das_scaletune.py scaling -iu -t 'all_jobs/multiclass/2-neuron/1-channel/gpu-n*-ds*-bs*-ep1-dp8-lr0.01'
Image('scaling.png')
[8]:
../_images/papers_grid_hyperparameter_search_9_0.png

Fig. 3: Probability per model ¶

[10]:
from IPython.display import Image
!./mldas/bin/das_scaletune.py assess -t /content/drive/MyDrive/DAS_data/record_ds1.txt -d /content/drive/MyDrive/DAS_data
Image('plot.png')
[10]:
../_images/papers_grid_hyperparameter_search_11_0.png
LBL Logo DOE Office of Science logo
© Copyright 2020, The Regents of the University of California. All rights reserved.
Last updated on Mar 22, 2022.
Created using Sphinx 4.4.0. and Material for Sphinx