Would this make more sense as part of the constructor? This would mean that you should update the state of the classifier if a user changes this value.