def get_ancestor(self, klass):
        if isinstance(self, klass):
            return self
        parent = self.parent
        if parent:
            return parent.get_ancestor(klass)

    #
    # Transform properties
    #
Please call predict instead.
dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py/CocosNode.get_ancestor--crossover with--dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/RidgeRegression.py/KernelRidgeRegression.predictValue