The machine learning application in this page uses a decision tree based cloud property retrieval from remote sensing data.
- Launch instances on EC2 console:
-
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. -
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.
- Configure Number of instances
We use 1 instance for single machine computation.
- Configure Security Group
- Review, Create your SSH key pair, and Launch
- View your Instance and wait for Initialing
- SSH into your instance
- Copy bootstrap.sh to your instance, and run the script
sudo bash bootstrap.sh
-
Run ML CPU application:
cd ML_based_Cloud_Retrieval_Use_Case/Code && /usr/bin/python3.6 ml_based_cloud_retrieval_with_data_preprocessing.py
-
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
-
Terminate the virtual machine on EC2 when finishing experiments.