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

Neat Runtime Error #33

Open
l-huisman opened this issue May 23, 2023 · 0 comments
Open

Neat Runtime Error #33

l-huisman opened this issue May 23, 2023 · 0 comments

Comments

@l-huisman
Copy link

l-huisman commented May 23, 2023

When passing these 3 arguments to the activate function it throws a runtime error. It seems like the package has changes this function to no longer support more then 2 inputs, because when I run this activate function with 2 arguments it runs but the bird immediately die.

output = nets[birds.index(bird)].activate(
    (
        bird.y,
        abs(bird.y - pipes[pipe_ind].height),
        abs(bird.y - pipes[pipe_ind].bottom),
    )
)

File "path/to/tensor/lib/python3.10/site-packages/neat/nn/feed_forward.py", line 14, in activate
raise RuntimeError("Expected {0:n} inputs, got {1:n}".format(len(self.input_nodes), len(inputs)))
RuntimeError: Expected 2 inputs, got 3

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

1 participant