Skip to content

Commit

Permalink
Adding the 'Other' class to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancaraballo committed Oct 18, 2024
1 parent 9f771ec commit ed87c85
Showing 1 changed file with 16 additions and 33 deletions.
49 changes: 16 additions & 33 deletions notebooks/examples/bin_peng/ValidationDashboard-Peng.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,10 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "3020b230-dcf3-486a-af7e-4568a7160c10",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Downloading WhiteboxTools pre-compiled binary for first time use ...\n",
"Decompressing WhiteboxTools_linux_amd64.zip ...\n",
"WhiteboxTools package directory: /srv/conda/envs/notebook/lib/python3.9/site-packages/whitebox\n",
"Unexpected error: <class 'FileNotFoundError'>\n"
]
}
],
"outputs": [],
"source": [
"import os\n",
"import sys\n",
Expand All @@ -66,25 +55,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "10f1da5e-8255-4bfe-918f-52fe1881ee87",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b29cc7284f984091be779db51466a7b8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"ValidationDashboard(center=[4, -70], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"dashboard = ValidationDashboard(\n",
" default_max_zoom=80,\n",
Expand All @@ -93,21 +67,30 @@
" center=[4, -70],\n",
" marker_type='polygon',\n",
" validation_classes=[\n",
" 'Evergreen Forest',\n",
" 'Cropland (herbaceous)',\n",
" 'Deciduous Forest',\n",
" 'Evergreen Forest',\n",
" 'Grassland',\n",
" 'Shrubland',\n",
" 'Cropland (herbaceous)',\n",
" 'Urban',\n",
" 'Wetland',\n",
" 'Water'\n",
" 'Water',\n",
" 'Other'\n",
" ],\n",
" filter_points_by='Group1',\n",
" output_dir='/home/jovyan/efs/BinPeng_Colombia/validation',\n",
" validation_points_filename='/home/jovyan/efs/BinPeng_Colombia/original_data/ValidationPolygonColumbia-EO-Validation.gpkg'\n",
")\n",
"display(dashboard)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b7c227d0-9cac-4772-957b-b89442829111",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit ed87c85

Please sign in to comment.