'Set the feature weight vector for this classifier.
:param new_weights: The new feature weight vector.
:type new_weights: list of float'

def set_weights(self, new_weights):

    self._weights = new_weights
    assert (self._encoding.length() == len(new_weights))
