Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in similarity test #62

Closed
Baschdl opened this issue Apr 8, 2018 · 0 comments
Closed

TypeError in similarity test #62

Baschdl opened this issue Apr 8, 2018 · 0 comments

Comments

@Baschdl
Copy link
Member

Baschdl commented Apr 8, 2018

________________ SimilarityTestCase.test_similarity_calculation ________________

self = <tests.similarity_score_test.SimilarityTestCase testMethod=test_similarity_calculation>

    def test_similarity_calculation(self):
        test_paths = \
            [MetaPathRating(MetaPath(nodes=[1, 2], edges=[3]), 3, 1), MetaPathRating(MetaPath(nodes=[1, 2, 1], edges=[3, 4]), 1, 3),
             MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 5, 2), MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 4, 7),
             MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 6, 3)]
    
>       similarity = SimilarityScore.calculate_similarity(test_paths)
E       TypeError: calculate_similarity() missing 1 required positional argument: 'meta_path_ratings'

tests/similarity_score_test.py:18: TypeError

@juliusrueckin That's from your changes, isn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants