_base.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:ibex 作者: atavory 项目源码 文件源码
def __add__(self, other):
        """

        Returns:
            :py:class:`ibex.sklearn.pipeline.FeatureUnion`
        """

        if isinstance(self, FeatureUnion):
            self_features = [e[1] for e in self.transformer_list]
        else:
            self_features = [self]

        if isinstance(other, FeatureUnion):
            other_features = [e[1] for e in other.transformer_list]
        else:
            other_features = [other]

        combined = self_features + other_features

        return FeatureUnion(_make_pipeline_steps(combined))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号