Assume you are using k-NN to classify a new observation ba…

  Assume you are using k-NN to classify a new observation based on an existing dataset. In the existing dataset, the observations are classified as red or green; stated different, the class variable has 2 classes: red or green (the graph below shows the red and green points in your dataset). You have a new observation (represented by X in the graph below) and you need to classify it as either green or red. The table below reports the Euclidian distances between the new point, X, and the existing ones. Answer the next three questions.     Euclidian X – A 0.8 X – B 1.45 X – C 1.75 X – D 1.3 X – E 0.4 X – F 0.9 X – G 0.65

You’re building a binary classifier that checks photos of in…

You’re building a binary classifier that checks photos of insect traps for whether a dangerous invasive species is present. If the model detects the species, the entomologist (insect scientist) on duty is notified. Early detection of this insect is critical to preventing an infestation. A false alarm (false positive) is easy to handle: the entomologist sees that the photo was misclassified and marks it as such. Assuming an acceptable accuracy level, which metric should this model be optimized for?