Skip to content

Have the generalized score functions for GES been tested? #221

Closed
@shahashka

Description

@shahashka

I want to used the "local_score_CV_general" score function with GES, but I'm running into an issue with a random test case:

import numpy as np
from causallearn.search.ScoreBased.GES import ges
X = np.random.rand(10,10)
result = ges(X, score_func="local_score_CV_general")

With the following error message

line 360, in local_score_cv_general
dists = Q + R - 2 * X * X.T
ValueError: operands could not be broadcast together with shapes (1,100) (10,10) 

I think this issue is data independent (hence the use of a random matrix as a test), but please correct me if I'm wrong. I noticed that in tests/TestGES.py there are no unit tests for the generalized score functions. Is this functionality not yet validated?

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions