pyradigm.py 文件源码

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

项目:pyradigm 作者: raamana 项目源码 文件源码
def feature_names(self, names):
        "Stores the text labels for features"

        if len(names) != self.num_features:
            raise ValueError("Number of names do not match the number of features!")
        if not isinstance(names, (Sequence, np.ndarray, np.generic)):
            raise ValueError("Input is not a sequence. Ensure names are in the same order and length as features.")

        self.__feature_names = np.array(names)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号