[BRIEF DESCRIPTION OF THE SLACK AND ITS PURPOSE]
The current admins are:
- [NAMES]
from sklearn.base import BaseEstimator | |
def piper(self, other): | |
from sklearn.pipeline import make_pipeline, Pipeline | |
if isinstance(self, Pipeline): | |
steps = ([estimator for (name, estimator) in self.steps] + [other]) | |
return make_pipeline(*steps) | |
else: | |
return make_pipeline(self, other) |
The imports for building the various field-oriented optics are pretty minimal. It's not
until you make a Getter or a Fold that you need to look outside of base
.
This cookbook only covers the field oriented optics and not the constructor oriented ones.
If you want to build a Prism or an Iso without a lens dependency, you should
copy the definition of lens' prism
and iso
combinators and add a profunctors dependency
to your project. Those two combinators are quite self-contained.