Skip to content

Commit

Permalink
Ensured compatibility with Scikit-Learn 1.0.2 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Sep 20, 2023
1 parent 80fd6c0 commit a231304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sklearn2pmml/cross_reference/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.pipeline import FeatureUnion
from sklearn2pmml.preprocessing import IdentityTransformer

import numpy

def make_memorizer_union(memory, names):
return FeatureUnion([
("memorizer", Memorizer(memory, names)),
("passthrough", "passthrough"),
("identity", IdentityTransformer()),
])

def make_recaller_union(memory, names):
return FeatureUnion([
("recaller", Recaller(memory, names)),
("passthrough", "passthrough")
("identity", IdentityTransformer())
])

class _BaseMemoryManager(BaseEstimator, TransformerMixin):
Expand Down

0 comments on commit a231304

Please sign in to comment.