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

Test.py Fails on test_learning.py and test_learning4e.py #1272

Open
acsanden opened this issue Feb 3, 2023 · 2 comments
Open

Test.py Fails on test_learning.py and test_learning4e.py #1272

acsanden opened this issue Feb 3, 2023 · 2 comments

Comments

@acsanden
Copy link

acsanden commented Feb 3, 2023

I ran the tests and these are the two errors that I get.
FAILED tests/test_learning.py::test_svc - ValueError: Rank(A) < p or Rank([P; A; G]) < n
FAILED tests/test_learning4e.py::test_svc - ValueError: Rank(A) < p or Rank([P; A; G]) < n

@meloncruuush
Copy link

I did a clean install of the repo, installed the requirements on a separate virtual environment, and after running the tests, all the outputs were successfull.

Screenshot 2023-06-07 154908

Are you sure that you installed the requirements properly?
Or did you change anything in the files that might have lead to the problem?

@HighDeFing
Copy link

Change in line 578 of this file test_learning4e.py
from sgd = optimizers.SGD(lr=0.01) to
sgd = optimizers.SGD(learning_rate=0.01)

This worked in doing just test.py

mohsinmahmood12 added a commit to mohsinmahmood12/aima-python that referenced this issue Jun 11, 2024
Issue aimacode#1272: Updated optimizer parameter from lr to learning_rate in deep_learning4e.py to resolve Rank(A) < p error.
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

3 participants