Skip to content

Commit

Permalink
Added 'EstimatorProxy.classes_' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Mar 3, 2024
1 parent 8761994 commit e766c42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sklearn2pmml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ def _copy_attrs(self):
if hasattr(self.estimator, attr_name):
setattr(self, attr_name, getattr(self.estimator, attr_name))

@property
def classes_(self):
return self.estimator.classes_

def fit(self, X, y = None, **fit_params):
self.estimator.fit(X, y, **fit_params)
self._copy_attrs()
Expand Down

0 comments on commit e766c42

Please sign in to comment.