Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2.17 KB

Web_based_single_CPU_example_with_script.md

File metadata and controls

53 lines (37 loc) · 2.17 KB

Web based Execution on a Single CPU with Script

The machine learning application in this page uses a decision tree based cloud property retrieval from remote sensing data.

  1. Launch instances on EC2 console:


  1. Choose an Amazon Machine Image (AMI)
    An AMI is a template that contains the software configuration (operating system, application server, and applications) required to launch your instance. For CPU applications, we use Ubuntu Server 20.04 LTS (HVM), SSD Volume Type.

  2. Choose an Instance Type
    Based on your purpose, AWS provides various instance types on https://aws.amazon.com/ec2/instance-types/. For CPU application, we recommand to use c5.2xlarge instance.


  1. Configure Number of instances
    We use 1 instance for single machine computation.


  1. Configure Security Group


  1. Review, Create your SSH key pair, and Launch


  1. View your Instance and wait for Initialing


  1. SSH into your instance


  1. Copy bootstrap.sh to your instance, and run the script
sudo bash bootstrap.sh
  1. Run ML CPU application:

    cd ML_based_Cloud_Retrieval_Use_Case/Code && /usr/bin/python3.6 ml_based_cloud_retrieval_with_data_preprocessing.py
  2. Run application via Jupyter Notebook (optional):

    pip3 install jupyterlab
    jupyter-lab --ip=*

    Now you can open your web browser to open JuypterLab based on it domain name and Jupyter token. Here is an example is http://ec2-54-186-96-63.us-west-2.compute.amazonaws.com:8888/?token=b9143e017355e42660cbed9f269793fba8837a6f0c0f03ef

  3. Terminate the virtual machine on EC2 when finishing experiments.