09.05.2023 Views

pdfcoffee

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

An introduction to AutoML

The token can be now uploaded on the cloud ephemeral VM via the console (see

Figure 29):

Figure 29: Kaggle – uploading the Kaggle token

Move the uploaded kaggle.json key to the directory. Download the dataset from

Kaggle to Google Cloud Storage, unzip the archives, and move to a Google Cloud

Platform (GCP) bucket, with the following commands:

Instructions for creating cloud storage can be found at https://

cloud.google.com/storage/docs/quickstart-console.

a_gulli@cloudshell:~$ mv kaggle.json .kaggle/

a_gulli@cloudshell:~$ kaggle datasets download paultimothymooney/chestxray-pneumonia

a_gulli@cloudshell:~$ unzip chest-xray-pneumonia.zip

a_gulli@cloudshell:~$ unzip chest_xray.zip

a_gulli@cloudshell:~$ gsutil -m cp -r chest_xray gs://authentica-de791-

vcm/chestXrays

Now we can create a new dataset for the visual training. We need a list of images

on Google storage where each image is annotated with a label, as in the following

example:

['gs://authentica-de791-vcm/chestXrays/train/NORMAL/IM-0115-0001.

jpeg', 'NORMAL']

['gs://authentica-de791-vcm/chestXrays/train/NORMAL/IM-0117-0001.

jpeg', 'NORMAL']

[ 516 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!