Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Random-Forest-Mangrove-Python: Mangrove_RF (2).ipynb

Pemetaan Mangrove Menggunakan Random Forest


oleh : Defani Arman Alfitriansyah

LinkedIn Medium TikTok Instagram Kaggle RPubs Behance Email GitHub

Requirement already satisfied: earthengine-api in /usr/local/lib/python3.12/dist-packages (1.7.29)
Requirement already satisfied: geemap in /usr/local/lib/python3.12/dist-packages (0.37.3)
Collecting cartopy
  Downloading cartopy-0.25.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (6.1 kB)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.12/dist-packages (3.10.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.12/dist-packages (2.0.2)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.12/dist-packages (1.6.1)
Requirement already satisfied: google-cloud-storage in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (3.10.1)
Requirement already satisfied: google-api-python-client>=1.12.1 in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (2.197.0)
Requirement already satisfied: google-auth>=2.29.0 in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (2.47.0)
Requirement already satisfied: google-auth-httplib2>=0.2.0 in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (0.4.0)
Requirement already satisfied: httplib2<1dev,>=0.9.2 in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (0.31.2)
Requirement already satisfied: requests in /usr/local/lib/python3.12/dist-packages (from earthengine-api) (2.32.4)
Requirement already satisfied: anywidget in /usr/local/lib/python3.12/dist-packages (from geemap) (0.9.21)
Requirement already satisfied: bqplot in /usr/local/lib/python3.12/dist-packages (from geemap) (0.12.47)
Requirement already satisfied: eerepr>=0.1.0 in /usr/local/lib/python3.12/dist-packages (from geemap) (0.1.2)
Requirement already satisfied: folium>=0.17.0 in /usr/local/lib/python3.12/dist-packages (from geemap) (0.20.0)
Requirement already satisfied: geocoder in /usr/local/lib/python3.12/dist-packages (from geemap) (1.38.1)
Requirement already satisfied: ipyevents in /usr/local/lib/python3.12/dist-packages (from geemap) (2.0.4)
Requirement already satisfied: ipyfilechooser>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from geemap) (0.6.0)
… (133 baris lagi)
Loading...
EXTRACTING REFLECTANCE DATA...
TRAINING RANDOM FOREST...
Loading...
<Figure size 1000x1000 with 1 Axes>
Loading...
<Figure size 1000x1000 with 1 Axes>
Loading...
<Figure size 700x500 with 2 Axes>
OVERALL ACCURACY: 0.9455
KAPPA COEFFICIENT: 0.8511
Loading...
<Figure size 1000x600 with 1 Axes>
## Correlation Heatmap

To understand the relationship between the input variables (bands and indices) and the target classes, we can generate a correlation heatmap. This helps in identifying which variables have a stronger influence on distinguishing between the different land cover types.
Loading...
Converting training data to pandas DataFrame...
Loading...
Loading...
Loading...
<Figure size 800x1000 with 2 Axes>
Loading...
<Figure size 1000x1000 with 1 Axes>