Class Responsibilities
Learn about the class responsibilities in Python.
We'll cover the following...
Overview
Which class is responsible for actually performing a test? Does the TrainingData
class invoke the classifier on each KnownSample
in a testing set? Or, perhaps, does it provide the testing set to the Hyperparameter
class, delegating the testing to the Hyperparameter
class? Since the Hyperparameter
class has responsibility for the
k
value, and the algorithm for locating the k-nearest neighbors, it seems sensible for the Hyperparameter
class to ...