0

When I ran my neat code I got this error in FeedForwardNetwork.activate() :


output = nets[x - 2].activate(player_.red_x, player_.red_y, player_.blue_x, player_.blue_y, player_.catcher,
TypeError: FeedForwardNetwork.activate() takes 2 positional arguments but 7 were given

I am unable to load imgs as I don't have enough reputation, but here is an image link: IMG

This is what I did to load the file

if __name__ == '__main__':
    local_dir = os.path.dirname(__file__)
    config_path = os.path.join(local_dir, "config.txt")
    run(config_path)
Bryan
  • 25
  • 7
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 01 '22 at 12:51

1 Answers1

0

Put the items in a list.


output = nets[x - 2].activate([player_.red_x, player_.red_y, player_.blue_x, player_.blue_y, player_.catcher,last_parm])
Bryan
  • 25
  • 7