was stuck in some other work. I tried removing the MetricSpace class and all the instances. The compiler throws errors when I do that. It specifically asks me to add the instances that I commented out.
No instance for (MetricSpace DataPoint)
arising from a use of `classify'
Possible fix:
add an instance declaration for (MetricSpace DataPoint)
In the expression: classify m
In the expression: classify m $ snd inst
In an equation for `predicted_label':
predicted_label = classify m $ snd inst
was stuck in some other work. I tried removing the MetricSpace class and all the instances. The compiler throws errors when I do that. It specifically asks me to add the instances that I commented out.