concept.py 文件源码

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

项目:ConceptualSpaces 作者: lbechberger 项目源码 文件源码
def __init__(self, core, mu, c, weights):
        """Initializes the concept."""

        if (not isinstance(core, cor.Core)) or (not cor.check(core._cuboids, core._domains)):
            raise Exception("Invalid core")

        if mu > 1.0 or mu <= 0.0:
            raise Exception("Invalid mu")

        if c <= 0.0:
            raise Exception("Invalid c")

        if (not isinstance(weights, wghts.Weights)) or (not wghts.check(weights._domain_weights, weights._dimension_weights)):
            raise Exception("Invalid weights")

        self._core = core
        self._mu = mu
        self._c = c
        self._weights = weights
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号