Assignment#

Before starting this assignment, follow the instructions to install Python, activate the course environment, and launch JupyterLab.

conda activate rs

and

jupyter lab

Question 1 (10 points)#

For this assignment, I would like you to classify your Landsat image that you downloaded for Lab #4 using K-nearest neighbors and the training dataset that you produced in Lab #6. Remember to split a testing dataset from your training dataset (at least 20% of data) before training the classifier.

  • a) Produce a confusion matrix and discuss the quality of your classification in terms of errors of commission and omission using the confusion matrix and M-statistics for reference.

Question 2 (10 points)#

Export your classification as a GeoTIFF and edit your training data (i.e. the shapefiles) so that it includes polygons in places where your classifcation is inaccurate. Produce another confusion matrix based on the updated training data.

  • b) Discuss how the accuracy of your classification changes with respect to the testing dataset. Are you more or less happy with this classification relative to the original classification?

Question 3 (10 points)#

Classify the your Landsat image with two more algorithms, producing a confusion matrix for each. A list of supervised learning algorithms can be found here. Feel free to choose any, just make sure it can be used for clasification (as opposed to regression).

  • c) Discuss how the two other models perform relative to the K-nearest neighbors algorithm.

Important

Save your notebook to your local course folder and submit assignment (in .pdf format) to Canvas by the deadline.