Skip to content

Commit

Permalink
Reorder parent classes. (scikit-learn-contrib#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzsohar authored Mar 29, 2020
1 parent e588f28 commit a12863c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skltemplate/_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def predict(self, X):
return np.ones(X.shape[0], dtype=np.int64)


class TemplateClassifier(BaseEstimator, ClassifierMixin):
class TemplateClassifier(ClassifierMixin, BaseEstimator):
""" An example classifier which implements a 1-NN algorithm.
For more information regarding how to build your own classifier, read more
Expand Down Expand Up @@ -133,7 +133,7 @@ def predict(self, X):
return self.y_[closest]


class TemplateTransformer(BaseEstimator, TransformerMixin):
class TemplateTransformer(TransformerMixin, BaseEstimator):
""" An example transformer that returns the element-wise square root.
For more information regarding how to build your own transformer, read more
Expand Down

0 comments on commit a12863c

Please sign in to comment.