def train(self, *args, **kwargs):
        if len(args) == 0:
            # Model.train(classifier=KNN)
            Classifier = kwargs.pop("Classifier", NB)
        if len(args) >= 1:
            # Model.train(KNN, k=1)
            Classifier = args[0]; args=args[1:]
        kwargs["train"] = self
        self._classifier = Classifier(*args, **kwargs)
        self._classifier.finalize()
Validate action result
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Model.train--crossover with--dataset/ETHPy150Open gooddata/smoker/smoker/server/plugins/__init__.py/Result._validate_action